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

Configure server side TLS via Vault if enabled #6052

Merged
merged 6 commits into from
Sep 22, 2023

Conversation

fayzal-g
Copy link
Contributor

What this PR does

Fetches the certificates and keys required to configure server-side TLS from Vault if it is enabled.

Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Any chance for adding a unit test for this?

Perhaps we could add "Mock SecretsEngine" to vault.Config and if it's set, then just return

    if cfg.Mock != nil { return &Vault{KVStore: cfg.Mock} }

from vault.NewVault(cfg). Then we can test if initVault updates all the right places (readers, server config).

WDYT?

@fayzal-g
Copy link
Contributor Author

Yup, sounds like a good idea. Will add a test for this.

Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@pstibrany pstibrany enabled auto-merge (squash) September 22, 2023 14:50
@pstibrany pstibrany merged commit f39c938 into grafana:main Sep 22, 2023
28 checks passed
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