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

Sensitive properties of custom resources leaked via failed regex constraints #14107

Open
chuhn opened this issue Nov 28, 2023 · 0 comments
Open
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@chuhn
Copy link

chuhn commented Nov 28, 2023

Description

When a custom resource has a property that is flagged as sensitive and guarded by a regex its content will be printed to STDOUT if it does not match the given regex.

Chef Version

Cinc Client: 18.2.7

Platform Version

Debian 11

Replication Case

Define a custom resource with:

property :my_property, String, sensitive: true, regex: %r{^foobar$}

Call that resource with my_property set to something other than foobar.

Client Output

FATAL: Chef::Exceptions::ValidationFailed: Property my_property's value SuperSecretPassword does not match regular expression /^foobar$/
@chuhn chuhn added the Status: Untriaged An issue that has yet to be triaged. label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant