Files
cozystack/packages
Mattia Eleuteri ae3dd71e68 feat(bucket): offer Object Lock without a default retention
The only lock class, -lock, sets a fixed default retention of
COMPLIANCE for 365 days. Backup tools such as Veeam, restic and Kopia
set the retention of each object themselves, and other users want a
shorter default or GOVERNANCE, which a bucket owner can set through
the S3 API once the bucket exists. Nothing let them start from a
locked bucket without that year-long default.

The new lockingDefaultRetention flag defaults to true, so existing
buckets and values keep -lock.

The new class keeps deletionPolicy Retain like -lock: the driver
deletes a bucket through the filer without checking retention, so
Delete would destroy objects still under COMPLIANCE.

Pools named with a -lock-noretention suffix already exist, so that
suffix is not reserved, which would block their upgrade; only class
names that actually clash between pools, or with the base classes,
are refused.

Assisted-by: LLM
Signed-off-by: Mattia Eleuteri <mattia@hidora.io>
2026-11-23 12:04:50 +03:00
..