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

[Bug] What's minimum permission set for kuberay-operator? #2213

Open
1 of 2 tasks
xubo245 opened this issue Jul 1, 2024 · 3 comments
Open
1 of 2 tasks

[Bug] What's minimum permission set for kuberay-operator? #2213

xubo245 opened this issue Jul 1, 2024 · 3 comments
Assignees
Labels
bug Something isn't working rbac

Comments

@xubo245
Copy link
Contributor

xubo245 commented Jul 1, 2024

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

We can find many k8s permission on kuberay-operator:
https://github.com/ray-project/kuberay/blob/master/helm-chart/kuberay-operator/templates/role.yaml
More permission, more insecure
So what's minimum permission set for kuberay-operator?

Reproduction script

question

Anything else

question

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@xubo245 xubo245 added bug Something isn't working triage labels Jul 1, 2024
@xubo245
Copy link
Contributor Author

xubo245 commented Jul 1, 2024

@anyscalesam

@kevin85421 kevin85421 added github_actions Pull requests that update GitHub Actions code rbac and removed triage github_actions Pull requests that update GitHub Actions code labels Jul 12, 2024
@andrewsykim
Copy link
Collaborator

andrewsykim commented Jul 17, 2024

@vinayakankugoyal are you aware of any tools we can use to determine the minimum set of permissions? Otherwise, I think it'll involve a manual review of the code to determine the minimum set of permissions for a functional kuberay (some permissions are not strictly needed)

@vinayakankugoyal
Copy link
Contributor

One way to determine this would be to use the kubernetes audit logs. There is one tool that exists which can do this. https://github.com/liggitt/audit2rbac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rbac
Projects
None yet
Development

No branches or pull requests

4 participants