rpk security secret update
Update an existing secret for your cluster.
Scopes define the areas where the secret can be used. Available scopes are:
-
redpanda_connect
-
redpanda_cluster
You can set one or both scopes on a secret. Updating a secret’s scopes will overwrite its current scopes.
Examples
To update the value of the secret:
rpk security secret update --name NETT --value new_value
To update the scope of a secret to both redpanda_connect
and redpanda_cluster
:
rpk security secret update --name NETT2 --value value --scopes redpanda_connect,redpanda_cluster
Flags
Value | Type | Description |
---|---|---|
|
- |
Help for update. |
|
string |
Name of the secret. The name must be in uppercase and can only contain letters, digits, and underscores. You cannot update the name of an existing secret. |
|
stringArray |
Scope(s) of the secret (for example, |
|
string |
New value of the secret. |
|
string |
Redpanda or rpk config file. Default search paths are |
|
stringArray |
Override |
|
string |
rpk profile to use. |
|
- |
Enable verbose logging. |