Altering a secret does not change the secret used in a running job until the job is restarted (e.g., by restarting the cluster).

Syntax

ALTER SECRET secret_name WITH (
    backend = 'meta'
) AS 'your_new_secret';

Parameters

Parameter or ClauseDescription
secret_nameThe name of the secret to be altered.
backendThe backend where the secret is stored. Currently, only the meta backend is supported.
your_new_secretThe new secret value that you wish to store securely.

Example

ALTER SECRET mysql_pwd WITH (
    backend = 'meta' 
) AS 'new_password';

See also