-
Notifications
You must be signed in to change notification settings - Fork 261
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
Config file rendering shows plain-text password in diff #184
Comments
@rmoriz That's a really good idea! I looked a bit, and that was introduced in Chef 11.10.0. Something like: chef > min_ver = Chef::Version.new('11.10.0')
=> 11.10.0
chef > current_ver = Chef::Version.new(Chef::VERSION)
=> 11.16.4
chef > current_ver > min_ver
=> true How does that sound? |
How about: template "…" do
sensitive true if respond_to?(:sensitive)
end It's the way the Chef people recommend it, e.g. in this case: https://www.chef.io/blog/2015/02/17/chef-12-1-0-chef_gem-resource-warnings/ |
That sounds even better! |
Going to slot this change for Next Major, as the behavior would likely apply unilaterally to all templates generated by the |
+1 for this...we use jenkins for our chef runs and it logs the output. any way to get that output suppressed from those templates would be great. |
👍 |
Resolved via #274. |
Currently, each monitor template will throw a diff when converged which includes, e.g. the password in plain text (chef's default).
eg
Please consider using
sensitive true
as resource option. See https://docs.chef.io/resource_common.htmlThe text was updated successfully, but these errors were encountered: