-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-71368] Obtain groups from all matrix properties using SYSTEM…
… identity (#141) * Using SYSTEM2 ACLContext to find out which group permissions has been set The getGroups method of ProjectMatrixAuthorizationStrategy uses the users ACLContext to iterate through all projects/folders/nodes and find which group permissions are set on each. In conjunction with the active-directory plugin, with the option "remove irrelevant groups" this causes a problem, since we save the relevant groups upon logging in, when the user is still anonymous. This is done for performance reasons, since going through each AD group everytime a user tries to access a resource is not doable for systems with a lot of AD groups. This means that for everything on the master where Anonymous doesn't have read access, the groups defined are deemed irrelevant, since we can't access them at the time of calculation. This in turn means that you can't set up a system where access is given through AD groups and anonymous can't already read everything. * Add test Also rename the unused try-with-resources holder for IntelliJ --------- Co-authored-by: Daniel Beck <[email protected]>
- Loading branch information
1 parent
5c7d732
commit da0c5fb
Showing
2 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters