Skip to content

Releases: jenkinsci/matrix-auth-plugin

Version 3.2.2

07 Mar 14:03
Compare
Choose a tag to compare

🎁 Improvements

  • Adapt to jenkinsci/jenkins#8979 coming in Jenkins 2.449, ensuring continued correct tracking of ambiguous permissions through agent configuration changes (#158)

Version 3.2.1

18 Sep 10:16
Compare
Choose a tag to compare

🐛 Bugfixes

🔧 Internal Changes

  • Remove MatrixAuthorizationStrategyConfigurator#getLegacyPermissions (#153)

Version 3.2

22 Aug 13:31
Compare
Choose a tag to compare

💥 Major Changes 💥

This release changes the syntax for configuring permissions with Configuration as Code, Job DSL, and Pipeline plugins (#145, #144)

Warning

This is a breaking change for anyone currently configuring matrix authorization using these plugins.

In all three cases, the permissions list has been replaced with the entries list and a more elaborate element syntax decoupled from the serialized XML configuration format. See examples below for the new syntax.

Configuration as Code

authorizationStrategy:
  projectMatrix:
    entries:
      - user:
          name: "admin"
          permissions:
            - "Overall/Administer"
      - group:
          name: "authenticated"
          permissions:
            - "Overall/Read"

Job DSL

properties {
  authorizationMatrix {
    inheritanceStrategy {
        nonInheriting()
    }
    entries {
      group {
        name('authenticated')
        permissions([
          'Job/Read'
        ])
      }
    }
  }
}

Pipeline

properties([
  authorizationMatrix([
    group(name: 'authenticated', permissions: ['Job/Read']),
    user(name: 'alice', permissions: [
      'Job/Configure',
      'hudson.scm.SCM.Tag'
    ])
  ])
])

For a more comprehensive example of the new configuration syntax for Configuration as Code and Job DSL, see this file. Use the Pipeline Snippet Generator to see the new format for arguments to the authorizationMatrix(…) property.

Note

This change only affects Job DSL configuring jobs using properties/authorizationMatrix (provided by Matrix Authorization Plugin), not authorization (provided by Job DSL Plugin). See JENKINS-67411 for known problems with the latter.

Internal Changes 🔧

  • Use newer parent POM to allow building on Java 21, also updating the Configuration as Code Plugin dependency from 1647.ve39ca_b_829b_42 to 1670.v564dc8b_982d0 (#147)
  • Remove obsolete code (#149)
  • Address test flakiness in Security2180Test (#150)

Version 3.1.10

17 Jul 10:28
Compare
Choose a tag to compare
  • Update look of permissions table to more nicely integrate with recent Jenkins UI improvements (#147)
    • Update require Jenkins version to 2.387.3 and add dependency on ionicons-api
  • Fix sidepanel links shown on the page listing ambiguous permissions assignments (#148)

Version 3.1.9

05 Jul 08:07
Compare
Choose a tag to compare
  • JENKINS-71368: Return the full list of groups from AuthorizationStrategy#getGroups even if the caller has low permissions, as can be the case with Active Directory Plugin (#141)
  • Internal: Update parent POM from 4.61 to 4.66 to upgrade HTMLUnit from 2.x to 3.x (#143)

Version 3.1.8

30 May 13:17
Compare
Choose a tag to compare

Version 3.1.7

18 Apr 12:18
Compare
Choose a tag to compare
  • JENKINS-67368: Refer to user ID instead of name where appropriate (#137)
  • Various internal fixes and improvements
    • Suppress Jenkins Security Scan warnings (#134)
    • Switch JCasC test to RealJenkinsRule (#136)
    • Upgrade Job DSL dependency to 1.82 (#135)
    • Bump parent pom (#138)

Version 3.1.6

08 Dec 16:24
Compare
Choose a tag to compare

Version 3.1.5

04 Jul 20:07
Compare
Choose a tag to compare
  • Fix a regression in 3.1.4 that prevented use of the buttons Add user… and Add group…. (#126)

Version 3.1.4

02 Jul 17:37
Compare
Choose a tag to compare
  • Restore tooltips on icons migrating ambiguous permissions when running recent Jenkins releases (#122)
  • Internal: Update parent pom to 4.41 (#123)