Skip to content

Commit 34190ba

Browse files
committed
chore: normalize casbin policy YAML key ordering
https://claude.ai/code/session_01WrcMNpLJxuKKFKPQ39h1rT
1 parent 40e2551 commit 34190ba

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

config/casbin/policy.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
scopes:
2-
client-a:
3-
description: Client A
4-
created_at: 2024-01-01T00:00:00Z
52
client-b:
63
description: Client B
74
created_at: 2024-01-01T00:00:00Z
8-
qa:
9-
description: QA
5+
client-a:
6+
description: Client A
107
created_at: 2024-01-01T00:00:00Z
118
default:
129
description: Default scope for unassigned apps
1310
created_at: 2024-01-01T00:00:00Z
11+
qa:
12+
description: QA
13+
created_at: 2024-01-01T00:00:00Z
1414
roles:
15+
viewer:
16+
permissions:
17+
- view
18+
description: Read-only access
19+
admin:
20+
permissions:
21+
- '*'
22+
description: Full system access
1523
operator:
1624
permissions:
1725
- view
@@ -26,54 +34,46 @@ roles:
2634
- logs
2735
- create
2836
description: Developer access - all except destroy
29-
viewer:
30-
permissions:
31-
- view
32-
description: Read-only access
33-
admin:
34-
permissions:
35-
- '*'
36-
description: Full system access
3737
assignments:
38-
identifier:hello-world:
38+
dev:system:internal:
39+
- role: admin
40+
scopes:
41+
- '*'
42+
identifier:client-a:
3943
- role: developer
4044
scopes:
4145
- client-a
46+
identifier:test-service:
47+
- role: admin
48+
scopes:
49+
- client-a
4250
- client-b
4351
- qa
52+
- default
4453
identifier:admin:
4554
- role: admin
4655
scopes:
4756
- client-a
4857
- client-b
4958
- qa
5059
- default
51-
'*':
52-
- role: viewer
53-
scopes:
54-
- default
55-
identifier:client-a:
60+
'@factorial.io':
5661
- role: developer
5762
scopes:
5863
- client-a
59-
dev:system:internal:
60-
- role: admin
61-
scopes:
62-
- '*'
63-
identifier:test-service:
64-
- role: admin
64+
- client-b
65+
- qa
66+
identifier:hello-world:
67+
- role: developer
6568
scopes:
6669
- client-a
6770
- client-b
6871
- qa
69-
- default
7072
xxxstephan@factorial.io:
7173
- role: admin
7274
scopes:
7375
- '*'
74-
'@factorial.io':
75-
- role: developer
76+
'*':
77+
- role: viewer
7678
scopes:
77-
- client-a
78-
- client-b
79-
- qa
79+
- default

0 commit comments

Comments
 (0)