From 7ae32e3a450c40f9cfb52adde98d07a9430a1ebf Mon Sep 17 00:00:00 2001 From: black-dragon74 Date: Thu, 23 May 2024 16:55:28 +0530 Subject: [PATCH] Update identity for EncryptionKeyRotation Signed-off-by: black-dragon74 --- identity/README.md | 22 ++++++++++++++++++++++ identity/identity.proto | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/identity/README.md b/identity/README.md index 6b95642..8ed0bc2 100644 --- a/identity/README.md +++ b/identity/README.md @@ -300,6 +300,26 @@ message Capability { Type type = 1; } + // EncryptionKeyRotation contains the features of the EncryptionKeyRotation + // operation that the CSI-driver supports. + message EncryptionKeyRotation { + // Type describes a CSI Service that CSI-drivers can support. + enum Type { + // UNKNOWN indicates that the CSI-driver does not support the EncryptionKeyRotation + // operation in the current mode. The CSI-Addons CO plugin will most + // likely ignore this node for the EncryptionKeyRotation operation. + UNKNOWN = 0; + // ENCRYPTIONKEYROTATION indicates that the CSI-driver provides RPCs for a + // EncryptionKeyRotation operation. + // The presence of this capability determines whether the CSI-Addons CO + // plugin can invoke RPCs that require a volume to be staged/attached to + // the node. + ENCRYPTIONKEYROTATION = 1; + } + // type contains the Type of CSI Service that the CSI-driver supports. + Type type = 1; + } + // Additional CSI-Addons operations will need to be added here. oneof type { @@ -313,6 +333,8 @@ message Capability { VolumeReplication volume_replication = 4; // VolumeGroup operation capabilities. VolumeGroup volume_group = 5; + // EncryptionKeyRotation operation capabilities. + EncryptionKeyRotation encryption_key_rotation = 6; // Additional CSI-Addons operations need to be appended to this list. } diff --git a/identity/identity.proto b/identity/identity.proto index 3837d13..60b85fd 100644 --- a/identity/identity.proto +++ b/identity/identity.proto @@ -200,6 +200,26 @@ message Capability { Type type = 1; } + // EncryptionKeyRotation contains the features of the EncryptionKeyRotation + // operation that the CSI-driver supports. + message EncryptionKeyRotation { + // Type describes a CSI Service that CSI-drivers can support. + enum Type { + // UNKNOWN indicates that the CSI-driver does not support the EncryptionKeyRotation + // operation in the current mode. The CSI-Addons CO plugin will most + // likely ignore this node for the EncryptionKeyRotation operation. + UNKNOWN = 0; + // ENCRYPTIONKEYROTATION indicates that the CSI-driver provides RPCs for a + // EncryptionKeyRotation operation. + // The presence of this capability determines whether the CSI-Addons CO + // plugin can invoke RPCs that require a volume to be staged/attached to + // the node. + ENCRYPTIONKEYROTATION = 1; + } + // type contains the Type of CSI Service that the CSI-driver supports. + Type type = 1; + } + // Additional CSI-Addons operations will need to be added here. oneof type { @@ -213,6 +233,8 @@ message Capability { VolumeReplication volume_replication = 4; // VolumeGroup operation capabilities. VolumeGroup volume_group = 5; + // EncryptionKeyRotation operation capabilities. + EncryptionKeyRotation encryption_key_rotation = 6; // Additional CSI-Addons operations need to be appended to this list. }