Skip to content

ModelOps Multi-tenancy: The Trade-offs of Profile, RBAC, and Attribution

Interactive Diagram

새 탭 ↗

In a Kubeflow-based platform, the most important tenant boundary is the Kubernetes namespace. A tenant does not receive cluster-wide permissions; it creates workloads such as Notebooks, Pipelines, and InferenceServices only inside its own namespace.

Profile is the declarative unit of a tenant

Section titled “Profile is the declarative unit of a tenant”

A Profile resource is a declaration that links a user or team to a target namespace. The Profile controller reads this declaration and reconciles the namespace, the default workload identity, RoleBindings, component activation labels, and the required mesh policies.

apiVersion: kubeflow.org/v1beta1
kind: Profile
metadata:
name: <tenant-namespace>
spec:
owner:
kind: User
name: <user-id>

One important operational rule here: you must not pre-create the namespace the controller will own through a separate manifest. When two actors (a separate manifest and the controller) try to reconcile the same namespace, ownership overlaps and they revert each other’s changes. There must be exactly one owner of namespace creation, this principle belongs to the same family of problems as the admission webhook ownership conflict discussed later.

If every component defines its own independent permission model, the tenant role system has to be redesigned from scratch every time a new component is added. Instead, this platform composes permissions onto the baseline roles view, edit, and admin using aggregation labels. When a new component is added, simply attaching aggregation labels to that component’s RBAC resources folds it automatically into the existing tenant role system.

RoleIntent
viewReads state and results
editCreates and modifies tenant-scoped workloads
adminManages the tenant and adjusts membership

cluster-admin is minimized even for operators. ServiceAccounts required for automation inside a tenant are also granted only tenant-scoped permissions.

The platform backend proxy structure and the attribution trade-off

Section titled “The platform backend proxy structure and the attribution trade-off”

This platform has a separate platform backend that calls the Kubeflow API on behalf of users under a single workload identity. This structure simplifies the implementation: there is no need to manage an individual Kubernetes credential per client.

But it has a cost. From Kubeflow’s point of view, no matter which end user actually sent the request, the identity that reaches the API collapses into the single identity of the platform backend. In that case:

  • The platform backend itself must take responsibility for the end user’s authorization, audit, quota, and resource ownership.
  • The blast radius of a leaked credential grows from a single user to every user the platform backend acts on behalf of.

In an environment that requires strong isolation and auditing, you should consider granting a separate identity per tenant, or a delegation structure that proxies the request while propagating the original user identity all the way through. Whichever approach you choose, the Profile namespace remains important as the activation boundary for components such as Pipelines, Serving, and PodSecurity: even if the attribution model changes, the namespace boundary itself is preserved.

This trade-off connects directly to the fact discussed earlier in Authentication Flows that “M2M calls arrive under the platform backend ServiceAccount identity”, which is why this platform adds a dedicated AuthorizationPolicy for the platform backend in tenant namespaces, allowing the owner identity and the backend identity separately.

These are the minimum items to check when onboarding a new tenant or changing the RBAC structure.

  • Can tenant A neither query nor call tenant B’s namespace and model endpoints?
  • Do human users and automation identities each hold only the minimum permissions they need?
  • Do namespace labels and mesh policies stay as intended even after controller reconciliation, in particular, has the namespace never been touched through a path other than the controller?
  • Can the audit log distinguish and trace the actual caller (human user vs. platform backend proxy)?
  • Are the platform backend proxy path and the direct tenant access path separated by different AuthorizationPolicies?

The multi-tenancy boundary, together with the bucket prefix and dedicated credential separation covered in Shared Data Services and the observable scope covered in Ingress and Observability Operations, makes up this platform’s overall isolation model.