latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

ADR-0030 accepted

Lock a copy of the audit logs that HKB owns

  • Status: Accepted
  • Date: 2026-10-06

Context

ADR-0009 called for the audit logs to be locked so they can't be altered or deleted. But the bucket that holds them belongs to Control Tower, which created it without a lock. Changing something Control Tower manages risks breaking it or having the change undone the next time Control Tower updates.

Decision

  • Leave Control Tower's bucket as Control Tower set it up.
  • Copy every log, as it arrives, to a second bucket that HKB owns, and lock that copy for a year. The lock is the strict, permanent kind from go-live.
  • Note that Control Tower's bucket uses AWS-managed encryption, short of HKB's own rule, and record why.

Consequences

  • The protection ADR-0009 asked for exists, on a bucket HKB controls, for pennies a month.
  • Setting up the copying still means one small change to Control Tower's bucket. Only Control Tower's own role is allowed to make it, so it's a hand step, re-applied after any Control Tower update. A check confirms it's in place on every run.
  • The logs are tiny, so the copy stays in standard storage. Archive storage would cost more.
  • Logs written before the copying began were copied over once.
  • Amends ADR-0009.

Alternatives considered

  • Lock Control Tower's bucket itself, test for problems, and roll back if needed.
  • No lock: rely on versioning, access policies and guardrails.
LLMs look here
  • Records D72. D18 (ADR-0009) wanted Object Lock governance 365 days, SSE-KMS and Glacier after 90 days. The live Control Tower bucket had versioning and a 365-day expiry, no Object Lock, SSE-S3.
  • Replica: Object Lock governance 365 days during the build, compliance at go-live (per D18), SSE-KMS. The Control Tower bucket's SSE-S3 is recorded against GR-05's intent.
  • Step 3.7 notes (2026-10-22): DQ-91, the replica stays in Standard (logs average about 1.3 KB, where Glacier costs more), so D18's Glacier transition doesn't apply. DQ-92, current and noncurrent versions expire at 366 days, just after the lock lapses, matching the source. DQ-93, pre-rule logs copied once by an S3 Batch Operations job.
  • Control Tower's mandatory SCP lets only AWSControlTowerExecution change its bucket, so the replication rule is a hand step as that role (scripts/hand/log-archive.sh), re-applied after any landing zone update or reset. Control Tower drift detection doesn't cover bucket settings; S3-08 checks the rule on every run.
  • Source objects are encrypted with the Control Tower key in master; that key's policy lets the replication role decrypt through S3.

Page information

Owner
Platform Engineering
Status
accepted From the decision record.
Generated from
docs/adr/0030-log-archive-object-lock-on-an-hkb-owned-replica-bucket.md
Linked from
ISO 27001 Statement of Applicability, SOC 2 view, Findings review, Decisions