-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
[Security-771] Fixed and improved smoke test logic and implementation for About Jenkins page access. #11120
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
base: master
Are you sure you want to change the base?
Conversation
…ption and reduce repeated code.
…urces to ensure proper resource cleanup for WebClient.
Yay, your first pull request towards Jenkins core was created successfully! Thank you so much! |
I wasn't able to add the following labels: test Check that the label exists and is spelt right then try again. |
@jglick , @timja , @NotMyFault Thanks in advance for your feedback! |
I surely can take a look at the changes proposed, but I lack access to the names jira issue, therefore I'm unsure weather this meets the needed conditions. |
SECURITY-771 is about being able to see what plugins are installed and their versions with only overall read access. As part of the change The change seems ok to me although not much benefit in refactoring old security tests imo. |
@timja thanks for taking a look at this PR! Regarding your point about refactoring the old security tests, let me explain the benefits this PR brings: What this PR delivers:
Why these changes matter:
Could you help route this to the Security team for their review, please? |
This is generally unnecessary for published issues except in weird edge cases. https://www.jenkins.io/security/issue/SECURITY-771 has everything in this case. Security team does not object to this PR in principle. Personally this PR looks unnecessary though. The newly added test configurations are unnecessary (without Overall/Read, you never get past |
@daniel-beck til about this redirect 👀 But +1 with your and Tim's thoughts. |
Hi team, thank you for the feedback so far! To clarify the intent of this PR, the main improvements are:
Regarding the new test configurations, could you please help me understand why they are considered unnecessary? I added them to explicitly test the access control path for users without Overall/Read permission, ensuring the redirect logic is triggered correctly. I believe these changes significantly improve the code quality and reliability of this security test. |
In this PR was fixed and improved smoke test logic and implementation for About Jenkins page access for users with different permissions.
In this smoke test were covered all critical permission combinations:
Testing done
Local test run passed for updated test.
To run test you can use the next command:
mvn test -Dtest=AboutJenkinsTest
Screenshots:



Proposed changelog entries
Proposed changelog category
/label tests, skip-changelog`
Proposed upgrade guidelines
N/A
Submitter checklist
@Restricted
or have@since TODO
Javadocs, as appropriate.@Deprecated(since = "TODO")
or@Deprecated(forRemoval = true, since = "TODO")
, if applicable.eval
to ease future introduction of Content Security Policy (CSP) directives (see documentation).Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist
upgrade-guide-needed
label is set and there is a Proposed upgrade guidelines section in the pull request title (see example).lts-candidate
to be considered (see query).