nais secrets get

nais secrets get NAME [flags]

This command shows details about a secret, including its keys, workloads using it, and last modification info. Use –with-values to also fetch and display the actual secret values (access is logged for auditing).

Options

-e, --environment
Filter by environment.
-o, --output
Format output (table json).
--reason
Reason for accessing secret values (min 10 chars). Used with –with-values.
--with-values
Also fetch and display secret values (access is logged).

Inherited options

--config
Specify the location for the configuration file.
--no-colors
Disable colors in the output.
-t, --team
Specify the team to use for this command. Overrides the default team from configuration.
-v, --verbose
Set verbosity level. Use -v for verbose, -vv for debug, -vvv for trace.

Examples

# Get details for a secret named my-secret in environment dev.
$ nais secrets get my-secret --environment dev

# Get details including secret values (will prompt for reason).
$ nais secrets get my-secret --environment dev --with-values

# Get details including secret values with reason provided inline.
$ nais secrets get my-secret --environment dev --with-values --reason "Debugging production issue #1234"

This site uses Just the Docs, a documentation theme for Jekyll.