Skip to content

Commit 7fbf256

Browse files
Google APIscopybara-github
authored andcommitted
feat: support external-μ in the Digest
PiperOrigin-RevId: 897686352
1 parent bc600b8 commit 7fbf256

File tree

4 files changed

+50
-27
lines changed

4 files changed

+50
-27
lines changed

google/cloud/kms/v1/cloudkms_grpc_service_config.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
"service": "google.cloud.kms.v1.KeyManagementService",
4040
"method": "ListCryptoKeyVersions"
4141
},
42-
{
43-
"service": "google.cloud.kms.v1.KeyManagementService",
44-
"method": "ListRetiredResources"
45-
},
4642
{
4743
"service": "google.cloud.kms.v1.EkmService",
4844
"method": "GetEkmConnection"
@@ -63,10 +59,6 @@
6359
"service": "google.cloud.kms.v1.KeyManagementService",
6460
"method": "GetCryptoKeyVersion"
6561
},
66-
{
67-
"service": "google.cloud.kms.v1.KeyManagementService",
68-
"method": "GetRetiredResource"
69-
},
7062
{
7163
"service": "google.cloud.kms.v1.EkmService",
7264
"method": "CreateEkmConnection"
@@ -115,14 +107,6 @@
115107
"service": "google.cloud.kms.v1.KeyManagementService",
116108
"method": "RestoreCryptoKeyVersion"
117109
},
118-
{
119-
"service": "google.cloud.kms.v1.KeyManagementService",
120-
"method": "DeleteCryptoKey"
121-
},
122-
{
123-
"service": "google.cloud.kms.v1.KeyManagementService",
124-
"method": "DeleteCryptoKeyVersion"
125-
},
126110
{
127111
"service": "google.cloud.kms.v1.KeyManagementService",
128112
"method": "GetPublicKey"
@@ -226,6 +210,22 @@
226210
{
227211
"service": "google.cloud.kms.v1.HsmManagement",
228212
"method": "DeleteSingleTenantHsmInstanceProposal"
213+
},
214+
{
215+
"service": "google.cloud.kms.v1.KeyManagementService",
216+
"method": "ListRetiredResources"
217+
},
218+
{
219+
"service": "google.cloud.kms.v1.KeyManagementService",
220+
"method": "GetRetiredResource"
221+
},
222+
{
223+
"service": "google.cloud.kms.v1.KeyManagementService",
224+
"method": "DeleteCryptoKey"
225+
},
226+
{
227+
"service": "google.cloud.kms.v1.KeyManagementService",
228+
"method": "DeleteCryptoKeyVersion"
229229
}
230230
],
231231
"timeout": "60s",

google/cloud/kms/v1/cloudkms_v1.yaml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,22 @@ documentation:
2727
- selector: google.cloud.location.Locations.ListLocations
2828
description: |-
2929
Lists information about the supported locations for this service.
30-
This method can be called in two ways:
3130
32-
* **List all public locations:** Use the path `GET /v1/locations`.
33-
* **List project-visible locations:** Use the path
34-
`GET /v1/projects/{project_id}/locations`. This may include public
35-
locations as well as private or other locations specifically visible
36-
to the project.
31+
This method lists locations based on the resource scope provided in
32+
the [ListLocationsRequest.name] field:
33+
34+
* **Global locations**: If `name` is empty, the method lists the
35+
public locations available to all projects. * **Project-specific
36+
locations**: If `name` follows the format
37+
`projects/{project}`, the method lists locations visible to that
38+
specific project. This includes public, private, or other
39+
project-specific locations enabled for the project.
40+
41+
For gRPC and client library implementations, the resource name is
42+
passed as the `name` field. For direct service calls, the resource
43+
name is
44+
incorporated into the request path based on the specific service
45+
implementation and version.
3746
3847
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
3948
description: |-

google/cloud/kms/v1/resources.proto

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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).
10601066
message 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

google/cloud/kms/v1/service.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2335,6 +2335,12 @@ message Digest {
23352335

23362336
// A message digest produced with the SHA-512 algorithm.
23372337
bytes sha512 = 3;
2338+
2339+
// A message digest produced with SHAKE-256, to be used with ML-DSA
2340+
// external-μ algorithms only. See "message representative" note in
2341+
// section 6.2, algorithm 7 of the FIPS-204 standard:
2342+
// https://doi.org/10.6028/nist.fips.204
2343+
bytes external_mu = 4;
23382344
}
23392345
}
23402346

0 commit comments

Comments
 (0)