Skip to content

Commit 4d87904

Browse files
authored
feat(secret_manager): allow to specify an external key id when creating a secret (#2525)
1 parent ed7d8fa commit 4d87904

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/secret/v1beta1/secret_sdk.go

+6
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@ type Secret struct {
493493
// DeletionRequestedAt: returns the time at which deletion was requested.
494494
DeletionRequestedAt *time.Time `json:"deletion_requested_at"`
495495

496+
// KeyID: (Optional.) The Scaleway's Key Manager key ID used to encrypt and decrypt secret versions.
497+
KeyID *string `json:"key_id"`
498+
496499
// Region: region of the secret.
497500
Region scw.Region `json:"region"`
498501
}
@@ -660,6 +663,9 @@ type CreateSecretRequest struct {
660663

661664
// Protected: a protected secret cannot be deleted.
662665
Protected bool `json:"protected"`
666+
667+
// 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.
668+
KeyID *string `json:"key_id,omitempty"`
663669
}
664670

665671
// CreateSecretVersionRequest: create secret version request.

0 commit comments

Comments
 (0)