Skip to content

Conversation

@decoyjoe
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@decoyjoe decoyjoe requested review from a team as code owners November 25, 2024 22:50
Copy link
Collaborator

@jaymzh jaymzh 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 minus a few typos

@decoyjoe decoyjoe force-pushed the bugfix/vault-warns-when-item-contains-special-characters branch 2 times, most recently from e959039 to f4ad81a Compare November 26, 2024 19:07
Copy link
Collaborator

@jaymzh jaymzh left a 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.

@jaymzh
Copy link
Collaborator

jaymzh commented Nov 26, 2024

Hey @johnmccrae - I think this is related to powershell stuff?

@jaymzh
Copy link
Collaborator

jaymzh commented Feb 13, 2025

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.

@tpowell-progress
Copy link
Contributor

https://github.com/chef/chef-vault/pull/435/files @jaymzh @decoyjoe fyi, I believe this is the work to fix the pipeline.

@decoyjoe decoyjoe force-pushed the bugfix/vault-warns-when-item-contains-special-characters branch from f4ad81a to 7492204 Compare May 6, 2025 19:51
@decoyjoe
Copy link
Contributor Author

decoyjoe commented May 6, 2025

Branch has been rebased on latest from main.

@decoyjoe decoyjoe force-pushed the bugfix/vault-warns-when-item-contains-special-characters branch from c7f6c76 to 7492204 Compare May 13, 2025 19:34
@decoyjoe
Copy link
Contributor Author

@tpowell-progress @jaymzh it looks like the pipeline has been fixed. Could we get another review on this?

@jaymzh
Copy link
Collaborator

jaymzh commented May 13, 2025

Yeah, just approved workflows, if they pass, we'll merge it today.

@jaymzh
Copy link
Collaborator

jaymzh commented May 13, 2025

OH, we'll need workstation approvers. Will have THomas ping them in the meeting today.

@ashiqueps
Copy link
Contributor

@decoyjoe It looks like the branch is out of date with the main. Could you please do a rebase with the main?

@decoyjoe decoyjoe force-pushed the bugfix/vault-warns-when-item-contains-special-characters branch from 3552397 to 7492204 Compare May 14, 2025 15:53
@decoyjoe
Copy link
Contributor Author

@ashiqueps Rebased on main.

@sonarqubecloud
Copy link

@nikhil2611
Copy link
Contributor

@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]>
@decoyjoe decoyjoe force-pushed the bugfix/vault-warns-when-item-contains-special-characters branch from 7492204 to 8ef3d84 Compare May 14, 2025 16:18
@decoyjoe
Copy link
Contributor Author

@nikhil2611 Oops, sorry. It's actually rebased now.

@nikhil2611 nikhil2611 merged commit 8bc8de5 into chef:main May 14, 2025
23 of 25 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.

Chef Vault warns and leaks secrets when vault json contains properly encoded special characters

5 participants