-
Improvement
-
Resolution: Fixed
-
Minor
-
-
matrix-auth-2.4
I use Project Based Authorization - each user has its own permissions to folders and jobs. Also, I use DSL Plugin - managing is much simpler. My configuration is based on one global permission and permissions per job/folder. As jobs can be defined with different inheritance strategy via code like this:
properties { authorizationMatrix { inheritanceStrategy { inheritingGlobal() } } }
folders can't be. By default, folders have "Inherit permissions from parent ACL" and it's not what I want. I have many subfolders, and not all subfolder should has the same permissions fo the same users. For example:
folderA | - subfolderA | - subfolderB
In this scenario, subfolderA and subfolderB will inherit permissions from folderA, but I don't want it. It means that if userA and userB have read access to folderA, both users will have read access to subfolderA and subfolderB.
I have tried many scenarios and without the possibility to choose the inheritance strategy in folder DSL configuration, I cannot satisfy my needs. Could you please add authorizationMatrix property as for the job?
Job DSL only provides configuration syntax for existing options. Try to configure your folders manually and then port the configuration to Job DSL. If the option is not available, open a feature request for the appropriate plugin.