Updating a Secret in Vault
Update a secret description, change its version, secret generation, and rotation configuration.
To update the contents of a secret in the Console, you must create a new version of the secret. See Creating a Secret Version.
Use the update-base64 command to update the properties of a secret in a vault.
Open a command prompt and run
oci vault secret update-base64
to update a secret:Note
You must specify a symmetric key to encrypt the secret during import to the vault. You can't encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.oci vault secret update --secret-id <secret_OCID> --description <updated description>
For example:
oci vault secret update --secret-id ocid1.vaultsecret.oc1.eu-paris-1.amaaaaaaryab66aaoipd6v6orjaric2k6ssgucsvg6gr6l237da4cyj3xniq --description "Updates the secret description"
Avoid entering confidential information.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the UpdateSecret operation to update the properties of a secret.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.