Open jkimalane opened 2 years ago
Who is reviewing pull requests in this project? We are affected by the same problem. @nikhil2611
@jkimalane Any chance you can also remove the value from the warning message? Vault is supposed to protect secrets, so they shouldn't be printed to the output.
@jkimalane Also, this PR needs a developer certificate of origin.
Attempt to fix once and for all the issue with json validation introduced with version 4.0.13
Change introduced with version 4.0.13 breaks loading of perfectly valid json data into the Chef vault.
Description
Amended methods
printable?(string)
andvalidate_json(json)
so that json string which contains whitespaces or\n
or\r
escape sequences are marked as valid.Perfectly valid json object (read from a file) now validates without triggering an exception or displaying a warning message.
Related Issue
https://github.com/chef/chef-vault/issues/379
Types of changes
Checklist: