anjuna-policy-manager secret create

anjuna-policy-manager secret create <secret-name> OPTIONS

Creates a secret in the Anjuna Policy Manager. One of --file, --random, or --value must be provided to specify the value of the secret.

Arguments

<secret-name>

The name of the secret to create.

Options

--file <file-path>

Path to a file containing the secret value.

--random <length>

Generate a random secret of the specified length in bytes. length must be a positive integer.

--value <secret>

The secret value.

Global options

The following options are available for all anjuna-policy-manager subcommands.

Global options

--addr <address>

Address of the Anjuna Policy Manager. This can also be provided via the ANJUNA_ADDR environment variable.

--ca-cert <file-path>

Path to a PEM-encoded CA certificate used to verify the Policy Manager’s TLS certificate. This can also be provided via the ANJUNA_CACERT environment variable.

--engine-path <path>

Alternative path for the secret engine (default is "anjuna").

--token <token>

The management token for the Anjuna Policy Manager. This can also be provided via the ANJUNA_TOKEN environment variable.

-h, --help

Prints the help information for this command.

Exit status

  • 0 on success

  • > 0 on error