-
Notifications
You must be signed in to change notification settings - Fork 448
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
Narrow down RBAC rules #2091
Merged
Merged
Narrow down RBAC rules #2091
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1753314
Update training operator image in CI
johnugeorge c14b197
Merge remote-tracking branch 'upstream/master'
johnugeorge a6b7a36
Remove deprecated GRPC var
johnugeorge 280b07b
Remove deprecated GRPC var
johnugeorge ccd4505
Remove deprecated GRPC var
johnugeorge b90e686
Merge remote-tracking branch 'upstream/master'
johnugeorge 16e6fe4
Support for k8s v1.25 in CI
johnugeorge 47623d5
Revert "Support for k8s v1.25 in CI"
johnugeorge 4a2f61b
Merge remote-tracking branch 'upstream/master'
johnugeorge fe5934e
Merge remote-tracking branch 'upstream/master'
johnugeorge 18dc99c
Merge remote-tracking branch 'upstream/master'
johnugeorge e2f0c43
Narrow down rbac
johnugeorge 9485d7a
Narrow down rbac
johnugeorge ce33dad
Narrow down rbac
johnugeorge 9d8b1b1
Narrow down rbac
johnugeorge 0fb54a2
Narrow down rbac
johnugeorge 7cdd471
Narrow down rbac
johnugeorge b12915c
Merge remote-tracking branch 'upstream/master' into rbac
johnugeorge e794067
Narrow down rbac
johnugeorge ab8d995
Update tekton and argo docs
johnugeorge df29e98
Update tekton and argo docs
johnugeorge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,39 +7,93 @@ rules: | |
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
- serviceaccounts | ||
- services | ||
verbs: | ||
- "get" | ||
- "list" | ||
- "watch" | ||
- "create" | ||
- "delete" | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
- namespaces | ||
verbs: | ||
- "create" | ||
- "patch" | ||
- "update" | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- serviceaccounts | ||
- persistentvolumes | ||
- persistentvolumeclaims | ||
verbs: | ||
- "get" | ||
- "list" | ||
- "watch" | ||
- "create" | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
- configmaps | ||
verbs: | ||
- "get" | ||
- "list" | ||
- "watch" | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
- pods/log | ||
- pods/status | ||
- secrets | ||
verbs: | ||
- "*" | ||
- "get" | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments | ||
verbs: | ||
- "*" | ||
- "get" | ||
- "list" | ||
- "watch" | ||
- "create" | ||
- "delete" | ||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- roles | ||
- rolebindings | ||
verbs: | ||
- "*" | ||
- "get" | ||
- "create" | ||
- "list" | ||
- "watch" | ||
- apiGroups: | ||
- batch | ||
resources: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @johnugeorge Should we limit scope for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we do get/create/delete/watch for all |
||
- jobs | ||
- cronjobs | ||
verbs: | ||
- "*" | ||
- "get" | ||
- "list" | ||
- "watch" | ||
- "create" | ||
- "delete" | ||
- apiGroups: | ||
- kubeflow.org | ||
resources: | ||
- tfjobs | ||
- pytorchjobs | ||
- mpijobs | ||
- xgboostjobs | ||
- mxjobs | ||
verbs: | ||
- "get" | ||
- "list" | ||
- "watch" | ||
- "create" | ||
- "delete" | ||
- apiGroups: | ||
- kubeflow.org | ||
resources: | ||
|
@@ -52,11 +106,6 @@ rules: | |
- suggestions | ||
- suggestions/status | ||
- suggestions/finalizers | ||
- tfjobs | ||
- pytorchjobs | ||
- mpijobs | ||
- xgboostjobs | ||
- mxjobs | ||
verbs: | ||
- "*" | ||
--- | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need permission for namespace in the Controller @johnugeorge @tenzen-y ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I can see, we operate namespaces only from UI. So we can remove the permission for namespaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It is needed only in UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I retested it. Currently, Katib needs get/list/watch for namespaces as well. Need to investigate separately