Skip to content

Remove unnecessary RBAC verbs from operator ClusterRole and Role - #26

Closed
lpiwowar wants to merge 1 commit into
mainfrom
lpiwowar/OSPRH-30842
Closed

Remove unnecessary RBAC verbs from operator ClusterRole and Role#26
lpiwowar wants to merge 1 commit into
mainfrom
lpiwowar/OSPRH-30842

Conversation

@lpiwowar

@lpiwowar lpiwowar commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Removes unnecessary RBAC verbs from the OpenStack Lightspeed operator to follow the principle of least privilege.

Changes

Resource Verbs removed Remaining verbs
openstacklightspeeds (ClusterRole) create, delete, update get, list, watch, patch
openstacklightspeeds/status (ClusterRole) get, update patch
clusterserviceversions (namespaced Role) patch update, delete

The source of truth is the kubebuilder RBAC markers in internal/controller/openstacklightspeed_controller.go. The config/rbac/role.yaml and bundle manifests were regenerated via make manifests && make bundle.

Testing

  • make test passes

Closes OSPRH-30842

Reduced permissions on three resources following the principle of
least privilege:

- openstacklightspeeds (ClusterRole): removed create, delete, update;
  get, list, watch, patch are sufficient for normal reconciliation
- openstacklightspeeds/status (ClusterRole): removed get and update;
  only patch is needed to update status subresource
- clusterserviceversions (namespaced Role): removed patch; only
  update and delete are needed for owner reference and uninstall

Regenerated config/rbac/role.yaml and bundle manifests via
make manifests && make bundle.

Closes OSPRH-30842
@openshift-ci
openshift-ci Bot requested review from Akrog and umago July 21, 2026 13:36
@openshift-ci

openshift-ci Bot commented Jul 21, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lpiwowar

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lpiwowar
lpiwowar marked this pull request as draft July 21, 2026 13:37
@lpiwowar lpiwowar closed this Jul 21, 2026
@lpiwowar
lpiwowar deleted the lpiwowar/OSPRH-30842 branch July 24, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant