@@ -223,6 +223,10 @@ message CryptoKey {
223223 // justification codes.
224224 // https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes
225225 // By default, this field is absent, and all justification codes are allowed.
226+ // If the
227+ // `key_access_justifications_policy.allowed_access_reasons`
228+ // is empty (zero allowed justification code), all encrypt, decrypt, and sign
229+ // operations will fail.
226230 KeyAccessJustificationsPolicy key_access_justifications_policy = 17
227231 [(google.api.field_behavior ) = OPTIONAL ];
228232}
@@ -1056,13 +1060,17 @@ message ExternalProtectionLevelOptions {
10561060// [KeyAccessJustificationsPolicy][google.cloud.kms.v1.KeyAccessJustificationsPolicy]
10571061// specifies zero or more allowed
10581062// [AccessReason][google.cloud.kms.v1.AccessReason] values for encrypt, decrypt,
1059- // and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey].
1063+ // and sign operations on a [CryptoKey][google.cloud.kms.v1.CryptoKey] or
1064+ // [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig]
1065+ // (the default Key Access Justifications policy).
10601066message KeyAccessJustificationsPolicy {
10611067 // The list of allowed reasons for access to a
1062- // [CryptoKey][google.cloud.kms.v1.CryptoKey]. Zero allowed access reasons
1063- // means all encrypt, decrypt, and sign operations for the
1064- // [CryptoKey][google.cloud.kms.v1.CryptoKey] associated with this policy will
1065- // fail.
1068+ // [CryptoKey][google.cloud.kms.v1.CryptoKey]. Note that empty
1069+ // allowed_access_reasons has a different meaning depending on where this
1070+ // message appears. If this is under
1071+ // [KeyAccessJustificationsPolicyConfig][google.cloud.kms.v1.KeyAccessJustificationsPolicyConfig],
1072+ // it means allow-all. If this is under
1073+ // [CryptoKey][google.cloud.kms.v1.CryptoKey], it means deny-all.
10661074 repeated AccessReason allowed_access_reasons = 1 ;
10671075}
10681076
0 commit comments