This page describes how to edit a secret's metadata. You can update many properties of a secret such as encryption type, rotation policy, expiration date, labels, and event notifications. You can also add annotations and set up aliases for secret versions. You can't edit the secret name or value and the replication policy. To add a new value to your secret, you must create a new secret version.
Required roles
To get the permissions that
you need to update a secret's metadata,
ask your administrator to grant you the
Secret Manager Admin (roles/secretmanager.admin) IAM role on the secret or project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
You might also be able to get the required permissions through custom roles or other predefined roles.
Edit a secret
To edit a secret, use one of the following methods:
Console
-
In the Google Cloud console, go to the Secret Manager page.