You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| snapshotLockExpirationDate | Lock expiration date (RFC3339 format) |
10
+
| snapshotLockCoolOffPeriod | Cool-off period in hours (compliance mode only) |
6
11
7
12
The AWS EBS CSI Driver supports [tagging](tagging.md) through `VolumeSnapshotClass.parameters` (in v1.6.0 and later).
8
13
## Prerequisites
@@ -44,6 +49,49 @@ parameters:
44
49
45
50
The driver will attempt to check if the availability zones provided are supported for fast snapshot restore before attempting to create the snapshot. If the `EnableFastSnapshotRestores` API call fails, the driver will hard-fail the request and delete the snapshot. This is to ensure that the snapshot is not left in an inconsistent state.
46
51
52
+
# Snapshot Lock
53
+
54
+
The EBS CSI Driver provides support for [EBS Snapshot Lock](https://docs.aws.amazon.com/ebs/latest/userguide/ebs-snapshot-lock.html) via `VolumeSnapshotClass.parameters`. Snapshot locking protects snapshots from accidental or malicious deletion. A locked snapshot can't be deleted.
55
+
56
+
Snapshot locking supports two modes:
57
+
-**Governance mode**: Allows privileged users to unlock snapshots
58
+
-**Compliance mode**: Prevents unlocking until expiration (with optional cool-off period)
59
+
60
+
Lock duration can be specified using either:
61
+
-`snapshotLockDuration`: Duration in days
62
+
-`snapshotLockExpirationDate`: Specific expiration date in RFC3339 format
63
+
64
+
**Example - Governance Mode with Duration**
65
+
```yaml
66
+
apiVersion: snapshot.storage.k8s.io/v1
67
+
kind: VolumeSnapshotClass
68
+
metadata:
69
+
name: csi-aws-vsc-locked
70
+
driver: ebs.csi.aws.com
71
+
deletionPolicy: Delete
72
+
parameters:
73
+
snapshotLockMode: "governance"
74
+
snapshotLockDuration: "7"
75
+
```
76
+
77
+
**Example - Compliance Mode with Expiration Date**
If the `LockSnapshot` API call fails, the driver will hard-fail the request and delete the snapshot. This ensures that the snapshot is not left in an unlocked state when locking was explicitly requested.
0 commit comments