-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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-61812 Fix read only password #4622
JENKINS-61812 Fix read only password #4622
Conversation
Would be great to have a small test for this. I plan to work in this space in the near future and would rather not break this again. |
@timja I made some amendments in the changelog entry, PTAL |
Thanks, looks good |
I plan to merge it tomorrow if no negative feedback |
@timja I was done with my work earlier than expected, see #4630 Specifically, I don't think a call to |
I was having weird behaviour with this before without the above change I wasn't getting a value at all that I could use to check, I can check after your change? or you could push a commit to this or your change since you're already in the area? Otherwise I can pick this up later |
Can't you obtain the real |
it's possible to do this, but I think it just adds complexity for no value? this has the actual value of the secret in plain text:
calling the function just returns the encrypted value. |
If you still think it's worth it I have a patch that can be applied which works: Patch
|
@timja That looks great and is exactly what I had in mind. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks plausible. Untested.
Thanks for amending!
Will merge in 24 hours if no negative feedback |
* JENKINS-61812 Fix read only password * Don't call getPasswordValue until later (cherry picked from commit 5de91d0)
See JENKINS-61812.
Previously N/A was always being set because value wasn't initialised when the j:choose was being used.
Proposed changelog entries
*****
) and undefined (N/A) password on read-only configuration forms for users with Overall/SystemRead or Item/ExtendedRead permissions.Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate