Skip to content

Prod lake + scoped CloudTrail #554

Closed

Description

@athvin

Open work found in plan-to-aws.md §3.2 (now .claude/skills/infra-platform/references/plan-to-aws.md) · release mvp · estimate 0.5 eng-weeks

The prod data plane and its audit trail.

Revised 2026-11-07: the lake half is built; the scoped-CloudTrail half is not. infra/terraform/envs/prod/lake.tf declares the prod lake bucket through the same module as dev — er-prod-lake-797781631727, SSE-KMS under its own CMK, TLS-only, versioned, prevent_destroy — and, unlike dev, with no static IAM-user access key: prod reaches S3 via EKS Pod Identity, honouring §8.1 from day one. The account's one CloudTrail (infra/terraform/envs/core/audit.tf:213) is a multi-region management trail with no data-event selectors, so nothing logs reads on the prod prefix and §3.2's probes cannot pass today.

What remains:

  • scoped data events on the prod lake prefix (read logged, write not, per §3.2)
  • the three probes: a read on the prod prefix produces an event; a write does not; a nonprod-bucket read does not
  • lifecycle readback from the API: noncurrent versions 30d, incomplete multipart 7d

How this was verified

Originally: "depends on the prod environment." Re-verified 2026-11-07 against origin/main: the dependency is declared and in the apply path (#553 tracks its acceptance probes); the bucket is declared as above; no event_selector/data_resource exists anywhere under infra/terraform/.


Coverage, sizing and status were verified against this repo on 2026-11-05, not taken from the doc's checkbox. Estimate revised 2.0 → 0.5 eng-weeks on 2026-11-07 with the bucket built.

Acceptance evidence reconciled 2026-11-09: PR #946 ledger records successful core apply 42543569816, the delivered 01:30Z CloudTrail file containing the production GetObject and excluding the paired write/nonproduction reads, and the API lifecycle readback (30/7 days). The original unchecked boxes were stale; this update links the existing evidence.

Activity

  1. added
    mvp
    docs-backlog
    on Nov 5, 2026
  2. self-assigned this
    on Nov 9, 2026
  3. athvin commented on Nov 9, 2026

    @athvin
    OwnerAuthor

    Claiming. The change is one event_selector on aws_cloudtrail.org in envs/core/audit.tf: ReadOnly on AWS::S3::Object scoped to the constructed prod-lake ARN (core cannot reference envs/prod resources; a string ARN is plan-safe, the pattern this repo already uses cross-stack), with include_management_events = true stated explicitly so management coverage cannot silently change. The three §3.2 probes and the lifecycle readback are post-merge ledger items — the apply is CI-owned. Lifecycle readback I can run now: the module already declares noncurrent-30d / multipart-7d.

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