Skip to main content
Admin only: All 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.
Default access:
  • All admin users have access to all namespaces
  • All non-admin users have user access to the orka-default namespace
Granting access:
  • 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
If --namespace is not set, rolebinding commands operate in the orka-default namespace. The shorthand alias for rolebinding is rb.

Managing rolebindings

orka3 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:
Options:
Examples:

orka3 rolebinding list-subjects

List all rolebinding subjects, along with their kind, in the orka-default namespace or another specified namespace. Syntax:
Options:
Examples:

orka3 rolebinding remove-subject

Remove a subject from a rolebinding. This revokes the user or service account access to the specified namespace. Syntax:
Options:
Examples:

Common workflows

Adding and removing access

Common workflow:
  1. Create a namespace:
  1. Move nodes to the namespace:
  1. Grant users access:
  1. Grant service accounts access:
  1. Verify access:

Service account access

Service accounts are automatically granted access to the namespace where they are created. To grant a service account access to additional namespaces, use the rolebinding commands: