Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuring all Vault connection details in flags #138

Merged
merged 2 commits into from
Feb 8, 2022

Conversation

tomhjp
Copy link
Contributor

@tomhjp tomhjp commented Feb 5, 2022

Closes #82
Adds flags to configure Vault TLS and namespace settings in addition to the existing options to use environment variables and SPC parameters. We already allowed using env vars due to using api.DefaultConfig(), but hadn't actually documented this anywhere. Config precedence follows the level of specificity, so SPC > flag > env var.

I also replaced usage of this repo's config.TLSConfig with the Vault API module's api.TLSConfig, which is the same struct with slightly different member names.

internal/client/client_test.go Outdated Show resolved Hide resolved
@brettjacobson
Copy link

Is there any documentation on how to set these flags, especially when installing via the helm chart??? It does not look like the helm chart was updated to support these new flags in a nice, clear way.

@tomhjp
Copy link
Contributor Author

tomhjp commented Jun 6, 2022

@brettjacobson thanks for raising this question. Generally speaking, most of these flags are designed to be used via csi.extraArgs. Although it was a bit weird that the Helm chart wasn't doing anything to help with setting the Vault address for CSI, but it was for injector, so I raised a couple of PRs for that: hashicorp/vault-helm#745 and #160.

I also raised another PR to improve the documentation on our website: hashicorp/vault#15810

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.

Configure Vault connection details in Provider pod
3 participants