@@ -5265,12 +5265,68 @@ message DatabaseEncryption {
52655265 DECRYPTED = 2 ;
52665266 }
52675267
5268+ // Current State of etcd encryption.
5269+ enum CurrentState {
5270+ // Should never be set
5271+ CURRENT_STATE_UNSPECIFIED = 0 ;
5272+
5273+ // Secrets in etcd are encrypted.
5274+ CURRENT_STATE_ENCRYPTED = 7 ;
5275+
5276+ // Secrets in etcd are stored in plain text (at etcd level) - this is
5277+ // unrelated to Compute Engine level full disk encryption.
5278+ CURRENT_STATE_DECRYPTED = 2 ;
5279+
5280+ // Encryption (or re-encryption with a different CloudKMS key)
5281+ // of Secrets is in progress.
5282+ CURRENT_STATE_ENCRYPTION_PENDING = 3 ;
5283+
5284+ // Encryption (or re-encryption with a different CloudKMS key) of Secrets in
5285+ // etcd encountered an error.
5286+ CURRENT_STATE_ENCRYPTION_ERROR = 4 ;
5287+
5288+ // De-crypting Secrets to plain text in etcd is in progress.
5289+ CURRENT_STATE_DECRYPTION_PENDING = 5 ;
5290+
5291+ // De-crypting Secrets to plain text in etcd encountered an error.
5292+ CURRENT_STATE_DECRYPTION_ERROR = 6 ;
5293+ }
5294+
5295+ // OperationError records errors seen from CloudKMS keys
5296+ // encountered during updates to DatabaseEncryption configuration.
5297+ message OperationError {
5298+ // CloudKMS key resource that had the error.
5299+ string key_name = 1 ;
5300+
5301+ // Description of the error seen during the operation.
5302+ string error_message = 2 ;
5303+
5304+ // Time when the CloudKMS error was seen.
5305+ google.protobuf.Timestamp timestamp = 3 ;
5306+ }
5307+
52685308 // Name of CloudKMS key to use for the encryption of secrets in etcd.
52695309 // Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key
52705310 string key_name = 1 ;
52715311
52725312 // The desired state of etcd encryption.
52735313 State state = 2 ;
5314+
5315+ // Output only. The current state of etcd encryption.
5316+ optional CurrentState current_state = 3
5317+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
5318+
5319+ // Output only. Keys in use by the cluster for decrypting
5320+ // existing objects, in addition to the key in `key_name`.
5321+ //
5322+ // Each item is a CloudKMS key resource.
5323+ repeated string decryption_keys = 4
5324+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
5325+
5326+ // Output only. Records errors seen during DatabaseEncryption update
5327+ // operations.
5328+ repeated OperationError last_operation_errors = 5
5329+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
52745330}
52755331
52765332// Configuration for exporting cluster resource usages.
0 commit comments