Sets the value of a secret.
clusterctl solution secret set --solution-id <solution_id> [--from-literal <secret_id>=<secret_value> | --from-file <secret_id>=<secret_path>]See below for a description of each parameter.
For example:
$ sudo clusterctl solution secret set --solution-id ceg --from-literal password='S!B\*d$zDsb='If already deployed, redeploy the solution with the clusterctl solution deploy command to make changes effective.
-i ,--solution-id <solution_id>
Set the secret in the solution with the <solution_id> identifier.
Run the clusterctl solution info command to get the identifiers of the installed Entrust solutions.
Mandatory: Yes.
--from-literal <secret_id>=<secret_value>
Set the secret value from an inline value.
This option is mutually exclusive with --from-path. When omitting both options, the command assumes the --from-literal option and prompts the user for <secret_id> and <secret_value>.
Parameter | Value | Format restrictions |
|---|---|---|
<secret_id> | The identifier of the secret | 3-128 characters in length, start with a letter, and contain only alphanumeric characters, underscores, and hyphens. |
<secret_value> | The value of the secret | Cannot exceed 128KB. Must be enclosed in quotes to escape special characters (such as |
Mandatory: No.
--from-file <secret_id>=<secret_path>
Set the secret value from a file.
This option is mutually exclusive with --from-literal. When omitting both options, the command assumes the --from-literal option and prompts the user for <secret_id> and <secret_value>.
Parameter | Value | Format restrictions |
|---|---|---|
<secret_id> | The identifier of the secret | 3-128 characters in length, start with a letter, and contain only alphanumeric characters, underscores, and hyphens. |
<secret_path> | The path of a file containing the Base64 encoding of the secret value | Cannot exceed 128KB. Must be enclosed in quotes to escape special characters (such as |
Mandatory: No.