feat(selfhost): EKS + RDS + OpenSearch + Okta install recipe
What
A step-by-step recipe, scripts/selfhost/recipes/eks-rds-okta/, for installing or repairing Agent Relay 2026.11.24 (chart 0.7.91) on an existing EKS cluster with RDS PostgreSQL 16+, Amazon OpenSearch (FGAC on or off), Pod Identity, an ALB and Okta OIDC. Customers can run it straight from this repo with no custom scripts from us.
| Script | Does |
|---|---|
| 00-collect | read-only snapshot |
| 01-preflight | read-only: tools, cluster, RDS version, master-owned tables decision, Pod Identity, FGAC, DNS |
| 02-opensearch-roles | FGAC roles + mappings (adds, never removes) |
| 03-install | backs up Secrets, runs the release's configure-rds.sh (dedicated logins, Secrets, helm upgrade, migrations) |
| 03b-rekey-logins | new passwords for logins created by an earlier run on another machine |
| 04-indexer-triage | read-only: maps indexer errors to fixes |
| 05-ingress | ALB via eks-alb-ingress.sh, waits for healthy targets, prints DNS records |
| 06-okta | OIDC app (console or API mode), patches one Secret key, render check, upgrade, proves login-config |
| 07-verify | deployments, helm test, diagnose-install.py, health, login-config |
How the release scripts are pinned
configure-rds.sh, eks-alb-ingress.sh and diagnose-install.py are not copied in. verify_vendor fetches any missing one from the agent-relay-2026.11.24 tag (RELEASE_SCRIPTS_REF) into a gitignored vendor/scripts/, and refuses to run unless every file matches vendor/SHA256SUMS. So the recipe runs the same files whatever is checked out.
Tests
bash scripts/selfhost/recipes/eks-rds-okta/tests/offline.sh: 181 passed, 0 failed locally (stub kubectl/aws/helm/Okta; the Okta render tests pull chart 0.7.91 and skip if they can't). Added as a step in lint.yml, separate from run-tests.sh because that runner promises no network.
Notes
- Code and docs only; merging deploys nothing.
- The recipe was rehearsed against a rebuilt copy of a broken 2026.11.18 install and went green in one run.
- Bumping the recipe to a later release means updating
RELEASE_SCRIPTS_REF,vendor/SHA256SUMSand the pins inenv.example.shtogether.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by cubic
Adds a step-by-step recipe under scripts/selfhost/recipes/eks-rds-okta/ for installing or repairing an Agent Relay 2026.11.24 (chart 0.7.91) deployment on an existing EKS cluster with RDS PostgreSQL, OpenSearch, Pod Identity, an ALB, and Okta OIDC, runnable directly from this repo.
Recipe design
- Numbered scripts 00–07 cover snapshot, preflight, OpenSearch FGAC roles, install, login re-keying, indexer triage, ALB ingress, Okta, and verification; preflight and verify support a
--finalacceptance mode.go.shdrives the whole install, stops at the first problem, redacts its saved logs, and judges each step only from the current run; each script still works standalone. configure-rds.sh,eks-alb-ingress.sh, anddiagnose-install.pyare not copied in: they're fetched from theagent-relay-2026.11.24tag on first use and checksum-verified againstvendor/SHA256SUMS, so the recipe runs pinned files whatever branch is checked out.- Adds a read-only Pod Identity check (
pod-identity-check.sh) using only the AWS CLI and jq that fails on a missing or non-ACTIVE agent or a missing linked role, pluswindows-allowlist.shandwindows-check.ps1so IT can verify the desktop installer and installed binaries against known hashes. - Adds an offline test suite (187 cases with stubbed kubectl/aws/helm/Okta) to
lint.ymlandfast-path.yml, separate fromrun-tests.shbecause that runner has no network. - Code and docs only; merging deploys nothing. The recipe was rehearsed against a rebuilt copy of a broken 2026.11.18 install and went green in one run.