sensitive property not passed down from top level resources #198
Labels
Status: Good First Issue
An issue ready for a new contributor.
Type: Bug
Does not work as expected.
Type: Enhancement
Adds new functionality.
Cookbook version
2.1.7
Chef-client version
12.18.31
Platform Details
Suse12sp2
Scenario:
We are trying to hide the display of sensitive data (e.g. Ldap Passwords) from the chef-client run logs. We have set the 'sensitive' property to 'true' on the chef_server, chef_automate, chef_supermarket, and workflow_builder resources, but this property value is not being propagated to lower-level resources (e.g. chef_ingredient, ingredient_config) and the resulting config files are being fully displayed. From the code, it looks like ingredient_config is written to accept a value that would have been passed and would honor it when rendering the config file. In addition several generated sensitive files (e.g. delivery.pem, validation.pem, builder_key) are also fully displayed.
Steps to Reproduce:
Add the property (and value) "sensitive true" when defining any of chef_server, chef_automate, chef_supermarket, or workflow_builder resources.
Expected Result:
The resulting config file (e.g. chef-server.rb, automate.rb) is not displayed in the chef-client output run.
Actual Result:
The resulting config file (including all sensitive data) is fully displayed in the chef-client output.
The text was updated successfully, but these errors were encountered: