Skip to content

Commit bbe5618

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added support for accessing secret versions by alias
Clients can now associate custom strings with specified secret versions for later access. PiperOrigin-RevId: 439320490
1 parent 536a2d8 commit bbe5618

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

google/cloud/secretmanager/v1/resources.proto

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@ message Secret {
9797
// Optional. Rotation policy attached to the [Secret][google.cloud.secretmanager.v1.Secret]. May be excluded if there is no
9898
// rotation policy.
9999
Rotation rotation = 9 [(google.api.field_behavior) = OPTIONAL];
100+
101+
// Optional. Mapping from version alias to version name.
102+
//
103+
// A version alias is a string with a maximum length of 63 characters and can
104+
// contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
105+
// and underscore ('_') characters. An alias string must start with a
106+
// letter and cannot be the string 'latest' or 'NEW'.
107+
// No more than 50 aliases can be assigned to a given secret.
108+
//
109+
// Version-Alias pairs will be viewable via GetSecret and modifiable via
110+
// UpdateSecret. At launch access by alias will only be supported on
111+
// GetSecretVersion and AccessSecretVersion.
112+
map<string, int64> version_aliases = 11 [(google.api.field_behavior) = OPTIONAL];
100113
}
101114

102115
// A secret version resource in the Secret Manager API.

0 commit comments

Comments
 (0)