Why is the Chef.username used in the Node Xml?
atahir opened this issue · 3 comments
The resource xml generated by the plugin adds the Chef.username as an attribute to the Node Xml that is being generated. This indicates that the username used to login to the Chef repo and access the Node data is the same username used by the Rundeck node executors to execute a job that has been assigned to a Node. I came across this when I was testing uncheck winrm node executor. Is this right? What if your node executors should execute by using some other password?
I'm using the zip downloaded from the project website. Its the following code that in file lib\chef-rundeck.rb Line 70,
It is at this point when the username is substituted as the value for the username attribute on the node xml tag.
username="#{Chef::Mixin::XMLEscape::xml_escape(ChefRundeck.username)}"
Thanks for your help.
Not sure why this issue is still open but it seems to reference a pretty old version. Username is overridable now at the command line. Originally it was read in exclusively from the Chef client config (which could be a user's knife.rb or something purpose-built for chef-rundeck).
Since the reference is no longer valid and the handling of the username has changed since this issue was opened, I'm going to consider the matter closed...