Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brianmoran opened this issue Apr 26, 2024 · 3 comments
Open

Comments

@brianmoran
Copy link

/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
Copy link
Author

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.

@thesuperzapper
Copy link
Member

@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?

@brianmoran
Copy link
Author

brianmoran commented May 22, 2024

@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/*"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants