Knife bootstrap is not uploading the secret file specified by --secret-file
on Windows
#9018
Labels
Focus: knife bootstrap
Platform: Windows
Priority: Critical
Fix immediately
Type: Regression
It used to work, now it doesn't.
Description
We have recently upgraded to using version 15.3.14, from version 14 and have found that when bootstrapping a windows node the secret file is not being uploaded when specified using the
--secret-file <PATH TO FILE>
parameter, but supplying the raw contents using the--secret <SECRET>
parameter it is.Confirmed the secret file does exist in the location specified by the
--secret-file <PATH TO FILE>
parameter.Chef Version
15.3.14
Platform Version
windows 10.0.14393
Replication Case
Doesn't work (doesn't upload the secret file to C:\chef\encrypted_data_bag_secret):
knife bootstrap winrm://<IP ADDRESS> -U 'USER' -P 'PASS' -E PROD -y -N NODE_NAME -F json --secret-file '<PATH TO SECRET FILE>' --node-ssl-verify-mode none --bootstrap-version 15.3.14 --chef-license accept
Does work (file is created and contents copied):
knife bootstrap winrm://<IP ADDRESS> -U 'USER' -P 'PASS' -E PROD -y -N NODE_NAME -F json --secret '<SECRET>' --node-ssl-verify-mode none --bootstrap-version 15.3.14 --chef-license accept
Client Output
Stacktrace
No secret specified and no secret found at C:\chef\encrypted_data_bag_secret
The text was updated successfully, but these errors were encountered: