rpk security secret create
Create a new 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.
Examples
To create a secret and set its scope to redpanda_connect:
rpk security secret create --name NETT --value value --scopes redpanda_connect
To set the scope to both redpanda_connect and redpanda_cluster:
rpk security secret create --name NETT2 --value value --scopes redpanda_connect,redpanda_cluster
You can also pass the scopes as a string:
rpk security secret create --name NETT2 --value value --scopes "redpanda_connect,redpanda_cluster"
Flags
| Value | Type | Description |
|---|---|---|
|
- |
Help for create. |
|
string |
Name of the secret (required). Must be in uppercase and can only contain letters, digits, and underscores. |
|
stringArray |
Scope(s) of the secret, for example, |
|
string |
Value of the secret (required). |
|
string |
Redpanda or rpk config file. Default search paths are |
|
stringArray |
Override |
|
string |
rpk profile to use. |
|
- |
Enable verbose logging. |