object-lock · shipping · also S3 Object Lock, Object retention lock

Object lock

An object lock enforces retention restrictions on a specified object version through a retention policy or hold.

Related Observatory article: Read on hesela.com

S3 requires versioning; enabling Object Lock and protecting a particular version are distinct configuration steps. [1] Its retention API distinguishes GOVERNANCE and COMPLIANCE and includes event-hold settings for variable retention; do not assume every retention date was fixed at upload. [2]

Bucket defaults assign retention to new versions rather than rewriting existing ones. Inspect the intended version's own retention metadata; bucket configuration alone does not demonstrate its protection. [6] [7]

Relations

related
Object versioning, Legal hold (storage), Storage immutability, WORM storage, Restore test, Default object retention (S3)

Advantages

  • A protected version survives a new upload under the same key; protection is version-scoped. [3]

Limitations

  • Governance bypass requires permission and an explicit request; it does not clear a legal hold. [4]
  • For S3 variable retention, an Inventory report reflects its generation time; query GetObjectRetention for current metadata instead of treating the report as live state. [4]
  • Neither retained bytes nor a lock label proves that encryption keys remain usable. [4]

Citations

  1. Amazon S3: Configuring S3 Object Lock (accessed 2026-10-15)
  2. Amazon S3 API: PutObjectRetention (accessed 2026-10-15)
  3. Amazon S3: Locking objects with Object Lock (accessed 2026-10-15)
  4. Amazon S3: Object Lock considerations (accessed 2026-10-15)
  5. AWS Storage Blog: Applying Amazon S3 Object Lock at scale for petabytes of existing data (accessed 2026-10-20)
  6. Amazon S3 API: GetObjectRetention (accessed 2026-10-20)

Further reading

  1. Hesela: Backup verification is not a restore test (accessed 2026-10-15)

JSON: /data/terms/object-lock.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Object lock. Hesela. 2026-10-20. https://hesela.dev/terms/object-lock/