Skip to content

Feature request: Support for object lock functionality when using S3 remote target for backup shipping #469

@TheBitFighter

Description

@TheBitFighter

Hello and first of all thank you for this amazing piece of software.
We run Linstor as the storage provider for our Proxmox cluster and I would like to use an S3 remote as a backup shipping target. Since my threat model for planning this architecture includes an intruder possibly gaining control over the cluster itself, I want my backups to be resilient against deletion or encryption by an attacker.

For this reason I would like to set object lock policies on my S3 remote when shipping a snapshot. I know through testing that setting default policies on the side of the S3 provider will break the snapshot shipping. Furthermore, my provider recommends setting these policies through the backup software anyway.
I have already identified which modifications would be needed to com.linbit.linstor.api.BackupToS3.java and started implementation.

My question would be how to best add this to the Linstor command line interface so it makes sense (e.g. adding a parameter called --lock-days to linstor remote create s3) and which other configuration points would benefit from additions (what about linstor.toml)?
Additionally, when setting up a remote to have retention time, should linstor automatically turn on object lock on the s3 bucket if it is not enabled or fail unless something like --enable-object-lock is given?

Also if there are any other rules concerning contribution that I have not been able to find, please let me know.

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