-
Notifications
You must be signed in to change notification settings - Fork 156
Fixed: Vault warns when valid JSON contains special character sequences #416
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
Fixed: Vault warns when valid JSON contains special character sequences #416
Conversation
|
Additional context around this issue can be found in: |
jaymzh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good minus a few typos
e959039 to
f4ad81a
Compare
jaymzh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming tests pass, I'm good with this.
|
Hey @johnmccrae - I think this is related to powershell stuff? |
|
Just to keep people following this PR up-to-date, I followed up in Slack on this. The team is aware - but the pipelines here need some significant investigation to sort out. I've asked for a timeline estimate. |
|
https://github.com/chef/chef-vault/pull/435/files @jaymzh @decoyjoe fyi, I believe this is the work to fix the pipeline. |
f4ad81a to
7492204
Compare
|
Branch has been rebased on latest from |
c7f6c76 to
7492204
Compare
|
@tpowell-progress @jaymzh it looks like the pipeline has been fixed. Could we get another review on this? |
|
Yeah, just approved workflows, if they pass, we'll merge it today. |
|
OH, we'll need workstation approvers. Will have THomas ping them in the meeting today. |
|
@decoyjoe It looks like the branch is out of date with the main. Could you please do a rebase with the main? |
3552397 to
7492204
Compare
|
@ashiqueps Rebased on main. |
|
@decoyjoe , still I see this branch is out-of-date with the base branch |
This partially reverts commit 2e0ee1b Fixes chef#415 Signed-off-by: Joseph Larionov <[email protected]>
7492204 to
8ef3d84
Compare
|
@nikhil2611 Oops, sorry. It's actually rebased now. |



Description
Fixes an issue where Chef Vault writes a warning when a valid JSON document contains special character sequences, exposing sensitive vault data in the warning message.
Chef Vault should be agnostic to the content of the vault item JSON. It no longer inspects vault item contents, validation responsibility is left to the JSON parser to ensure the JSON data is valid.
Related Issue
Fixes #415 Chef Vault warns and leaks secrets when vault json contains properly encoded special characters · Issue #415 · chef/chef-vault
Types of changes
Checklist:
Gemfile.lockhas changed, I have used--conservativeto do it and included the full output in the Description above.