Skip to content

Commit 0e00141

Browse files
authored
feat(secret_manager): add protection in secret creation (#1982)
1 parent 2ed7c55 commit 0e00141

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api/secret/v1alpha1/secret_sdk.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,9 @@ type CreateSecretRequest struct {
517517

518518
// EphemeralPolicy: (Optional.) Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions.
519519
EphemeralPolicy *EphemeralPolicy `json:"ephemeral_policy,omitempty"`
520+
521+
// IsProtected: a protected secret cannot be deleted.
522+
IsProtected bool `json:"is_protected"`
520523
}
521524

522525
// CreateSecretVersionRequest: create secret version request.

0 commit comments

Comments
 (0)