Skip to content

Retire the S3 service access key in favour of the credential chain #549

Closed

Description

@athvin

Open work found in plan-to-aws.md 4.1 · release mvp · estimate 1 eng-week

⚠️ Corrected 2026-11-05. This issue originally described "a never-expiring AdministratorAccess key … the single worst item on this board". That was wrong on both counts. Item 4.1 is about the two service-user credentials (S3 and email), not about the builder key, and the builder key is explicitly prod-guarded. The original framing was mine, not the plan's. See the decision note at the bottom.

What is actually left

4.1 is titled "retire both static credentials" and has two halves. One is already done:

Half Status
Email (§9.3) done — ses.tf: "er-server now calls the SES API, so the pod's Pod Identity credentials sign" the requests
S3 (§9.2) outstanding — aws_iam_access_key.s3 is still minted in lake.tf:46 and injected as ER_S3_ACCESS_KEY_ID/ER_S3_SECRET_ACCESS_KEY

So the remaining work is the S3 half only: DuckDB credential_chain plus the boto3 default chain, reached through Pod Identity rather than injected keys.

The acceptance check in the plan no longer applies as written. 4.1 says the proof is that aws iam list-users returns zero service users, which would make §8.1's claim unconditional. That cannot happen while the builder key stays (decision below). The achievable check is narrower: aws_iam_access_key blocks under infra/terraform/ drop from 2 to 1, and the surviving one is builder.

Decision: the builder key is permanent

Recorded 2026-11-05 at the owner's direction — the AdministratorAccess builder key is not being retired, on any timeline. Two places in the repo still say otherwise and are now stale:

  • infra/terraform/envs/dev/builder.tf — "It should still be removed when the MVP build loop is done (git rm + apply)"
  • docs/parity-roadmap.md:22 — the Builder-key ⇄ prod entry

For the record of what that key's posture actually is, since it is staying: it holds AdministratorAccess minus explicit DenyProd* denies, so it cannot mutate er-prod-* even though prod shares the account — an explicit Deny overrides the Allow. builder.tf itself notes the guard "is what lets this key coexist with prod instead of being a prod-gate blocker". One deliberate hole: iam:CreateAccessKey is not denied, because the build loop needs it to mint the dev lake key.

Verified against this repo on 2026-11-05.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 5, 2026
  2. changed the title [-]Retire both static AWS credentials[/-] [+]Retire the S3 service access key in favour of the credential chain[/+] on Nov 6, 2026
  3. self-assigned this
    on Nov 7, 2026
  4. athvin commented on Nov 7, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #791 (draft). Closing that PR releases the claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions