Promoting a Pending Secret Version to the Current Version

Learn how to promote a pending version of a secret stored in an OCI vault to the current version.

    1. Open the navigation menu , select Identity & Security, and then select Vault.
    2. Under List scope, select the compartment that contains the secret that you must promote to current version.
    3. On the Vaults page, select the name of the vault to open the its details page
    4. Under Resources, select Secrets, and then click the name of a secret to open its details page.
    5. Under Table Scope, select Versions.
    6. Find a secret version in pending state, select the Actions menu (Actions Menu) and then select Promote to Current.
    7. Confirm the promotion by selecting Promote to Confirm.

      The version status is set as "Current" and is in active use.

  • Open a command prompt and run oci vault secret update to promote a secret version to current, active use:

    oci vault secret update --secret-id <target_secret_id> --current-version-number <target_secret_version_number>

    For example:

    
    oci vault secret update --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample --current-version-number 3

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • This task cannot be performed using the API.