Skip to content

Commit 501fb3e

Browse files
authored
feat(secret_manager): add protection in secret creation (#1109)
1 parent 81ea626 commit 501fb3e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/clients/src/api/secret/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ export const marshalCreateSecretRequest = (
231231
request.ephemeralPolicy !== undefined
232232
? marshalEphemeralPolicy(request.ephemeralPolicy, defaults)
233233
: undefined,
234+
is_protected: request.isProtected,
234235
name: request.name,
235236
path: request.path,
236237
project_id: request.projectId ?? defaults.defaultProjectId,

packages/clients/src/api/secret/v1alpha1/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ export type CreateSecretRequest = {
277277
* default, the policy is applied to all the secret's versions.
278278
*/
279279
ephemeralPolicy?: EphemeralPolicy
280+
/** A protected secret cannot be deleted. */
281+
isProtected: boolean
280282
}
281283

282284
export type CreateSecretVersionRequest = {

0 commit comments

Comments
 (0)