-
Notifications
You must be signed in to change notification settings - Fork 73
[Feature] Enable ML Operator and add required Platform Roles #1952
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -22,5 +22,28 @@ rules: | |||||||||||
- "arangoplatformservices" | ||||||||||||
- "arangoplatformservices/status" | ||||||||||||
verbs: ["*"] | ||||||||||||
- apiGroups: | ||||||||||||
- "rbac.authorization.k8s.io" | ||||||||||||
resources: | ||||||||||||
- "roles" | ||||||||||||
- "rolebindings" | ||||||||||||
verbs: [ "*" ] | ||||||||||||
- apiGroups: | ||||||||||||
- "batch" | ||||||||||||
resources: | ||||||||||||
- "cronjobs" | ||||||||||||
- "jobs" | ||||||||||||
verbs: [ "*" ] | ||||||||||||
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. Using wildcard permissions (*) for batch resources is overly permissive. Consider limiting to specific operations needed for ML workloads like ["get", "list", "create", "update", "patch", "delete", "watch"].
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||
- apiGroups: [ "apps" ] | ||||||||||||
resources: | ||||||||||||
- "statefulsets" | ||||||||||||
verbs: [ "*" ] | ||||||||||||
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. Wildcard permissions (*) for StatefulSets should be restricted to only the necessary operations. Consider using specific verbs like ["get", "list", "create", "update", "patch", "delete", "watch"].
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||
- apiGroups: [ "" ] | ||||||||||||
resources: | ||||||||||||
- "pods" | ||||||||||||
- "secrets" | ||||||||||||
- "services" | ||||||||||||
- "serviceaccounts" | ||||||||||||
verbs: [ "*" ] | ||||||||||||
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. Granting wildcard permissions (*) for core resources including secrets is a security concern as it provides excessive access to sensitive data. Consider limiting to specific operations required for ML functionality.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||||
{{- end }} | ||||||||||||
{{- end }} |
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.
Granting wildcard permissions () for RBAC resources (roles and rolebindings) poses a significant security risk as it allows the operator to escalate privileges. Consider using specific verbs like ["get", "list", "create", "update", "patch", "delete"] instead of "".
Copilot uses AI. Check for mistakes.