INFINITE UPSIDE

Technology and operations

What Does S3 Object Lock Actually Protect?

The locked version can survive while the application still sees a missing file.

A locked file can disappear from an application without its protected bytes being deleted. That is the first surprise in Amazon S3 Object Lock—and a good reason for records, operations and finance teams to settle more than one question before choosing a retention setting.

Amazon S3 Object Lock protects specified object versions from deletion or overwrite under a retention period or legal hold. Its two retention modes have materially different rules; a legal hold has a separate life of its own. AWS’s Object Lock guide explains the model and its restrictions. A protected version is not the same thing as an entire application that cannot change, nor does it establish that a document is accurate or usable.

Start with the object version, the intended protection and the person authorized to manage it. Those three details turn a reassuring feature name into a policy someone can actually operate.

The version is the unit of protection

Imagine an organization uploads a signed agreement as version A of contracts/agreement.pdf, then applies a retention period to that version. Later it uploads a corrected document under the same key. In a versioned bucket, the later upload is another version; protecting A does not freeze the name so that no new version can ever exist. Ask which version a normal application request will return and which version must be retained as the historical record.

The distinction matters if an employee discovers that the version currently shown in an application is wrong. The protected historical bytes can still be present while the application points to something else. Conversely, changing what the application displays does not by itself remove protection from the earlier version. Store the version identifier and context needed to find the record; a file name alone may be ambiguous after several uploads.

Object Lock relies on versioning. AWS notes that once Object Lock is enabled for a bucket, it cannot be disabled and versioning cannot be suspended for that bucket. That is not a change to make casually on an important production bucket while someone else is writing to it. Plan the intended scope, permissions, lifecycle settings and test environment first. The management considerations spell out these and other constraints.

The retention decision

Two clocks: a date and a hold

A retention period has a retain-until date. A legal hold does not have a preset expiration date; it remains until someone with the relevant permission removes it. They are independent controls. If a version has both and the date passes, the hold can continue to protect it. Removing the hold does not cancel an unexpired retention period.

Picture a record required for five years under an organization’s policy. A fixed period may fit that requirement, but the policy owner still has to determine the correct starting date and whether extensions or exceptions apply. Now suppose an investigation begins during year four. A separate hold might be relevant to that specific version while the investigation continues. The storage feature can enforce a setting; it cannot decide the organization’s legal obligation or identify every related document by itself.

A team also needs an exit process for a hold. Who can place it? Who records the reason and scope? Who reviews whether it should remain? Who can remove it, and how is that decision documented? A hold with no review owner can persist long after the reason for it is forgotten. The opposite failure is treating a hold like a casual tag that any operator can remove without understanding its purpose.

Governance and compliance are not just labels

In governance mode, users generally cannot delete or change a protected version’s retention settings without the special permission and an explicit bypass request. AWS notes that the S3 console includes the bypass header automatically when an appropriately authorized user makes a relevant request. That detail matters: a team’s written rule may say “only use bypass for an approved incident,” while the console behavior means the permission holder must still recognize and follow that rule.

Compliance mode is stronger during the retention period. AWS states that a protected version cannot be deleted or overwritten by any user, including the account root user, and its retention period cannot be shortened while it is protected. AWS documents account deletion as an exceptional route that ends the account, not a practical way to correct one bad file. Do not select this mode simply because its name sounds more serious; an erroneously long period can become an expensive and operationally stubborn mistake.

Legal holds have their own permission for setting and removal. Giving a person broad ability to bypass governance does not, by itself, remove a legal hold. Map each authority to a named operational role, keep the reason for an exception, and test with disposable data. The exact permission model should be reviewed against the current AWS documentation and the organization’s access controls.

A delete marker can hide what is still protected

A normal delete request in a versioned bucket can create a delete marker. AWS says a delete marker can be placed on an object even while an underlying version is locked. The marker does not delete that protected version, but ordinary requests for the key can behave as if the object is missing. The marker itself is not protected by the underlying version’s retention setting.

That is a subtle failure mode. A record custodian may correctly say “the protected version is still there,” while an application user correctly says “the file disappeared.” The investigation should compare the key’s version history, the current marker and the exact protected version before anyone promises that the application is broken—or that the original document has been lost.

Recovery also needs a deliberate choice. An authorized team might retrieve the protected version for review, remove a marker if appropriate, or create a separate usable copy through its documented workflow. Those actions can change what users see or which bytes become current. Confirm the relevant version and coordinate with the record owner first; do not use a production restore as an experiment. Our guide to versioning and delete markers walks through that distinction.

Bucket defaults and individual settings also deserve separate attention. AWS says a newly uploaded version can receive a bucket’s default retention, while an explicit retention setting on that version can take precedence. A default is a rule for a class of writes; the version’s actual metadata is the evidence for one record. If a team later changes a default, it should not assume that change silently rewrites the protection on every existing version. Inventory the current state and use the documented operations for any authorized change.

Retention has a budget and a privacy cost

Imagine a fictional archive receives 100 GB of new protected versions each month. If that rate stayed constant for 24 months and nothing were removed, the simple total of new version data would be about 2,400 GB before considering storage classes, billing units, changes in data volume or service charges. This is a capacity illustration, not an AWS price estimate. Updates that create additional retained versions can add to the total.

Long retention also affects information that should not be kept indefinitely. A broad bucket default can protect an object whose contents or retention period were selected incorrectly. Retaining more is not automatically safer: storage costs, privacy obligations, encryption keys and access administration all continue to matter. A lock on an encrypted version does not guarantee that the organization will retain usable access to the decryption key.

Before applying a default, classify what is being stored and how long it should remain. Coordinate legal, security, records and operational owners on exceptions, accidental uploads, restore tests and eventual disposal. A lifecycle policy may place delete markers or transition data while a protected version remains undeletable; inspect the interaction for the actual configuration rather than assuming a cleanup rule overrides a lock.

Test the record, not the checkbox

A useful nonproduction test follows a document from upload through retrieval. Record its version ID, mode, retain-until date and hold status. Verify that an ordinary authorized reader can retrieve the intended bytes. Test an allowed and a blocked operation only within a disposable scope and the organization’s permissions. Then document how the team would locate that same version after a delete marker or an application change.

Ask one last question: what happens if the storage account, credentials or encryption key are unavailable? Retention inside one bucket is not the whole recovery design. Separate backup, access recovery and tested restoration may still be necessary. Our retention-schedule guide starts with who owns a record and when it should leave, rather than assuming every byte belongs in permanent storage.

The best outcome is a specific record that remains retrievable for a defensible period, with a clear owner for exceptions and release. A checked box cannot supply those decisions afterward.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store