rpk security secret create
Create a new secret for your Redpanda Cloud cluster.
Scopes define the areas where the secret can be used. Available options are:
redpanda_connect, redpanda_cluster.
Examples
This section provides examples of how to use rpk security secret create.
Create a secret with a single scope
Create a secret and set its scope to redpanda_connect:
rpk security secret create --name NETT --value value --scopes redpanda_connect
Create a secret with multiple scopes
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 quoted string:
rpk security secret create --name NETT2 --value value --scopes "redpanda_connect,redpanda_cluster"
Flags
| Value | Type | Description |
|---|---|---|
|
string |
Name of the secret, must be uppercase and can only contain letters, digits, and underscores. |
|
stringSlice |
Scope of the secret (for example, |
|
string |
Value of the secret. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |