Skip to content

feat: Add objectLockConfiguration (mode/days) and versioning parameters to Tenant bucket spec #255

Description

@optical4eye

Is your feature request related to a problem? Please describe.

Currently, the Tenant CRD allows creating buckets via spec.buckets, but it only has a simple objectLock: true/false boolean flag.

There are no fields in the YAML schema to configure the actual Object Lock retention mode (Compliance/Governance) or duration (days).

Describe the solution you'd like

We should expand the spec.buckets schema in tenant-crd.yaml to support explicit versioning and full object lock configuration directly in the YAML:

spec:
  buckets:
    - name: secure-bucket
      versioning: true
      objectLock: true
      objectLockConfiguration:
        mode: Compliance # Compliance or Governance
        days: 30

Describe alternatives you've considered

Using manual post-install scripts or Kubernetes Jobs with mc/rc CLI to set retention periods over the S3 API.

Additional context

Adding this to the CRD will make bucket provisioning completely declarative and provide a true zero-touch bootstrap experience for new S3 Tenants.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions