More

Assigning access rights

GUI for managing roles and assigning access sets.

Role model

Rights are configured in the context of the Platform, Tenant, Cluster and Namespace levels. The structure of the model, the composition of sets of accesses and permissions are described in Architecture of access modules and in Setting permissions.


Overview

Assigning access rights to the entire platform and tenants is available only from the platform GUI. You can also assign rights at the management cluster, client cluster, and namespace levels.

Permissions are assigned to users and groups by selecting one or more access sets. For more information about sets and permissions, see Setting permissions.

Places for assigning access rights by level

From the Platform section of the GUI, you can manage group/user rights for level objects:

  • all platform clusters;
  • tenant; (see the screenshot below)
  • any cluster or namespace. (see the screenshot below)

All assignments are collected on the Manage Roles page. Switch between groups and users on the Groups and Users tabs. For how the table works, see Assignment list.

Manage roles at the platform level

Assigning permissions at the platform level

From the Cluster section, the following is available:

  • manage the rights of a group or user in this cluster or the namespace of this cluster; (see the screenshot below)
  • see which groups/users with rights to the platform have access to this cluster. (see the screenshot below)

The page is called Access Control. It has the same Groups and Users tabs, but no Tenant column.

Access Control in the cluster — Groups tab

Access Control in the cluster — Users tab

Available from the Namespace section:

  • manage rights to this namespace;
  • see which users with rights to the platform or cluster have access to this namespace. (see the screenshot below)

The page is called Access Control. It has the same Groups and Users tabs, but no Tenant and Cluster columns.

Access control in namespace

Assignment list

On the Manage Roles page, assignments of groups and users are collected in one table. The Groups and Users tabs switch the table, and the Tenant, Cluster, and Namespace columns show the level of each assignment.

ColumnDescription
NameGroup or user name
TenantTenant the rights are assigned to. For assignments to the whole platform, Platform (Tenant 0)
ClusterCluster the rights are assigned to. * means all clusters of the platform. For tenant assignments, the clusters that belong to the tenant
NamespaceNamespace the rights are assigned to. * means all namespaces. For tenant assignments, the namespaces that belong to the tenant
Access setsAssigned access sets
Application statusResult of applying the assignment: Platform permissions, Cluster permissions, ArgoCD. See Assignment application status

If an assignment covers several clusters or namespaces, the table has a separate row for each of them.

Above the table you can search by text, filter by name, tenant, cluster, namespace, and access set, and sort by name or tenant.

You see only the assignments you have rights to view. What appears in the table depends on the page. On the platform page, all such assignments are available, and you can assign rights at any level. On the cluster page, you see assignments in that cluster and its namespaces. On the namespace page, you see only assignments in that namespace, even if your rights allow more.

Rows you can change open for editing, and you can delete them with the delete button at the end of the row. Other rows open for viewing only.

Add a new assignment with the button above the table: Add permission assignment to user on the Users tab, Add permission assignment to group on the Groups tab. Then choose where to assign the rights: To platform, To cluster, To namespace, or To tenant. In a cluster, only To cluster and To namespace are available. In a namespace there is no menu: the form opens right away.

Screenshot: assignment list

Assignment list on the Manage Roles page

From the Manage Roles page you can:

  • Assign users and groups access rights to the platform, cluster or namespace;
  • Change and delete platform, cluster and namespace rights assignments in all clusters and namespaces available to the user.

You can also assign access rights from the cluster and namespace Access Control sections. See Assigning access rights in a cluster or namespace.


Assigning rights to a user

  1. Open the Users tab and click Add permission assignment to user. Choose where to assign the rights: To platform, To cluster, To namespace, or To tenant. The assignment form opens.

  2. Specify a unique username in one of the following ways:

When assigning rights to a user, specify username using the same character case as in the LDAP directory.

Method 1: Select from an LDAP directory

Available when LDAP integration is configured (for example, AD or openLDAP).

  • In the Unique Username field, start typing your name. Starting from the second character, a directory search is performed.
  • Select a user from the list (case-insensitive search).

If the directory is not connected, use manual entry.

Method 2: Manual entry

  • Select Manual Entry and enter the username in the Unique Username field.

Manual entry may be required when using an external authentication provider (Keycloak, Blitz, etc.). Manual entry does not perform an LDAP search.

Form for assigning rights to a user

Adding a user

  1. Select the access sets to assign.
  2. Click Save.

The username cannot be edited after creating a record. To change the name, delete the entry and create a new one.


Assigning rights to a group

  1. Open the Groups tab.
  2. Click Add permission assignment to group and choose where to assign the rights: To platform, To cluster, To namespace, or To tenant.
  3. Specify group name in one of the following ways:

Method 1: Select from an LDAP directory

Available when LDAP integration is configured.

  • In the Group Name field, start typing a name. Starting from the second character, a directory search is performed.
  • Select a group from the list (case-insensitive search).

If the directory is not connected, use manual entry.

Method 2: Manual entry

  • Select Manual Entry and enter the group name in the Group Name field.

Manual entry may be required when using an external authentication provider (Keycloak, Blitz, etc.). When entering manually, search by LDAP is not satisfied.

  1. Select the access sets to assign.
  2. Click Save.

All users in the group will receive assigned permissions.

The group name cannot be edited after the entry is created. To change the name, delete the entry and create a new one.


Peculiarities of assignment in tenants

Access rights assigned to a tenant apply to all objects in that tenant. Users with tenant access gain access to nested objects. Only platform users have access to the tenants themselves.

Tenant combines entire clusters

If the tenant’s namespaces indicate * (clusters are combined entirely), cluster-level access sets are available for assignment.

Tenant with entire clusters

Tenant with clusters

Tenant unites namespaces

If a tenant unites specific namespaces, namespace-level access sets are available for assignment.

Tenant with namespaces

Tenant with namespaces

A list of access sets is displayed after selecting a tenant name.


Kubeflow permissions and role in Argo CD

If a set of permissions includes Kubeflow rights or a role in Argo CD, their application depends on the assignment level:

Assignment levelKubeflow accessArgo CD access
PlatformAccess to Kubeflow profiles of all clusters.Access to all Argo CD projects of all clusters.
ClusterAccess to Kubeflow profiles of the selected cluster.Access to all Argo CD projects of the selected cluster.
NamespaceAccess to the Kubeflow profile of only one namespace.Access to the Argo CD project for only one namespace.

Assignment application status

Once saved, the assignments are applied to the management cluster and client clusters. The status model displays the result of the application in the Platform permissions, Cluster permissions, and ArgoCD columns.

Platform permissions

Contains the results of applying assignments to the management cluster itself.

The management cluster stores client cluster objects (API groups: cluster.x-k8s.io, bootstrap.cluster.x-k8s.io, infrastructure.cluster.x-k8s.io, permissions.shturval.tech). Therefore, platform permissions are required to work with such objects in the access set. The statuses can display application to the management cluster even for assignments at the “cluster” or “namespace” level.

Cluster permissions and ArgoCD

Cluster permissions show whether access rights were applied successfully in the clusters, and ArgoCD shows whether the Argo CD roles were applied.

  • Platform and Tenant levels: a quantitative indicator showing how many of the clusters received the assignment, for example, 8 / 12. If the assignment was not applied in any cluster, the icon is red.
  • Cluster and Namespace levels: color indication for that cluster or namespace.

If a row has several access sets, the status is shown separately for each set.

Color indication

ColorDescription
GreenThe assignment was successfully applied.
RedErrors occurred while applying access rights.
GrayNo application required. This is possible if the access set did not request the allocation of access rights, for example, in Argo CD and/or Kubeflow

Brief assignment process

  1. Open the Manage Roles page in the platform, or Access Control in a cluster or namespace.
  2. Select the Users or Groups tab.
  3. Click Add permission assignment to user or Add permission assignment to group and choose where to assign the rights. In a namespace there is no such choice.
  4. Specify the user or group (from the LDAP directory or manually).
  5. Select access sets.
  6. Click Save.
  7. Check the application status in the Application status columns.

Revoking assignments

You can delete assignments on the Manage Roles page (Users and Groups tabs) or in the Access Control section of a cluster or namespace.

Revocation of all assignments of a user or group is available on the Access Tree page.