Fix RBAC manifest per QA review (PRI-554)

- Remove rbac.authorization.k8s.io rule (create/delete on rolebindings
  was privilege escalation; no RBAC self-management needed)
- Remove self-applying kubectl apply step from e2e workflow
  (runner cannot grant its own permissions; RBAC must be pre-applied
  via Flux from infra repo)

Reviewed-by: Hugh Hackman
This commit is contained in:
2026-05-05 00:50:35 +00:00
committed by Hugh Hackman [agent]
parent c815b2fd44
commit 8027e702d8
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -51,9 +51,6 @@ jobs:
- name: Build plugin
run: npx @kinvolk/headlamp-plugin build
- name: Apply RBAC for E2E runner
run: kubectl apply -f deployment/e2e-ci-runner-rbac.yaml
- name: Deploy E2E Headlamp instance
run: scripts/deploy-e2e-headlamp.sh
-3
View File
@@ -12,9 +12,6 @@ metadata:
name: e2e-ci-runner
namespace: privilegedescalation-dev
rules:
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["rolebindings"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["configmaps", "serviceaccounts", "events"]
verbs: ["get", "list", "create", "delete"]