Secrets cannot be moved from one region to another after creation.
Quickstart
In this quickstart, we show you how to create a
secret within apath, and how to addversions to your newly-created secret.Before you startLink to this anchor
To complete the actions presented below, you must have:
- A Scaleway account logged into theconsole
- Owner status orIAM permissions allowing you to perform actions in the intended Organization
How to create a secretLink to this anchor
Click Secret Manager in the Security & Identity section of the
Scaleway consoleside menu.Click + Create secret.
Choose the
region in which you want to store your secret.ImportantAdd your secret:
- Choose whether to add your secret manually or import it from a file.Note
The maximum file size for your secret is 64 KiB.
- Choose asecret type and enter or upload your secret value.
- Choose whether to add your secret manually or import it from a file.
Choose a
path for your secret.Enter a name for your secret and add tags (optional).
Optionally, click «Toogle Icon»to enable
secret protection.Optionally, click «Toogle Icon»next to Enable single access or Enable Time to Live to apply an
ephemeral policy to your secret and its versions.Important- Single access: allows you to set your secret versions to expire after one single access.
- Time to Live: allows you to set a time frame of up to one year, during which your secret versions are valid and accessible.
- The ephemeral policy can only be applied to a secret at creation, and cannot be removed once applied.
- Once applied to a secret, the ephemeral policy’s settings will be applied to all the secret’s versions (even those created subsequently).
Check the estimated cost and click Create secret to confirm. The Overview tab of your secret displays.
Note- You have created a secret on the go. The value of your secret is stored in its first version, which isenabled by default. At creation, your secret only has one version. Keep reading our quickstart to find out how to add more versions to your secret.
How to add a secret versionLink to this anchor
Click your secret’s Versions tab.
Click + Create version. A pop-up displays.
Add your version:
- manually
- import it from a file
- or click Copy from latest version to restore your latest enabled version
Optionally, if you have selected Copy from latest version and applied the Single access ephemeral policy to your secret, click Copy from latest version to acknowledge the information displayed in the yellow banner, and confirm.
Important- Restoring a former version of a secret where you have applied the Single access ephemeral policy counts as an access, meaning it will then be disabled and/or deleted depending on the policies applied.
- By default, all your secret versions have the same type as the secret they belong to. You cannot change the type after you have created the secret.
Click the «Toogle Icon»icon if you want to
enable the version.Click Create version. Your secret versions display.