Skip to content

Commit a3af5b5

Browse files
author
Junaid-Ashraf-56
committed
Updated according to the given points
1 parent effd572 commit a3af5b5

1 file changed

Lines changed: 3 additions & 45 deletions

File tree

demos/global-matrix-auth/README.md

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# matrix-auth-plugin
22

33
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.
54

65
There are a couple of built-in authorizations to consider.
76

@@ -10,7 +9,6 @@ There are a couple of built-in authorizations to consider.
109

1110
## sample-configuration (global matrix)
1211

13-
Updated Configuration:
1412
```yaml
1513
jenkins:
1614
authorizationStrategy:
@@ -27,25 +25,12 @@ jenkins:
2725
- group:
2826
name: "authenticated"
2927
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"
4531
```
4632
4733
48-
4934
## sample-configuration (project based matrix)
5035
5136
```yaml
@@ -80,33 +65,6 @@ jenkins:
8065
- "Overall/Read"
8166
```
8267
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-
11068
Some permissions depends on actual plugin-usage.
11169
For Example: `Release/*:authenticated` is only available if you _use_ the Release plugin in one of your jobs.
11270

0 commit comments

Comments
 (0)