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.
- Open the navigation menu , select Identity & Security, and then select Vault.
- Under List scope, select the compartment that contains the secret that you must promote to current version.
- On the Vaults page, select the name of the vault to open the its details page
- Under Resources, select Secrets, and then click the name of a secret to open its details page.
- Under Table Scope, select Versions.
- Find a secret version in pending state, select the and then select Promote to Current.
- 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.