Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49199

Job DSL Authorizarion Matrix cannot manage the folder inheritance

XMLWordPrintable

    • 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?

       

       

            danielbeck Daniel Beck
            ewypych Emil Wypych
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: