Updated on 2026-03-19 GMT+08:00

Saving and Viewing Secret Values

This section describes how to save and view secret values on the CSMS console.

You can create a new version of a secret to encrypt and keep a new secret value. By default, the latest secret version in SYSCURRENT state. The previous version is in the SYSPREVIOUS state.

Constraints

  • A secret can have up to 20 versions.
  • Secret versions are numbered v1, v2, v3, and so on based on their creation time.

Procedure

  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 a secret name to go to the details page.
  4. In the Current Version area, click Add Secret Version. In the displayed dialog box, enter the secret key/value or plaintext secret.
  5. You can select an expiration time for the stored secret value. The time can be specific to seconds. After the setting is complete, you can view the expiration time in the secret version list. For example, Jun 30, 2023 19:52:59.
  6. Click OK. A message is displayed in the upper right corner of the page, indicating that the value is added successfully.
  7. In the Version List area, locate the target secret version, click View Secret in the Operation column.
  8. Click OK.