Skip to content

Prod substrate: Pod Identity, ESO and the §9 secrets envs/prod never had #894

Closed

Description

@athvin

Found by reading plan-to-aws.md §3 against the tree on 2026-11-08, while scoping #553–#556. All four of those tickets assume a prod substrate that does not exist, so none of them can be finished first.

envs/prod/ declares the network, EKS, Aurora, EFS and the lake. It declares none of the identity and secret plumbing envs/dev/ has, so a prod pod cannot start and cannot reach AWS if it did:

  • No ESO stack. envs/dev/secrets.tf has the External Secrets Operator role and its Pod Identity association; prod has no equivalent, so the chart's two ExternalSecret hooks resolve against nothing and the release fails at its first pre-install hook.
  • No Pod Identity roles. envs/prod/lake.tf says prod "reaches S3 via EKS Pod Identity (an IAM role), wired with the app deploy" — that wiring was never written, and neither was the lake_access policy document the sentence refers to. There is no node-credential fallback here by design, so this is a hard failure rather than a degraded one.
  • No §9 secret entries. Dev's er/dev/<ns>/{erserver,erweb} are written by scripts/dev_env.sh up, which is right for a per-developer namespace and has no prod counterpart. Nothing writes er/prod/<ns>/*.

Scope

  • secrets.tf — the ESO role (scoped to er/prod/*, narrower than dev's er/*) and its association, plus the two Secrets Manager entries, generated in Terraform.
  • pod_identity.tf — er-prod-api-pod and er-prod-runner-pod, the lake policy on the runner, associations for the one fixed prod namespace.
  • lake.tf — the lake_access document.

Deliberately not in scope

  • The app NodePool. The eks module enables only Auto Mode's system pool (node_pools = ["system"]), so prod needs an app pool before app pods can place — on-demand, per infrastructure.md §5, against dev's spot. That is a cluster-object change (infra/k8s/nodepools/ plus a make cluster-objects that is currently hardcoded to ER_DEV_CONTEXT), not Terraform, and the non-recursive apply that keeps measure/ out of the cluster makes the per-environment layout its own decision. Separate ticket.
  • sslmode=verify-full. The DSNs written here carry sslmode=require, matching what rds.tf already wrote into er/prod/shared/postgres. Moving to verify-full needs the RDS CA bundle in the images first, which is an image change — Prod environment — network, EKS, Aurora #553 owns it.
  • A dedicated non-master Postgres role. Prod uses the Aurora master er role against the one er database. Dev gives each developer its own role, bootstrapped by an in-cluster Job; prod has one application and tenant separation is DuckLake catalogs (§7.3), not Postgres roles, so the extra role would need that Job to exist here for no isolation gain.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docs-backlogmvp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions