Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "AWS Snapshot Lock" feature #972

Open
ruimarinho opened this issue Jul 30, 2024 · 2 comments
Open

Add "AWS Snapshot Lock" feature #972

ruimarinho opened this issue Jul 30, 2024 · 2 comments
Labels
enhancement snapshots All issues related to the snapshots epic triage

Comments

@ruimarinho
Copy link

ruimarinho commented Jul 30, 2024

Hi,

I would like to request the addition of a "AWS Snapshot Lock" feature to Barman. This feature would help protect snapshots against accidental or malicious deletions and allow them to be stored in a write-once-read-many (WORM) format for a specific duration. While a snapshot is locked, it can’t be deleted by any user, regardless of their permissions. However, users can continue to use a locked snapshot as they would use any other snapshot.

Use Cases

  1. Protect snapshots from being accidentally deleted by administrators or automated processes.
  2. Ensure snapshots are stored in a tamper-proof state for compliance with regulations requiring data immutability.
  3. Implement retention policies to automatically manage the lifecycle of snapshots.

Example Command Line Interface:

barman-cloud-backup --cloud-provider aws-s3 --aws-region us-east-1 --snapshot-disk vol-123 --snapshot-instance i-345 --aws-snapshot-lock-mode governance --aws-snapshot-lock-duration 1-36500_days  s3://bucket my-cluster

The other two supported would be:

--aws-snapshot-cool-off-period=1-72_hours and --snapshot-expiration-date=YYYY-MM-DDThh:mm:ss.sssZ, mutually exclusive.

@martinmarques
Copy link
Contributor

We looking at adding WORM support (ransomware protection) for local backups (as long as the underlying FS has some kind of WORM functionality) and we'll have a look at this feature for snapshots as well.

@martinmarques
Copy link
Contributor

Thank you for the PR Rui!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement snapshots All issues related to the snapshots epic triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants