diff --git a/cmd/scw/testdata/test-all-usage-secret-secret-create-usage.golden b/cmd/scw/testdata/test-all-usage-secret-secret-create-usage.golden index 110411ef9e..f2ccd56bbc 100644 --- a/cmd/scw/testdata/test-all-usage-secret-secret-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-secret-secret-create-usage.golden @@ -19,8 +19,8 @@ ARGS: [ephemeral-policy.time-to-live] Time frame, from one second and up to one year, during which the secret's versions are valid. [ephemeral-policy.expires-once-accessed] Returns `true` if the version expires after a single user access. [ephemeral-policy.action] Action to perform when the version of a secret expires (unknown_action | delete | disable) - [protected] Returns `true` if secret protection is enabled on a given secret - [key-id] The Scaleway's Key Manager key ID + [protected] Returns `true` if secret protection is applied to a given secret + [key-id] ID of the Scaleway Key Manager key [region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) FLAGS: diff --git a/docs/commands/secret.md b/docs/commands/secret.md index 9f87160758..f84fd99724 100644 --- a/docs/commands/secret.md +++ b/docs/commands/secret.md @@ -73,8 +73,8 @@ scw secret secret create [arg=value ...] | ephemeral-policy.time-to-live | | Time frame, from one second and up to one year, during which the secret's versions are valid. | | ephemeral-policy.expires-once-accessed | | Returns `true` if the version expires after a single user access. | | ephemeral-policy.action | One of: `unknown_action`, `delete`, `disable` | Action to perform when the version of a secret expires | -| protected | | Returns `true` if secret protection is enabled on a given secret | -| key-id | | The Scaleway's Key Manager key ID | +| protected | | Returns `true` if secret protection is applied to a given secret | +| key-id | | ID of the Scaleway Key Manager key | | region | Default: `fr-par`
One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config | diff --git a/go.mod b/go.mod index a068cbfd9b..ea0af7e644 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.13.2 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250415141343-ed7d8fa2ef23 + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250417091007-4d879045bf57 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.9.1 github.com/spf13/pflag v1.0.6 diff --git a/go.sum b/go.sum index 3c9995591c..56fa4ed730 100644 --- a/go.sum +++ b/go.sum @@ -462,8 +462,8 @@ github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUz github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250415141343-ed7d8fa2ef23 h1:ahwe042nQ9ZfsUnoMIAvzctygyQAAu7sdVXswFP2KT8= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250415141343-ed7d8fa2ef23/go.mod h1:w4o02EHpO0CBGy2nehzWRaFQKd62G9HIf+Q07PDaUcE= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250417091007-4d879045bf57 h1:4whrhv1ujBRUmqKPPg/qe6LoweqTNYx7TLdgPUaQzM4= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.33.0.20250417091007-4d879045bf57/go.mod h1:w4o02EHpO0CBGy2nehzWRaFQKd62G9HIf+Q07PDaUcE= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA= diff --git a/internal/namespaces/secret/v1beta1/secret_cli.go b/internal/namespaces/secret/v1beta1/secret_cli.go index 6ed1b3f4e6..c72c5b9769 100644 --- a/internal/namespaces/secret/v1beta1/secret_cli.go +++ b/internal/namespaces/secret/v1beta1/secret_cli.go @@ -151,14 +151,14 @@ func secretSecretCreate() *core.Command { }, { Name: "protected", - Short: `Returns ` + "`" + `true` + "`" + ` if secret protection is enabled on a given secret`, + Short: `Returns ` + "`" + `true` + "`" + ` if secret protection is applied to a given secret`, Required: false, Deprecated: false, Positional: false, }, { Name: "key-id", - Short: `The Scaleway's Key Manager key ID`, + Short: `ID of the Scaleway Key Manager key`, Required: false, Deprecated: false, Positional: false,