This PR adds support for managing MinIO bucket retention (object lock) configurations through Terraform. The new resource minio_s3_bucket_retention enables users to configure WORM (Write-Once Read-Many) retention policies on MinIO buckets.
Features
Full support for MinIO object lock configuration
Compliance with SEC17a-4(f), FINRA 4511(C), and CFTC 1.31(c)-(d) requirements
Support for both GOVERNANCE and COMPLIANCE retention modes
Added notes about interactions with other features
Notes for Reviewers
The resource requires object lock to be enabled during bucket creation
Special attention to validation of retention parameters
Lifecycle rule interaction handling
Error handling for bucket prerequisites
Be careful
This permit to activate WORM on the bucket level. A new resource need to be created to create WORM at object level.
But this would maybe be done in another PR.
Add MinIO Bucket Retention Resource
Description
This PR adds support for managing MinIO bucket retention (object lock) configurations through Terraform. The new resource
minio_s3_bucket_retention
enables users to configure WORM (Write-Once Read-Many) retention policies on MinIO buckets.Features
Example Usage
Implementation Details
Testing
Added acceptance tests covering:
Dependencies
This resource requires:
Documentation
Notes for Reviewers
Be careful
This permit to activate WORM on the bucket level. A new resource need to be created to create WORM at object level. But this would maybe be done in another PR.