-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: Replace wildcards in RBAC objects with explicit resources and verbs #6129
Conversation
04f9747
to
4142acc
Compare
/run-e2e |
0d56c96
to
da55007
Compare
/run-e2e |
/run-e2e |
da55007
to
aa1b7bf
Compare
/run-e2e |
/run-e2e internal |
aa1b7bf
to
09e545f
Compare
/run-e2e internal |
/run-e2e rabbit |
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.
Looking good, only 1 comment inline
PTAL @wozniakjan
/run-e2e subresource_scale_test |
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.
lgtm, assuming e2e tests pass
/run-e2e |
@legal90 , could you fix DCO? it was broken during last commit -> https://github.com/kedacore/keda/pull/6129/checks?check_run_id=32323819193 |
cc7e1a1
to
6f01a9b
Compare
Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
According to the PR review comment. Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
6f01a9b
to
870245d
Compare
@JorTurFer Yes sure! I fixed the DCO and rebased the branch now. |
/run-e2e |
…rbs (kedacore#6129) * fix: Replace wildcards in RBAC objects with explicit resources and verbs Signed-off-by: Mikhail Zholobov <legal90@gmail.com> * Update changelog Signed-off-by: Mikhail Zholobov <legal90@gmail.com> * Revert the deletion of RBAC rule "allow to get any resource" Signed-off-by: Mikhail Zholobov <legal90@gmail.com> * Rollback the RBAC rule for "*/scale" According to the PR review comment. Signed-off-by: Mikhail Zholobov <legal90@gmail.com> --------- Signed-off-by: Mikhail Zholobov <legal90@gmail.com> Signed-off-by: michael pechner <mike.pechner@akasa.com>
According to Kubernetes documentation and various k8s security guidelines, wildcards in resource and verb entries should be avoided:
Warning
Using wildcards in resource and verb entries could result in overly permissive access being granted to sensitive resources. For instance, if a new resource type is added, or a new subresource is added, or a new custom verb is checked, the wildcard entry automatically grants access, which may be undesirable. The principle of least privilege should be employed, using specific resources and verbs to ensure only the permissions required for the workload to function correctly are applied.
Refs:
This PR could be seen as a continuation of a previous work for hardening the RBAC: kedacore/charts#625
It replaces
*
with explicit verbs and resources, according to KEDA needs.Checklist
Relates to kedacore/charts#682