MysteryBox is now called SecretStash. The Nebius AI Cloud CLI, API and Terraform provider still use the
mysterybox service identifier. Keep using mysterybox in scripts and manifests.Prerequisites
Make sure you are in a group that has at least theeditor role within your tenant or project; for example, the default editors group. You can check this in the Administration → IAM section of the web console.
How to create a secret without a version
You can create a secret without a version by using the CLI only. If you want to use the web console, follow How to create a secret with a version.- CLI
Run the following command:In the command, specify the following values:
name: Name of the secret.description(optional): Secret description.
How to create a secret with a version
- Web console
- CLI
- In the web console, go to Cryptography → SecretStash.
- Click Create secret.
-
In the window that opens, specify a unique name for the secret. For example,
db-credentials. - (Optional) Add a description that explains what the secret is used for. For example, “Credentials for the production database.”
-
In the Key and Value fields, specify a key-value pair that the secret should store. This pair will be the payload of this secret.
In the Value field, select a data type:
- Text: Specify a plain string. Commonly used for passwords, tokens and API keys.
- File: Upload a binary file. Convenient for certificates, private keys and configuration files.
- (Optional) To store multiple key-value pairs in a single version, click Add pair. Then, specify additional key-value pairs.
- Click Create secret.