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

Add support for Vault agent environment variables | VAULT-16059 #1741

Merged
merged 11 commits into from May 9, 2023

Conversation

dhuckins
Copy link
Contributor

@dhuckins dhuckins commented Apr 14, 2023

The purpose of this PR is to support injecting vault secrets as environment variables for vault agent.

we needed a way to map the template (and TemplateConfig) back to the respective environment variable when a template is rendered

Signed-off-by: Daniel Huckins <dhuckins@users.noreply.github.com>
Signed-off-by: Daniel Huckins <dhuckins@users.noreply.github.com>
Signed-off-by: Daniel Huckins <dhuckins@users.noreply.github.com>
@dhuckins dhuckins changed the title Vault env var secrets [DO NOT MERGE] Vault env var secrets May 3, 2023
@dhuckins dhuckins changed the title Vault env var secrets Vault env var secrets | VAULT-16059 May 3, 2023
@dhuckins dhuckins marked this pull request as ready for review May 3, 2023 18:28
@dhuckins dhuckins requested a review from a team as a code owner May 3, 2023 18:28
@dhuckins dhuckins requested review from roncodingenthusiast and removed request for a team May 3, 2023 18:28
Copy link
Contributor

@averche averche left a comment

Choose a reason for hiding this comment

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

Small formatting for the comment, o/w looks good to me.

config/template.go Outdated Show resolved Hide resolved
@averche
Copy link
Contributor

averche commented May 3, 2023

For context, this work is described in more details in the following RFC:

RFC: VLT-253

@averche averche changed the title Vault env var secrets | VAULT-16059 Add support for Vault agent environment variables | VAULT-16059 May 3, 2023
Co-authored-by: Anton Averchenkov <84287187+averche@users.noreply.github.com>
config/template.go Outdated Show resolved Hide resolved
@eikenb
Copy link
Contributor

eikenb commented May 3, 2023

Looks fine so far. Needs tests and documentation updates though.

dhuckins and others added 6 commits May 3, 2023 16:19
Signed-off-by: Daniel Huckins <dhuckins@users.noreply.github.com>
Signed-off-by: Daniel Huckins <dhuckins@users.noreply.github.com>
Signed-off-by: Daniel Huckins <dhuckins@users.noreply.github.com>
Signed-off-by: Daniel Huckins <dhuckins@users.noreply.github.com>
config/template.go Outdated Show resolved Hide resolved
Co-authored-by: Daniel Huckins <dhuckins@users.noreply.github.com>
@dhuckins dhuckins requested a review from eikenb May 5, 2023 14:47
Copy link
Contributor

@eikenb eikenb left a comment

Choose a reason for hiding this comment

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

Looks good.

@dhuckins dhuckins merged commit 2a5a5b5 into main May 9, 2023
53 checks passed
@dhuckins dhuckins deleted the vault-env-var-secrets branch May 9, 2023 14:49
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.

None yet

3 participants