Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETOBSERV-1324: allow fine-grained rbac #64

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion loki_operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,18 @@ Once the Loki stack is up and running, you need to configure NetObserv to commun

### User access

You then need to define `ClusterRoleBindings` for allowed users or groups, such as [this one](./examples/loki-stack/rolebinding-user-test.yaml) for a user named `test`. This can also be done from the CLI:
You then need to define `ClusterRoleBindings` or `RoleBindings` for allowed users or groups, such as [this one](./examples/loki-stack/rolebinding-user-test.yaml) for a user named `test`. This can also be done from the CLI:

```bash
oc adm policy add-cluster-role-to-user netobserv-reader test
```

Alternatively, you can use fine-grained roles per namespace:

```bash
oc adm policy add-role-to-user netobserv-reader test -n my-namespace
```

Cluster admins do not need this role binding.

### Testing multi-tenancy
Expand Down