Skip to content

Commit 2ca06a5

Browse files
committed
STAC-22208: add section on system:authenticated
1 parent 3f24058 commit 2ca06a5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

setup/security/rbac/rbac_rancher.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,33 @@ Apart from these RBAC resources controlling access to observability data, "insta
139139
| `views` | `get`, `create`, `update`, `delete` | Access, create, delete and change [views](/use/views/k8s-custom-views.md) in the SUSE Observability UI |
140140
| `visualizationsettings` | `update` | Change [visualization settings](/use/views/k8s-topology-perspective.md#visualization-settings). |
141141

142+
143+
### Granting permissions to every authenticated user
144+
145+
Every authenticated user is automatically added to the `system:authenticated` group. So if you want to grant permissions to, say, view metricbindings, this can be achieved with the manifest:
146+
```
147+
apiVersion: rbac.authorization.k8s.io/v1
148+
kind: Role
149+
metadata:
150+
name: everyone-gets-to-see-metricbindings
151+
rules:
152+
- apiGroups:
153+
- instance.observability.cattle.io
154+
resources:
155+
- metricbindings
156+
verbs:
157+
- get
158+
---
159+
apiVersion: rbac.authorization.k8s.io/v1
160+
kind: RoleBinding
161+
metadata:
162+
name: everyone-gets-to-see-metricbindings
163+
roleRef:
164+
kind: Role
165+
name: everyone-gets-to-see-metricbindings
166+
apiGroup: rbac.authorization.k8s.io
167+
subjects:
168+
- kind: Group
169+
name: "system:authenticated"
170+
```
171+

0 commit comments

Comments
 (0)