Skip to main content

inject

Inject secrets into a file templated with secret references.

Flags

Learn more about secret references.

You can pass in a config file templated with secret references and receive a config file with the actual secrets substituted. Make sure to delete the resolved file when you no longer need it.

Learn more about loading secrets into config files.

Examples

Inject secrets into a config template from stdin:

Inject secrets into a config template file:

Multiple secrets can be concatenated:

Use variables in secret references to switch between different sets of secrets for different environments:

Was this page helpful?