-
-
Notifications
You must be signed in to change notification settings - Fork 637
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
Jenkins CLI auth info in run_state is no longer being used as of 8.1.0 #762
Comments
I have the same problem. How's the new way to properly authenticate with local cli using this cookbook? The following workaround works as with version module Jenkins
module Helper
def cli_username
node.run_state[:jenkins_username]
end
def cli_password
node.run_state[:jenkins_password]
end
end
end |
@davidsainty Yes, you are correct, this is usually a bad idea. I have no idea, why #717 was merged by the maintainers... However, it should somehow again use |
This is no longer supported upstream and does not work currently. Signed-off-by: Lance Albertson <[email protected]>
Any progress of this? The bug still persists and it is not possible to authenticate :( |
Unfortunately I haven't made any progress but hopefully I'll get back to this soon. |
Whats the current status? |
Jenkins CLI auth info in run_state is no longer being picked up.
π₯ Cookbook version
8.1.0 is the first release to include the change made in #717.
π©βπ³ Chef-Infra Version
cinc-client 15.14.0, testing with 15 and 16.
π© Platform details
Ubuntu 20.04
Steps To Reproduce
Steps to reproduce the behavior:
Prior to 8.1.0 setting
node.run_state[:jenkins_username]
andnode.run_state[:jenkins_password]
was a functional way to set authentication information without putting a password in a chef attribute.Here's an example where my cookbook does this by fetching it from a data bag: https://github.com/ros-infrastructure/cookbook-ros-buildfarm/blob/40ea9247f9154a8b08d61efa36616d96ac1d3d83/recipes/jenkins.rb#L10-L14
βοΈ Expected behavior
My understanding of current recommended practice is that we should prefer run_state to attributes for sensitive items like auth info. I think one way out would be to prefer the run_state and fall back to these attributes with a warning if nothing is found.
β Additional context
I'd like to come up with a solution that fixes the regression while still addressing the reason #717 was introduced. I'm working on the test issues in #757 and I'm pretty sure that they'll be affected by this change since the smoke tests also use run_state for CLI auth.
The text was updated successfully, but these errors were encountered: