Closed ayushbhatt29 closed 3 years ago
As a workaround, it's possible with most artifact repos (including Artifactory) to allow anonymous downloads so that credentials are not required (and thus will not be logged)
(While it's not a fix, it might get you unblocked)
Thanks @trickyearlobe for the suggestion
Customer bug - https://github.com/chef/customer-bugs/issues/490
We didn't had the credentials issue earlier because our team is downloading Chef package from packages.chef.io .
Now as per Infosec team guidelines, Instead of downloading the Chef msi package from internet, we are downloading the msi package from private jfrog artifactory.
When we use chef_package_url option in ARM template to mention artifactory URL of Chef msi package
chef_package_url: https://<%= ENV['ARTIFACTORY_USERNAME'] %>:<%= ENV['ARTIFACTORY_API_KEY'] %>@example.jfrog.io/artifactory/packages.chef.io-cache/16.14.1/windows/2016/chef-client-16.14.1-1-x64.msi
After using this option, artifactory credentials are being written into logs.
Example logs are as below:
Regards, Irina.
To Reproduce
1/ Please use the chef_package_url with artifactory in the ARM template 2/ And submit the template to create/install and bootstrap.