Skip to main content

Cluster Access Lists (Enterprise)

Each Ilum cluster carries its own credentials: object-storage keys, a Kubernetes namespace and a driver service account. Without access lists, any user with the JOB_CREATE permission can submit work to any cluster and so act with that cluster's credentials. Cluster access lists bind a cluster to Ilum groups, so that only members of those groups can use it.

Two lists are kept per cluster:

ListGrants
submitGroupsStarting jobs, interactive groups and their jobs, schedules, Livy batches and sessions, and spark-submit jobs on the cluster; opening the cluster's storages in the File Explorer
sqlGroupsStarting SQL engines and running SQL on the cluster from the SQL editor, the API and Kyuubi

Entries are Ilum group ids. Ilum groups can be mapped from LDAP or OAuth2 groups, so the lists follow the directory. Permissions still apply: a member of a listed group also needs JOB_CREATE, SQL_EXECUTE or the other permission the action requires.

How access is decided​

  • A caller passes a list when one of its enabled Ilum groups is on it.
  • An empty list admits everyone while security.clusterAccess.unrestrictedWhenEmpty is true (the default), so clusters without lists behave as before. With the value false, an empty list admits only callers with CLUSTER_ACCESS_MANAGE.
  • Users and API tokens with the CLUSTER_ACCESS_MANAGE permission pass every list. Only they can set or change a list. The ADMIN role has this permission; other built-in roles do not.
  • Editing or deleting a cluster requires passing both of its lists. Editing or deleting a storage, attaching it to a cluster, and every File Explorer operation require passing the submitGroups list of at least one cluster the storage is attached to already.
  • API tokens and anonymous callers belong to no group. They pass a restricted cluster only with CLUSTER_ACCESS_MANAGE.
  • A schedule runs only while its owner passes the cluster's submitGroups list.
  • A deleted group stays on the lists as its id, which the cluster form shows in place of a name. It admits nobody and can be removed from the form. A group id added to a list must belong to an existing group.

A refused request returns 403 (or 401 for a caller without credentials) and is recorded in the event log as CLUSTER_ACCESS_DENIED, with the cluster or storage and the refused action (SUBMIT, SQL, EDIT or STORAGE).

Prerequisites​

Access lists can only be enforced where Ilum knows who the caller is. Before restricting a cluster, enable authentication on the paths that reach it:

  • the public API (/api/v1): ilum-core.security.public-api.requireAuthentication=true;
  • Livy and the spark-submit proxy: ilum-core.security.submission.requireAuthentication=true;
  • Kyuubi, including the Spark SQL engines of the SQL editor: SQL sign-in (global.sqlAuth.enabled=true). Without it, a restricted cluster refuses every Spark SQL engine launch, because Kyuubi cannot tell who asked for it.

Without them, those paths are anonymous and are refused on every restricted cluster. Governed mode (global.security.governedMode=true) turns on the first two together; see the production guide.

Configuration​

NameDescriptionDefault
ilum-core.security.clusterAccess.unrestrictedWhenEmptyWhether a cluster with an empty list admits everyone (true) or only callers with CLUSTER_ACCESS_MANAGE (false)true
ilum-core:
security:
clusterAccess:
unrestrictedWhenEmpty: false

Restricting a cluster​

  1. In Security, create an Ilum group for the team, or map the directory group to an Ilum group.
  2. Open Workloads > Clusters, select the cluster and choose Edit.
  3. In the Access section, select the groups in Groups that may run jobs and Groups that may run SQL.
  4. Save the cluster.

Livy clients (for example Sparkmagic in Jupyter) choose the cluster with clusterName or spark.ilum.cluster in the session or batch conf; without either, the default cluster is used.

The lists can also be set through the public API with the submitGroups and sqlGroups fields of the cluster. An update that omits a list keeps the stored one.

Notes​

  • Running work is not stopped. Removing a group from a list affects new requests. Interactive groups that are already running keep their drivers, and Ilum's automatic retry of a failed job does not check the list again. Stop such work explicitly.
  • Direct Trino connections are not covered. Kyuubi starts Trino engines without calling Ilum, so sqlGroups applies to Trino only through the SQL editor and the API.
  • Storage listing. The storage list hides storages the caller cannot use, page by page.
  • Namespaces. A cluster's drivers can mount any Secret of the cluster's namespace. Give each restricted cluster its own namespace that holds only the Secrets its members may use, and its own storage credentials.