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 parseutil.ParsePath for sensitive values in wrapper configs #272

Merged
merged 17 commits into from
Jan 21, 2025

Conversation

sgmiller
Copy link
Collaborator

@sgmiller sgmiller commented Jan 10, 2025

Quite a few operators have asked for the ability to pull sensitive values into seal/managed key configs from separate files, feeling env vars or direct config isn't secure. ParsePath gives them the option to get values from a separate file while being non-invasive to existing configs.

@sgmiller sgmiller requested a review from a team January 10, 2025 20:58
@sgmiller
Copy link
Collaborator Author

Will subsequently update the go.mod deps to a tagged version of go-kms-wrapping/v2

@sgmiller sgmiller marked this pull request as draft January 10, 2025 21:01
@sgmiller sgmiller marked this pull request as ready for review January 10, 2025 21:31
options.go Outdated Show resolved Hide resolved
@sgmiller
Copy link
Collaborator Author

Updated this to just be the main package level changes. Next step if approved/merged is to tag gkw, then update the wrappers to use it against a tagged dep.

stevendpclark
stevendpclark previously approved these changes Jan 16, 2025
Copy link
Contributor

@stevendpclark stevendpclark left a comment

Choose a reason for hiding this comment

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

👍

@sgmiller sgmiller merged commit 9aac87b into main Jan 21, 2025
20 checks passed
@sgmiller sgmiller deleted the sgm/parsepath branch January 21, 2025 22:25
cipherboy pushed a commit to cipherboy/go-kms-wrapping that referenced this pull request Feb 9, 2025
…ashicorp#272) and Use ParsePaths to source sensitive wrapper config values from Env/File if desired (hashicorp#275)

* Add support for stdlib ParsePath to sensitive options

* wip

* wire up QuietParsePath to all remaining wrappers

* Add ParsePaths

* wip new pattern

* bug fixes

* remove unused

* unit test

* mod tidy

* remove unnecessary change

* remove unnecessary change

* Use the new parsepath options

* add missing errnoturl check

* Update to parsepath 0.1.9

* rollback wrapper changes until we have a tagged top level package

* Improve ParsePaths behavior in errors, and add a usage comment

---

* Add support for stdlib ParsePath to sensitive options

* wip

* wire up QuietParsePath to all remaining wrappers

* Add ParsePaths

* wip new pattern

* bug fixes

* remove unused

* unit test

* mod tidy

* remove unnecessary change

* remove unnecessary change

* Use the new parsepath options

* add missing errnoturl check

* Update to parsepath 0.1.9

* update go.mods to point to a fixed tag for ParsePath

* go mod tidy

* pr feedback
cipherboy pushed a commit to cipherboy/go-kms-wrapping that referenced this pull request Feb 9, 2025
…ashicorp#272) and Use ParsePaths to source sensitive wrapper config values from Env/File if desired (hashicorp#275)

* Add support for stdlib ParsePath to sensitive options

* wip

* wire up QuietParsePath to all remaining wrappers

* Add ParsePaths

* wip new pattern

* bug fixes

* remove unused

* unit test

* mod tidy

* remove unnecessary change

* remove unnecessary change

* Use the new parsepath options

* add missing errnoturl check

* Update to parsepath 0.1.9

* rollback wrapper changes until we have a tagged top level package

* Improve ParsePaths behavior in errors, and add a usage comment

---

* Add support for stdlib ParsePath to sensitive options

* wip

* wire up QuietParsePath to all remaining wrappers

* Add ParsePaths

* wip new pattern

* bug fixes

* remove unused

* unit test

* mod tidy

* remove unnecessary change

* remove unnecessary change

* Use the new parsepath options

* add missing errnoturl check

* Update to parsepath 0.1.9

* update go.mods to point to a fixed tag for ParsePath

* go mod tidy

* pr feedback
cipherboy pushed a commit to cipherboy/go-kms-wrapping that referenced this pull request Feb 9, 2025
…ashicorp#272) and Use ParsePaths to source sensitive wrapper config values from Env/File if desired (hashicorp#275)

* Add support for stdlib ParsePath to sensitive options

* wip

* wire up QuietParsePath to all remaining wrappers

* Add ParsePaths

* wip new pattern

* bug fixes

* remove unused

* unit test

* mod tidy

* remove unnecessary change

* remove unnecessary change

* Use the new parsepath options

* add missing errnoturl check

* Update to parsepath 0.1.9

* rollback wrapper changes until we have a tagged top level package

* Improve ParsePaths behavior in errors, and add a usage comment

Original commit: a1337fd

---

* Add support for stdlib ParsePath to sensitive options

* wip

* wire up QuietParsePath to all remaining wrappers

* Add ParsePaths

* wip new pattern

* bug fixes

* remove unused

* unit test

* mod tidy

* remove unnecessary change

* remove unnecessary change

* Use the new parsepath options

* add missing errnoturl check

* Update to parsepath 0.1.9

* update go.mods to point to a fixed tag for ParsePath

* go mod tidy

* pr feedback

Original commit: 9aac87b
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.

3 participants