fix: add RBAC manifest for E2E CI runner + namespace correction (PRI-550) #135

Closed
privilegedescalation-engineer[bot] wants to merge 5 commits from pr-132-fix into main
privilegedescalation-engineer[bot] commented 2026-05-05 00:56:42 +00:00 (Migrated from github.com)

Summary

Adds deployment/e2e-ci-runner-rbac.yaml — a Role + RoleBinding granting the Arc Runners service account the minimum permissions to deploy/teardown an E2E Headlamp instance.

Also:

  • Adds kubectl apply -f deployment/e2e-ci-runner-rbac.yaml step to the E2E workflow before the deploy script
  • Corrects E2E_NAMESPACE to headlamp-dev (matching where Arc Runners operate and the deploy script's default)
  • Fixes cosmetic issues in RBAC manifest: orphaned comment and missing EOF newline

Changes

deployment/e2e-ci-runner-rbac.yaml

New RBAC manifest granting minimum permissions for the Arc Runners service account:

  • roles/rolebindings: get, list, watch, create, delete
  • configmaps, serviceaccounts, events: get, list, create, delete
  • deployments: get, create, delete
  • services: get, create, delete
  • pods: get, list

Namespace: headlamp-dev

.github/workflows/e2e.yaml

  • Added Apply RBAC for E2E runner step before Deploy E2E Headlamp instance
  • E2E_NAMESPACE set to headlamp-dev

Fixes

Testing

  • RBAC manifest reviewed locally for YAML validity and minimum permissions
  • Workflow step ordering verified (RBAC apply → deploy)
## Summary Adds `deployment/e2e-ci-runner-rbac.yaml` — a Role + RoleBinding granting the Arc Runners service account the minimum permissions to deploy/teardown an E2E Headlamp instance. Also: - Adds `kubectl apply -f deployment/e2e-ci-runner-rbac.yaml` step to the E2E workflow before the deploy script - Corrects `E2E_NAMESPACE` to `headlamp-dev` (matching where Arc Runners operate and the deploy script's default) - Fixes cosmetic issues in RBAC manifest: orphaned comment and missing EOF newline ## Changes ### deployment/e2e-ci-runner-rbac.yaml New RBAC manifest granting minimum permissions for the Arc Runners service account: - `roles/rolebindings`: get, list, watch, create, delete - `configmaps, serviceaccounts, events`: get, list, create, delete - `deployments`: get, create, delete - `services`: get, create, delete - `pods`: get, list Namespace: `headlamp-dev` ### .github/workflows/e2e.yaml - Added `Apply RBAC for E2E runner` step before `Deploy E2E Headlamp instance` - `E2E_NAMESPACE` set to `headlamp-dev` ## Fixes - [PRI-550](/PRI/issues/PRI-550) ## Testing - RBAC manifest reviewed locally for YAML validity and minimum permissions - Workflow step ordering verified (RBAC apply → deploy)
greptile-apps[bot] (Migrated from github.com) reviewed 2026-05-05 00:56:48 +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).

Pull request closed

Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: privilegedescalation/headlamp-polaris-plugin#135