-
Notifications
You must be signed in to change notification settings - Fork 5
/
hash-rbac.yml
78 lines (76 loc) · 1.33 KB
/
hash-rbac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
admin_roles:
- "kafka-admins"
- "server-administrators"
authorized_roles:
- "kafka-admins"
- "kafka-users"
- "server-administrators"
policies:
- actions:
- TOPIC_CREATE
- TOPIC_PRODUCE
- TOPIC_EDIT
- TOPIC_DELETE
- GROUP_EDIT
- ACL_EDIT
- BULK_ACTION
effect: Allow
resource:
- cluster
- "*"
role: "kafka-admins"
- actions:
- CONNECT_CREATE
- CONNECT_EDIT
effect: Allow
resource:
- connect
- "*"
role: "kafka-admins"
- actions:
- SCHEMA_EDIT
- SCHEMA_CREATE
effect: Allow
resource:
- schema
- "*"
role: "kafka-admins"
- actions:
- BROKER_EDIT
effect: Allow
resource:
- cluster
- "*"
role: "kafka-admins"
- actions:
- TOPIC_PRODUCE
- TOPIC_EDIT
- ACL_EDIT
effect: Allow
resource:
- cluster
- "*"
role: "kafka-users"
- actions:
- CONNECT_CREATE
- CONNECT_EDIT
effect: Allow
resource:
- connect
- "*"
role: "kafka-users"
- actions:
- SCHEMA_EDIT
- SCHEMA_CREATE
effect: Deny
resource:
- schema
- "*"
role: "kafka-users"
- actions:
- TOPIC_INSPECT
effect: Allow
resource:
- cluster
- "*"
roles: [ "kafka-users", "kafka-admins" ]