Skip to content

#658a — The deployed-contract store: an S3 bucket and the prod deploy role's grant #1245

Done

Description

@athvin

Part of #658 (API launch gate), split so the bucket and grant are applied before the deploy step that uses them. That is the #929 → #556 ordering precedent: a PR carrying both races the infra apply against the next deploy.

Scope (Terraform, envs/prod):

  • bucket er-prod-api-contract-<account>: versioned, SSE-S3 (the public contract is public data, so no KMS and no cross-stack KMS grant), all public access blocked, TLS-only;
  • releases/<sha>/openapi.public.json: immutable, written once by conditional put (If-None-Match: *);
  • deployed/openapi.public.json + deployed/release.json: the durable pointer to what is serving;
  • er-ci-deploy-prod gains s3:GetObject and s3:PutObject on exactly those two prefixes, and s3:ListBucket scoped to them (so a missing object reads as 404, not 403).

Acceptance: terraform plan adds only, with no destroy or replace. After the apply, the role can read and write the prefixes and nothing else in the bucket.

Metadata

Metadata

Assignees

Labels

ci-backlogmvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions