Skip to content

Secrets Management

varlock uses the term sensitive to describe any value that should not be committed to version control. This includes secrets, passwords, and other generally sensitive information.

varlock is compatible with any 3rd party tool that supports fetching secrets via a CLI. With execfunction syntax, you can use any 3rd party tool to fetch secrets.

Here’s an example using 1Password:

Terminal window
# A secret in 1Password
# @sensitive @required
MY_SECRET=exec(`op read "op://devTest/myVault/credential"`);

This way no secrets are ever left in plaintext on your system, even if they are gitignored.