feat(selfhost): EKS + RDS + OpenSearch + Okta install recipe

Merged
KH
15h ago
+3026-0

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.

ScriptDoes
00-collectread-only snapshot
01-preflightread-only: tools, cluster, RDS version, master-owned tables decision, Pod Identity, FGAC, DNS
02-opensearch-rolesFGAC roles + mappings (adds, never removes)
03-installbacks up Secrets, runs the release's configure-rds.sh (dedicated logins, Secrets, helm upgrade, migrations)
03b-rekey-loginsnew passwords for logins created by an earlier run on another machine
04-indexer-triageread-only: maps indexer errors to fixes
05-ingressALB via eks-alb-ingress.sh, waits for healthy targets, prints DNS records
06-oktaOIDC app (console or API mode), patches one Secret key, render check, upgrade, proves login-config
07-verifydeployments, 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/SHA256SUMS and the pins in env.example.sh together.

🤖 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 --final acceptance mode. go.sh drives 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, and diagnose-install.py are not copied in: they're fetched from the agent-relay-2026.11.24 tag on first use and checksum-verified against vendor/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, plus windows-allowlist.sh and windows-check.ps1 so 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.yml and fast-path.yml, separate from run-tests.sh because 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.