Skip to content

Conversation

lucywyman
Copy link
Contributor

When this plugin was baked in to Bolt, the auth key was optional
because we also accepted the value as an environment variable. So we
didn't check if auth was set, then read the environment variable, and
did nothing if neither was set. When I moved this out to be a standalone
plugin I changed this to merge the user-set options over the ENV var
defaults, and then check that required keys were required, namely
server-url and auth which were not previously checked. However if
you're using an agent to connect to vault, you can connect Bolt directly
to the agent which authenticates with the vault server using it's own
certs, which doesn't require Bolt to authenticate with Vault. This means
the auth option is, in fact, optional. This PR removes it from
required key validation.

@lucywyman lucywyman force-pushed the maint-make-vault-optional branch 3 times, most recently from 4d5666c to 3c560ce Compare November 5, 2019 18:36
When this plugin was baked in to Bolt, the `auth` key was optional
because we also accepted the value as an environment variable. So we
didn't check if `auth` was set, then read the environment variable, and
did nothing if neither was set. When I moved this out to be a standalone
plugin I changed this to merge the user-set options over the ENV var
defaults, and then check that required keys were required, namely
`server-url` and `auth` which were not previously checked. However if
you're using an agent to connect to vault, you can connect Bolt directly
to the agent which authenticates with the vault server using it's own
certs, which doesn't require Bolt to authenticate with Vault. This means
the `auth` option is, in fact, optional. This PR removes it from
required key validation.
@lucywyman lucywyman force-pushed the maint-make-vault-optional branch from 3c560ce to 46448bc Compare November 5, 2019 19:04
@lucywyman lucywyman merged commit 7dfa53a into puppetlabs:master Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants