You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/global-matrix-auth/README.md
+3-45Lines changed: 3 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
# matrix-auth-plugin
2
2
3
3
Requires `matrix-auth` >= 3.2
4
-
> Starting from version 3.2 of the `matrix-auth` plugin, the JCasC syntax for configuring permissions has changed. The previous `permissions:` format is deprecated and replaced with a structured `entries:` format. While older configurations may still work with `deprecated: warn`, it is recommended to migrate to the new format.
5
4
6
5
There are a couple of built-in authorizations to consider.
7
6
@@ -10,7 +9,6 @@ There are a couple of built-in authorizations to consider.
10
9
11
10
## sample-configuration (global matrix)
12
11
13
-
Updated Configuration:
14
12
```yaml
15
13
jenkins:
16
14
authorizationStrategy:
@@ -27,25 +25,12 @@ jenkins:
27
25
- group:
28
26
name: "authenticated"
29
27
permissions:
30
-
- "Overall/Administer"
31
-
```
32
-
Permissions must be defined **per line**, meaning each line must grant permission to only a single role, and only a single user or group of users.
33
-
34
-
35
-
36
-
## Deprecated Configuration (Pre-3.2)
37
-
```yaml
38
-
jenkins:
39
-
authorizationStrategy:
40
-
globalMatrix:
41
-
permissions:
42
-
- "USER:Overall/Read:anonymous"
43
-
- "GROUP:Overall/Administer:authenticated"
44
-
- "USER:Overall/Administer:admin"
28
+
- "Overall/Read"
29
+
- "Job/Build"
30
+
- "Job/Create"
45
31
```
46
32
47
33
48
-
49
34
## sample-configuration (project based matrix)
50
35
51
36
```yaml
@@ -80,33 +65,6 @@ jenkins:
80
65
- "Overall/Read"
81
66
```
82
67
83
-
## Deprecated Configuration for Project Matrix (Pre-3.2)
84
-
```yaml
85
-
jenkins:
86
-
authorizationStrategy:
87
-
projectMatrix:
88
-
permissions:
89
-
- "View/Delete:authenticated"
90
-
- "View/Read:authenticated"
91
-
- "View/Configure:authenticated"
92
-
- "View/Create:authenticated"
93
-
- "Job/Read:authenticated"
94
-
- "Job/Build:authenticated"
95
-
- "Job/Configure:authenticated"
96
-
- "Job/Create:authenticated"
97
-
- "Job/Delete:authenticated"
98
-
- "Job/Discover:authenticated"
99
-
- "Job/Move:authenticated"
100
-
- "Job/Workspace:authenticated"
101
-
- "Job/Cancel:authenticated"
102
-
- "Run/Delete:authenticated"
103
-
- "Run/Replay:authenticated"
104
-
- "Run/Update:authenticated"
105
-
- "SCM/Tag:authenticated"
106
-
- "Overall/Read:anonymous"
107
-
- "Overall/Administer:authenticated"
108
-
```
109
-
110
68
Some permissions depends on actual plugin-usage.
111
69
For Example: `Release/*:authenticated` is only available if you _use_ the Release plugin in one of your jobs.
0 commit comments