Glossary

Object Lock

The switch that turns an ordinary storage bucket into write-once storage. Once an object version is locked, nobody can delete or change it until the retention date passes and any legal hold is lifted.

General definition

Object Lock is the mechanism in Amazon S3 and S3-compatible systems that makes stored objects immutable. With Object Lock enabled on a bucket, each object version can carry a retention date and a legal hold; until the date passes and the hold is removed, no API call, no console action and no lifecycle rule can delete or overwrite that version. Versioning is required, because the lock protects a specific version: a new upload under the same key creates a new version rather than replacing the locked one.

S3 offers two retention modes and one independent flag:

  • Governance mode: the retention period can be shortened or removed by principals with the s3:BypassGovernanceRetention permission, typically a small admin group. Protects against accidents and ordinary users, not against a privileged insider
  • Compliance mode: nobody can shorten the period or delete the version until it expires, including the AWS account root user. The period can only be extended. This is the mode regulators and auditors mean by WORM
  • Legal hold: an on or off flag with no expiry, set and cleared by anyone with the legal-hold permission, used to freeze objects for litigation or an investigation regardless of their retention date

A default retention mode and period can be set on the bucket so every new object is locked automatically, and individual objects can be given longer periods on upload. Object Lock originally had to be enabled when a bucket was created; AWS now allows it to be switched on for existing versioned buckets. Azure Blob Storage offers the same ideas as immutable storage (time-based retention policies and legal holds), Google Cloud Storage as bucket lock and object retention lock, and MinIO implements the S3 Object Lock API, so the pattern is available on your own hardware.

The compliance use is WORM storage for records that must be provably unaltered: financial communications under SEC Rule 17a-4 and FINRA rules, audit trails under HIPAA, and anything subject to a legal hold. Two cautions. Compliance mode is irreversible, so a wrong retention period on terabytes of data is a storage bill you pay until it expires; test on a small prefix first. And immutability is not a backup: a locked object in one region still needs replication to another bucket to survive a regional loss.

Need full control of the stack? Ethora runs as a self-hosted chat server on premise, in your own cloud or from AWS Marketplace.

In the Ethora ecosystem

Ethora’s compliance audit trail can be exported as immutable logs to an S3 bucket you own. Ethora writes the export; the bucket enforces the lock. Create the bucket with versioning and Object Lock, set a default retention in compliance mode that matches your retention policy, and give the export a write-only role. From then on every log object lands locked, and an administrator, a leaked credential or Ethora itself cannot alter or remove it before the period ends. The same bucket can take audit log exports from your other systems, so an auditor gets one WORM store to inspect.

Self-hosted deployments keep the pattern: the stack stores files in MinIO, which supports the Object Lock API, or in any S3-compatible storage your platform team already runs. The server-side message archive is a separate read-only archive database with configurable retention and per-user erasure; the Object Lock export is for the records you must prove were never touched.

Get started

Run chat and AI on servers you control

An open-source chat server on premise, in your own cloud or from AWS Marketplace, with an enterprise SLA.

Free tier available Enterprise SLA No vendor lock-in