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

Job DSL Authorizarion Matrix cannot manage the folder inheritance

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

       

       

          [JENKINS-49199] Job DSL Authorizarion Matrix cannot manage the folder inheritance

          Emil Wypych created issue -
          Daniel Spilker made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Emil Wypych made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Emil Wypych [ ewypych ]
          Emil Wypych made changes -
          Assignee Original: Emil Wypych [ ewypych ] New: Daniel Spilker [ daspilker ]
          Daniel Spilker made changes -
          Resolution Original: Not A Defect [ 7 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Daniel Spilker made changes -
          Component/s New: matrix-auth-plugin [ 18131 ]
          Daniel Spilker made changes -
          Assignee Original: Daniel Spilker [ daspilker ] New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Released As New: matrix-auth-2.4
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: