-
Notifications
You must be signed in to change notification settings - Fork 440
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
Incomplete restrict secret access description #1307
Comments
Thanks for reporting, - apiGroups:
- '*'
resources:
- '*'
verbs:
- get This permission is required because KEDA can potentially work with any resource which implements /scale, so it needs that permission for working. The filter is done inside the code at some different levels:
To avoid the * , you can update that permission adding the other permissions required for your workloads, if you just use - apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get"] Given that, I think that this can be a good improvement to docs, are you willing to open a PR clarifying it? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
The existing documentation for restricting secret access is misleading, as it implies that access to secrets can be (completely) restricted by removing the
secrets
resource from one ClusterRole rule.In addition to improving the documentation, it would be helpful if the docs explained how to update the role in order to completely restrict access.
I installed KEDA with access to secrets omitted as described in the docs:
https://keda.sh/docs/2.15/operate/cluster/#restrict-secret-access
but keda-operator still has "get" access to all secrets by way of a different rule in the keda-operator ClusterRole:
Discussion: kedacore/keda#4730
Related: kedacore/charts#605
Expected Behavior
Actual Behavior
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: