kubeflow icon indicating copy to clipboard operation
kubeflow copied to clipboard

How to disable Multi User Isolation/ Remove Manage Contributors from UI

Open brianmoran opened this issue 10 months ago • 3 comments

/kind question

Question:

I have a specific need to completely disable Multi-User Isolation, preventing users from sharing notebooks. Is it possible to remove the Manage Contributors section from the UI, similar to the customizing the UI via a ConfigMap?

Screenshot 2024-04-26 at 10 13 08 AM

brianmoran avatar Apr 26 '24 14:04 brianmoran

In the interim, I added an AuthorizationPolicy to deny the add-contributor and remove-contributor paths. Still would be nice to have a feature flag to disable Multi User Isolation.

brianmoran avatar Apr 26 '24 20:04 brianmoran

@brianmoran for now, adding that authorization policy is the best approach because it also prevents people doing it with the KFAM API calls directly (even if the UI prevented it).

Do you want to share your AuthorizationPolicy resource YAML?

thesuperzapper avatar May 21 '24 23:05 thesuperzapper

@thesuperzapper here's the AuthorizationPolicy.

apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: central-dashboard-deny-manage-users
  namespace: kubeflow
spec:
  selector:
    matchLabels:
      app: centraldashboard
  action: DENY
  rules:
  - to:
    - operation:
        paths:
          - "/api/workgroup/add-contributor/*"
          - "/api/workgroup/remove-contributor/*"

brianmoran avatar May 22 '24 20:05 brianmoran