Skip to content

Commit

Permalink
encryptionkeyrotation: Add volume capabilities
Browse files Browse the repository at this point in the history
This patch adds the option to pass the CSI
volume capabilities with the
EncryptionKeyRotateRequest.

Signed-off-by: Niraj Yadav <[email protected]>
  • Loading branch information
black-dragon74 committed Jul 16, 2024
1 parent 12dd215 commit aa10701
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 55 deletions.
9 changes: 7 additions & 2 deletions encryptionkeyrotation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,16 @@ message EncryptionKeyRotateRequest {
// This field is OPTIONAL
string encryption_key = 3 [(csi.v1.csi_secret) = true];
// Volume capability describing how the CO intends to use this volume.
// This allows SP to determine if volume is being used as a block
// device or mounted file system. This is OPTIONAL.
csi.v1.VolumeCapability volume_capability = 4;
// Plugin specific parameters passed in as opaque key-value pairs.
map<string, string> parameters = 4;
map<string, string> parameters = 5;
// Secrets required by the plugin to complete the request.
map<string, string> secrets = 5 [(csi.v1.csi_secret) = true];
map<string, string> secrets = 6 [(csi.v1.csi_secret) = true];
}
```

Expand Down
9 changes: 7 additions & 2 deletions encryptionkeyrotation/encryptionkeyrotation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ message EncryptionKeyRotateRequest {
// This field is OPTIONAL
string encryption_key = 3 [(csi.v1.csi_secret) = true];

// Volume capability describing how the CO intends to use this volume.
// This allows SP to determine if volume is being used as a block
// device or mounted file system. This is OPTIONAL.
csi.v1.VolumeCapability volume_capability = 4;

// Plugin specific parameters passed in as opaque key-value pairs.
map<string, string> parameters = 4;
map<string, string> parameters = 5;

// Secrets required by the plugin to complete the request.
map<string, string> secrets = 5 [(csi.v1.csi_secret) = true];
map<string, string> secrets = 6 [(csi.v1.csi_secret) = true];
}
// EncryptionKeyRotateResponse holds the information about the result of the
// EncryptionKeyRotateRequest call.
Expand Down
120 changes: 69 additions & 51 deletions lib/go/encryptionkeyrotation/encryptionkeyrotation.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa10701

Please sign in to comment.