Updated on 2023-01-31 GMT+08:00

Creating a Secret

This section describes how to create a secret on the CSMS console.

You can create a secret and store its value in its initial version, which is marked as SYSCURRENT.

Constraints

  • A user can create a maximum of 200 credentials.
  • By default, the default master key csms/default created by CSMS is used as the encryption master key of the current secret. You can also create a key and use a user-defined encryption key on the KMS console.

Creating a Secret

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Click . Choose Security & Compliance > Data Encryption Workshop.
  4. In the navigation pane, choose Cloud Secret Management Service.
  5. Click Create Secret.

    Figure 1 Creating a secret

  6. In the Create Secret dialog box, enter the secret name, value, description, and select a KMS encryption key.

    • Secret Name: Enter a secret name.
    • Secret Value: Enter the secret key/value or plaintext secret.
    • Description: Enter the secret description.
    • KMS Encryption Key: Select the default CMK csms/default or a user-defined key in KMS.

      By default, the default master key csms/default created by CSMS is used as the encryption master key of the current secret. You can also create a key and use a user-defined encryption key on the KMS console. For details, see Creating a CMK.

  7. Click OK.

    In the secret list, you can view created secrets. The default status of a secret is Enabled.