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

feat(config): Add env and file support to Worker Tags #1758

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

hugoghx
Copy link
Collaborator

@hugoghx hugoghx commented Dec 3, 2021

We do this by taking a look at the HCL before the actual tag parsing and resolving the string to whatever value exists underneath, and then pass it on to the actual parsing.

This ensures that previous functionality is not affected.

@hugoghx hugoghx self-assigned this Dec 3, 2021
@github-actions github-actions bot added the core label Dec 3, 2021
internal/cmd/config/config.go Outdated Show resolved Hide resolved
@hugoghx
Copy link
Collaborator Author

hugoghx commented Dec 6, 2021

e387b1b adds support for setting the tag keys in the HCL config, but then getting the values from env or file, so we support both block-level abstraction as well as per key abstraction.

@hugoghx hugoghx requested a review from tmessi December 6, 2021 19:13
@hugoghx
Copy link
Collaborator Author

hugoghx commented Dec 7, 2021

13fb337, 942c534, 26c7128 and e51967d add some more tests for completeness as well as docs changes to reflect the new functionality.

@hugoghx hugoghx changed the title feature(config): add env:// and file:// support to Worker Tags feat(config): add env:// and file:// support to Worker Tags Dec 7, 2021
@hugoghx hugoghx changed the title feat(config): add env:// and file:// support to Worker Tags feat(config): Add env:// and file:// support to Worker Tags Dec 7, 2021
@hugoghx hugoghx changed the title feat(config): Add env:// and file:// support to Worker Tags feat(config): Add env and file support to Worker Tags Dec 7, 2021
tmessi
tmessi previously approved these changes Dec 7, 2021
This feature allows the user to set the `tags` field to a string
that points to either an environment variable or file.
We then dynamically pull out the value and parse it into the config.

This can also be done at the keys level, where you set your keys
directly in Boundary's config file, but point the values to env/file.
@hugoghx hugoghx merged commit faabfc0 into main Dec 8, 2021
@hugoghx hugoghx deleted the hugoamvieira-env-file-workertags branch December 8, 2021 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants