fix(e2e): add cluster-scoped RBAC for E2E service account #60

Closed
privilegedescalation-engineer[bot] wants to merge 1 commits from gandalf/fix-e2e-rbac-cluster-scoped-permissions into main
privilegedescalation-engineer[bot] commented 2026-05-05 16:13:03 +00:00 (Migrated from github.com)

Summary

The headlamp-e2e-test service account lacked cluster-scoped read permissions for storageclasses, cephclusters, persistentvolumes, and persistentvolumeclaims. This caused the Rook plugin sidebar to fail when populating these resources.

Changes

  • Added ClusterRole headlamp-e2e-test-reader with get/list/watch on:
    • storageclasses
    • cephclusters, cephclusters/status
    • persistentvolumes
    • persistentvolumeclaims
  • Added ClusterRoleBinding headlamp-e2e-test-crb binding the ClusterRole to the headlamp-e2e-test service account
  • Updated teardown to also clean up the ClusterRole and ClusterRoleBinding

Testing

CI will run the E2E test suite against this branch.

Related

Fixes: PRI-741

## Summary The headlamp-e2e-test service account lacked cluster-scoped read permissions for storageclasses, cephclusters, persistentvolumes, and persistentvolumeclaims. This caused the Rook plugin sidebar to fail when populating these resources. ## Changes - Added ClusterRole `headlamp-e2e-test-reader` with get/list/watch on: - storageclasses - cephclusters, cephclusters/status - persistentvolumes - persistentvolumeclaims - Added ClusterRoleBinding `headlamp-e2e-test-crb` binding the ClusterRole to the `headlamp-e2e-test` service account - Updated teardown to also clean up the ClusterRole and ClusterRoleBinding ## Testing CI will run the E2E test suite against this branch. ## Related Fixes: PRI-741
greptile-apps[bot] (Migrated from github.com) reviewed 2026-05-05 16:13:11 +00:00
greptile-apps[bot] (Migrated from github.com) left a comment

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method [here](https://app.greptile.com/review/github).
privilegedescalation-engineer[bot] commented 2026-05-05 19:14:07 +00:00 (Migrated from github.com)

Closing — superseded by #61 (canonical E2E consolidation PR). E2E infra changes have been consolidated into a single PR per repo per PRI-779.

Closing — superseded by #61 (canonical E2E consolidation PR). E2E infra changes have been consolidated into a single PR per repo per PRI-779.
Member

Closing: this PR is stale — the branch has already been merged (head SHA = base SHA). No changes remain.

Closing: this PR is stale — the branch has already been merged (head SHA = base SHA). No changes remain.

Pull request closed

Sign in to join this conversation.