fix: Replace wildcards in RBAC objects with explicit resources and verbs#682
Merged
JorTurFer merged 3 commits intokedacore:mainfrom Nov 7, 2024
Merged
fix: Replace wildcards in RBAC objects with explicit resources and verbs#682JorTurFer merged 3 commits intokedacore:mainfrom
JorTurFer merged 3 commits intokedacore:mainfrom
Conversation
Member
|
This PR look nice, but we can revert if by mistake during the release if we copy the RBAC from KEDA repo. Could you open a PR there too, changing the RBAC? 🙏 |
3 tasks
6817983 to
0464390
Compare
Contributor
Author
|
Thank you, @JorTurFer ! I submitted the similar PR to the main KEDA repo: kedacore/keda#6129 |
3bfed4e to
55e2919
Compare
Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
Remove unnecessary "create" and "delete" verbs for CRs which are supposed to be created and deleted only by a user, and not by an operator. Signed-off-by: Mikhail Zholobov <legal90@gmail.com>
55e2919 to
ca721c8
Compare
Member
|
It was a CI problem, the fix is merged and I've rebased your PR |
JorTurFer
approved these changes
Nov 7, 2024
|
@JorTurFer @zroubalik Will this break a scenario when As per KEDA's documentation: UPD |
wozniakjan
pushed a commit
to wozniakjan/keda-charts
that referenced
this pull request
Nov 28, 2024
…rbs (kedacore#682) Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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: #625
It replaces
*with explicit verbs and resources, according to KEDA needs.Checklist
Similar PR to the main keda repo: kedacore/keda#6129