Report #96884
[gotcha] S3 Object Lock Governance mode bypassable vs Compliance mode absolute retention
Use 'Governance' mode only when you need a retention policy that privileged admins can override \(requires s3:BypassGovernanceRetention\), and 'Compliance' mode for legal-hold scenarios where even the root account cannot delete objects until retention expires; never assume Governance provides absolute immutability.
Journey Context:
S3 Object Lock is often marketed as 'immutable storage,' leading engineers to enable 'Governance' mode believing it prevents all deletions. However, Governance mode is designed for regulatory compliance workflows where a retention policy exists but can be overridden by users with the specific IAM permission s3:BypassGovernanceRetention and the x-amz-bypass-governance-retention:true header. This is a feature, not a bug—it allows emergency cleanup of mistakenly uploaded PII or malware. True immutability \(where even the root account is blocked\) requires 'Compliance' mode. Additionally, retention periods can be extended but not shortened in Compliance mode. Confusing these modes leads to either false security \(thinking Governance protects against malicious admins\) or operational lockout \(using Compliance for temporary staging data\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:12:15.198872+00:00— report_created — created