orka rbac and orka rolebinding operations require administrative privileges.
Understanding RBAC in Orka
Orka relies on RBAC (role-based access control) for the management of user access to resources. In Orka, RBAC consists of the following elements:- Roles: A set of permissions. Roles are managed by MacStadium.
- Subjects: Users and service accounts which can be bound to a role. Subjects are managed by Orka users with administrative privileges.
- Namespaces: Groups of resources dedicated to specific users or service accounts. Namespaces are managed by Orka users with administrative privileges.
- Rolebindings: K8s objects describing which subjects belong to which role and which subjects can access which namespaces. Rolebindings are managed by Orka users with administrative privileges.
- All admin users have access to all namespaces
- All non-admin users have user access to the
orka-defaultnamespace
- To grant a user access to a specific namespace, add that user as a subject to the rolebinding for the namespace
- Service accounts automatically have access to the namespace where they were created
- To grant a service account access to a specific namespace, add that service account as a subject to the rolebinding for the namespace
--namespace is not set, rolebinding commands operate in the orka-default namespace. The shorthand alias for rolebinding is rb.
Managing role subjects
Requires Orka 4.0 or later. On earlier versions, use the
orka rolebinding commands that follow.orka rbac to grant and revoke Orka roles for users and service accounts. Every orka rbac command requires administrative privileges and a --role:
--role devmodifies theorka-devrolebinding in a single namespace, granting access to that namespace. Use--namespaceto choose the namespace. It defaults to your default namespace.--role adminis cluster-wide. Subjects are added to or removed from every rolebinding and cluster rolebinding that grants the admin role to its OIDC group, so--namespaceisn’t valid with--role admin.
orka rbac add-subject
Grant a role to one or more users and/or service accounts. Admin grants apply only to the admin bindings that exist at grant time. Bindings created later, for example when you create a new namespace, start without the granted subjects. Re-run this command after creating namespaces to include them. It’s safe to run more than once. Syntax:orka rbac list-subjects
List the subjects currently granted a role. With--role admin, the list combines the subjects from every binding that grants the admin role, without duplicates.
Syntax:
orka rbac remove-subject
Revoke a role from one or more users and/or service accounts. Syntax:Managing rolebindings
orka rolebinding add-subject
Add a subject to the rolebinding for the specified namespace. This grants the user or the service account access to the specified namespace. Syntax:orka rolebinding list-subjects
List all rolebinding subjects, along with their kind, in the orka-default namespace or another specified namespace. Syntax:orka rolebinding remove-subject
Remove a subject from a rolebinding. This revokes the user or service account access to the specified namespace. Syntax:Common workflows
Adding and removing access
Common workflow:- Create a namespace:
- Move nodes to the namespace:
- Grant users access:
- Grant service accounts access:
- Verify access:

