Groups

A User may belong to one or more Groups. A Group is simply a way to collect Users according to whatever classification needed by the Cluster administrators (e.g. roles in a company such as DevOps or developers, different groupings of workloads, etc...). Groups can be especially useful for access control where you can apply Policies to a whole set of Users instead of trying to enforce them upon each one. Here is an example:

1
kind: Group
2
metadata:
3
name: dev
4
spec: {}

And you can attach a Group to a User simply as follows:

1
kind: User
2
metadata:
3
name: john
4
spec:
5
groups: ["dev"]

Policies

Policies (read more about Policies and access control here) can be created and/or attached to Groups where they can act as principal-based policies for all the Users belonging to a certain Group. Here is an example:

1
kind: Group
2
metadata:
3
name: dev
4
spec:
5
authorization:
6
policies: ["policy-1", "policy-2"]
7
inlinePolicies:
8
- spec:
9
rules:
10
- effect: DENY
11
condition:
12
match: ctx.service.metadata.namespace == "production"
© 2025 octelium.comOctelium Labs, LLCAll rights reserved
Octelium and Octelium logo are trademarks of Octelium Labs, LLC.
WireGuard is a registered trademark of Jason A. Donenfeld