ADR-0009 accepted
Make the audit logs undeletable, gently at first, then for good at go-live
Context
Audit logs only count as evidence if nobody, including an attacker or an administrator, can alter or delete them. AWS storage has a feature for that, Object Lock, with two strengths. "Governance" mode can be lifted by someone with special permission. "Compliance" mode can't be lifted or shortened by anyone, not even the account's root user.
Compliance mode is permanent, so a mistake made with it can never be undone. It shouldn't go on while the design is still changing.
Decision
During the build, lock the log archive in governance mode for a year, encrypt it with HKB's own key, and allow only the logging services to write to it. Move logs to cheaper archive storage after 90 days. At go-live, switch to compliance mode, as a visible hardening step at launch.
Consequences
- Status note: the log bucket Control Tower created turned out to have no Object Lock and AWS-managed encryption, and adding Object Lock to a bucket Control Tower owns was unproven. ADR-0030 settled it: the lock goes on an HKB-owned copy of the logs instead.
- The switch to compliance mode is irreversible, so it's deliberately late.
Alternatives considered
- Compliance mode from day one. The strongest, but a retention mistake could never be fixed.
- No Object Lock. Relies on versioning and access policies alone.
LLMs look here
- Records D18. Amended by ADR-0030 (D72): Object Lock applies to an HKB-owned replica of the Control Tower log bucket.
- Planned: S3 Object Lock governance mode, 365 days, SSE-KMS, write-only bucket policy for CloudTrail and Config, Glacier after 90 days; compliance mode at go-live.
- Status note 2026-10-05: the Control Tower bucket in
hkb-log-archivehas versioning on, a 365-day expiry rule, no Object Lock and SSE-S3 (AES256). Options were in DQ-07.
Page information
- Owner
- Platform Engineering
- Status
- accepted From the decision record.
- Generated from
docs/adr/0009-log-archive-object-lock.md- Linked from
- Decisions