Skip to main content
You can create an empty secret and add versions whenever you need them, or you can create a secret together with a version immediately.

Prerequisites

Make sure you are in a group that has at least the editor role within your tenant; for example, the default editors group. You can check this in the Administration → IAM section of the web console.
Creating a secret or a version of a secret does not automatically grant you access to view payloads in that secret or version. The editor role is enough to create a secret or a version, but viewing payloads requires the mysterybox.payload-viewer role, which is a sub-role of admin but not editor.

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.
Run the following command:
nebius mysterybox secret create \
  --name "<secret_name>" \
  --description "<description>"
In the command, specify the following values:
  • name: Name of the secret.
  • description (optional): Secret description.
After the key is created, you can refer to it by its name or ID and create versions of the secret.

How to create a secret with a version

  1. In the web console, go to https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/sidebar/mysterybox.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=428f0f38232b7eea96e9d8d993c78cd4 MysteryBox.
  2. Click https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/plus.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=7c9efc69d65fc58db0eb73702fd81aa1 Create secret.
  3. In the window that opens, specify a unique name for the secret. For example, db-credentials.
  4. (Optional) Add a description that explains what the secret is used for. For example, “Credentials for the production database.”
  5. 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.
  6. (Optional) To store multiple key-value pairs in a single version, click https://mintcdn.com/nebius-ai-cloud/1Ha0sWR6e1mnIaHS/_assets/plus.svg?fit=max&auto=format&n=1Ha0sWR6e1mnIaHS&q=85&s=7c9efc69d65fc58db0eb73702fd81aa1 Add pair. Then, specify additional key–value pairs.
  7. Click Create secret.