Skip to content

feat(secret_manager): allow to specify an external key id when creating a secret #2525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions api/secret/v1beta1/secret_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,9 @@ type Secret struct {
// DeletionRequestedAt: returns the time at which deletion was requested.
DeletionRequestedAt *time.Time `json:"deletion_requested_at"`

// KeyID: (Optional.) The Scaleway's Key Manager key ID used to encrypt and decrypt secret versions.
KeyID *string `json:"key_id"`

// Region: region of the secret.
Region scw.Region `json:"region"`
}
Expand Down Expand Up @@ -660,6 +663,9 @@ type CreateSecretRequest struct {

// Protected: a protected secret cannot be deleted.
Protected bool `json:"protected"`

// KeyID: (Optional.) The Scaleway's Key Manager key ID will be used to encrypt and decrypt secret versions. If not specified, the Secret Manager will use an internal key.
KeyID *string `json:"key_id,omitempty"`
}

// CreateSecretVersionRequest: create secret version request.
Expand Down
Loading