Scaleway’s Secret Manager allows you to conveniently store, access and share sensitive data such as passwords, API keys and certificates. With Secret Manager you can manage secrets which are logical containers made up of zero or more immutable versions, that hold sensitive data. Your data is encrypted both in transit and at rest and it is automatically replicated to multiple zones within your region of choice.
Concepts
Refer to our dedicated concepts pageOpen in new context to find definitions of the different terms referring to Secret Manager.
Quickstart
-
Configure your environment variables.
Note
This is an optional step that seeks to simplify your usage of the API.
Code -
Create an opaque secret in the root (
/) folder.CodeNote
The
opaquetype is the default secret type. If you want to create another secret type (e.g., for certificates or credentials), specify thetypefield in the request. Refer to our concepts pageOpen in new context for supported types. -
Create a secret version. Run the following command to create a version and add your secret value:
CodeNote
When creating a secret with data, two separate API calls are required:
-
Create a
basic_credentialssecret type in the root (/) folder:Code -
Create a version for your
basic_credentialssecret to store your credentials in your secret version:Code -
Access data from your latest secret version. Run the following command to access the data of your most recent secret version:
CodeNote
- The command above returns a base64-decoded JSON with your username and password if you have created the
basic_credentialssecret or any data you may have stored in other secrets.- Requests can either target a specific version or the latest.
- The command above returns a base64-decoded JSON with your username and password if you have created the
Requirement
- You have your Organization and your Project IDOpen in new context
- You have created an API keyOpen in new context
- You have installed
curlOpen in new context - You have created an API keyOpen in new context and that the API key has sufficient IAM permissionsOpen in new context to perform the actions described on this page
Technical information
Regions
Scaleway's infrastructure spans different regions and Availability ZonesOpen in new context.
Secret Manager is available in the Paris, Amsterdam and Warsaw regions, which are represented by the following path parameters:
- fr-par
- nl-ams
- pl-waw
Technical limitations
- Operations on secrets and versions are limited to CRUDL
- A secret's payload size is limited to 64KiB
Going further
For more information about Secret Manager, you can check out the following pages:
- Secret Manager DocumentationOpen in new context
- Scaleway Slack CommunityOpen in new context join the #secret-manager channel
- Contact our support teamOpen in new context.