Skip to content

Commit

Permalink
feat(secret_manager): add protection in secret creation (#1982)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Jan 25, 2024
1 parent 2ed7c55 commit 0e00141
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/secret/v1alpha1/secret_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,9 @@ type CreateSecretRequest struct {

// EphemeralPolicy: (Optional.) Policy that defines whether/when a secret's versions expire. By default, the policy is applied to all the secret's versions.
EphemeralPolicy *EphemeralPolicy `json:"ephemeral_policy,omitempty"`

// IsProtected: a protected secret cannot be deleted.
IsProtected bool `json:"is_protected"`
}

// CreateSecretVersionRequest: create secret version request.
Expand Down

0 comments on commit 0e00141

Please sign in to comment.