-
Notifications
You must be signed in to change notification settings - Fork 47
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
rbac: Audit *
verbs of kubevirt-tekton-tasks
#684
Conversation
/hold |
// +kubebuilder:rbac:groups=kubevirt.io,resources=virtualmachines/finalizers,verbs=* | ||
// +kubebuilder:rbac:groups=*,resources=persistentvolumeclaims,verbs=* | ||
// +kubebuilder:rbac:groups=kubevirt.io,resources=virtualmachines/finalizers,verbs=get | ||
// +kubebuilder:rbac:groups=*,resources=persistentvolumeclaims,verbs=get;update;delete |
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.
Can you change the groups=*
to groups=core
everywhere?
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.
Done. There are another files where groups=*
or groups=""
are used. I think this should be tackled in a follow-up PR.
d0ed113
to
2fad24f
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akrejcir The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
// +kubebuilder:rbac:groups=kubevirt.io,resources=virtualmachines/finalizers,verbs=* | ||
// +kubebuilder:rbac:groups=*,resources=persistentvolumeclaims,verbs=* | ||
// +kubebuilder:rbac:groups=*,resources=pods,verbs=create | ||
// +kubebuilder:rbac:groups=*,resources=secrets,verbs=* |
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.
Hi, I already did the same change and changed groups
to core
in #641, but your PR also changes verbs which is good. Thanks :)
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.
Yeah, I did it following your advice. So I'm the one should thank you 😊 In a follow-up, I plan to review all groups
and switch them to core
.
2fad24f
to
d9bbc92
Compare
d9bbc92
to
bbbafe9
Compare
/retest-required |
/hold cancel |
/retest |
/retest |
1 similar comment
/retest |
bbbafe9
to
a5705e4
Compare
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
It drops `*` verbs of tekton tasks. For this purpose, the process followed is: * Drop all tekton tasks permissions using `*` verbs. * Run unit tests. * Add required permissions. * Run functional tests. * Add required permissions. This process ensures that only strictly required permissions are added. Fix: https://bugzilla.redhat.com/show_bug.cgi?id=2223775 Signed-off-by: Javier Cano Cano <jcanocan@redhat.com>
a5705e4
to
4e73df0
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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
/retest-required |
/cherry-pick release-v0.18 |
@jcanocan: #684 failed to apply on top of branch "release-v0.18":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
It drops
*
verbs of tekton tasks. For this purpose, the process followed is:*
verbs.The auditing process has been split in the next action items:
This process ensures that only strictly required permissions are added.
jira-ticket: CNV-24031
Which issue(s) this PR fixes:
Fixes # https://bugzilla.redhat.com/show_bug.cgi?id=2223775
Special notes for your reviewer:
Release note: