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

If it's possible to do authorization on kubeflow API #9

Open
emilyyujieli opened this issue Jul 31, 2023 · 4 comments
Open

If it's possible to do authorization on kubeflow API #9

emilyyujieli opened this issue Jul 31, 2023 · 4 comments

Comments

@emilyyujieli
Copy link

Background
After user login in kubeflow through Single-Sign-On, user can get his/her cookie from browser easily.
Then they can use this cookie sending request to multiple kubeflow api to get/create many kubeflow resources in each namespace even they don't got access to those namespace.
Example
[user A] is not contributor in kubeflow [namespace B]. Normally only namespace owner can add contributor through UI.
However [user A] can do those behaviors below to add himself as contributor in [namespace B]

  1. login kubeflow through sso
  2. Open browser inspect -> Click notebook in UI -> Find Name 'notebooks' in network -> Copy Cookie in request header
  3. Use postman or other API testing tool call API
    url:https://kubeflow.domain/api/workgroup/add-contributors/namespace-B
    request.header: cookies: "*******"
    method: post
    body: {"contributor":"user A's email address"}
  4. [user A] will be added in [namespace B] and he can visit notebook or even create other resources in [namespace B].
    Question
    If there is any way do authorization on kubeflow API to prevent [user A] using api to do any behavior in any other namespace unless [user A] is contributor of those namespaces)?
@juliusvonkohout
Copy link
Member

Can you please join the next security working group meeting or reach out on slack?

@juliusvonkohout
Copy link
Member

Is it maybe kubeflow/kubeflow#7032 ?

@juliusvonkohout
Copy link
Member

/transfer dashboard

@google-oss-prow google-oss-prow bot transferred this issue from kubeflow/kubeflow Oct 25, 2024
@juliusvonkohout
Copy link
Member

Is this really still possible in Kubeflow 1.9.1? I know it was possible in 1.5 or so.

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

No branches or pull requests

2 participants