Fill the Server: 80% off your first 4 monthly invoices, monthly billing. Ends Nov 30, 2026. 25 spots in this batch.FILL25
Fill the Server, annual: about 29.63% off your first annual invoice. Ends Nov 30, 2026.FILL25Y
Fill the Server, 2 year term: about 15.69% off your first biennial invoice. Ends Nov 30, 2026.FILL25B
Fill the Server, 3 year term: about 11.11% off your first triennial invoice. Ends Nov 30, 2026.FILL25T
80% off your first 3 months, monthly billing. Ends Dec 25, 2027.3MONTHS80
50% off your first annual Shared term. Ends Dec 31, 2027.50SHARED
Shared Starter, 3 year term: C$105.84 total.MOOSE294
20% off your first 3 monthly VPS invoices. Ends Dec 31, 2027.20VPS3
25% off your first annual base VPS term.25VPS

← All guides

Security

S3 Object Lock explained: retention needs to be designed before upload

Published August 2026 · 8 min read

Object Lock can protect object versions from deletion for a retention period when the backend supports it. It is powerful because the restriction is enforced at the storage layer, and that same power means the consequences must be understood before enabling it.

Object Lock normally works with versioned objects

Retention applies to specific object versions. It does not freeze an entire application. The bucket configuration and provider implementation determine which lock modes and operations are available.

Verify versioning and lock status through the storage API or provider backend. A client checkbox is not enough evidence. An upload to an unlocked bucket cannot be made immutable by calling the marketing page immutable.

Some providers require lock at bucket creation

If Object Lock must be enabled when a bucket is created, it is an architectural decision, not a toggle to add after a customer has filled the bucket. The provisioning workflow needs a separate locked-service option or explicit default.

Document this before public checkout so customers do not learn the limitation after storing terabytes of data.

Retention can block legitimate deletion

Locked versions consume storage until their retention conditions allow removal. A mistaken policy can prevent a customer from reducing capacity or purging sensitive data on the expected schedule.

Capacity planning needs to include retained versions, and termination procedures must define what happens when provider-enforced retention outlives the WHMCS service.

Credentials still matter

Object Lock does not make leaked read credentials harmless. Scope data access, protect secrets and separate administrative retention privileges from ordinary backup writers.

Test the exact deletion actions a compromised backup account could perform. Security claims should be based on failed negative tests, not on the presence of a lock setting.

Use a written retention policy

Define how long data must remain, who may change retention, how legal or business deletion requirements are handled and how capacity is funded during the lock period.

A technical retention feature should implement a written policy with known owners and durations.

Next step

Understand S3 Object Lock, retention modes, versioning, creation-time requirements and the operational consequences of making object versions harder to delete.

Explore DotMoose Object Storage

Keep reading

Related guides.

boto3 S3-compatible storage: custom endpoint, put_object and connection tests

Connect boto3 to S3-compatible storage with endpoint_url. Start with a read-only list, then optionally verify put_object with one isolated write/read/delete round trip.

Read the guide

S3 multipart upload explained: part size, retries, checksums and cleanup

Learn how S3 multipart upload works: numbered parts, AWS part-size limits, parallel retries, completion, checksums and cleanup of abandoned uploads.

Read the guide

S3 presigned URLs explained: temporary access without sharing keys

Learn how S3 presigned URLs authorize a specific operation for a limited time, where they help, what they expose and how to use them safely.

Read the guide

More object storage guides

We will handle the move. You check it first.

Your current site stays online until your new one is ready. You approve the copy first, and if anything is not right we switch you back right away. The price you pick is the price you renew at.

Start my free moveSee plans and prices
See pricesFree move