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.

Usage

rpk security secret update [flags]

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

-h, --help

-

Help for update.

--name

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.

--scopes

stringArray

Scope(s) of the secret (for example, redpanda_connect).

--value

string

New value of the secret.

--config

string

Redpanda or rpk config file. Default search paths are /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings. See rpk -X or run rpk -X help for inline detail or rpk -X list for terser detail.

--profile

string

rpk profile to use.

-v, --verbose

-

Enable verbose logging.