mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-30 04:06:34 +09:00
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>