Skip to content

chore: Remove unused RBAC permission for product role - #774

Merged
NickLarsenNZ merged 2 commits into
mainfrom
chore/rbac-review2
Apr 10, 2026
Merged

NickLarsenNZ merged 2 commits into
mainfrom
chore/rbac-review2

Conversation

@NickLarsenNZ

Copy link
Copy Markdown
Member

Part of stackabletech/issues#798

Follow up of https://github.com/stackabletech/airflow-operator/pull/767/changes#r3014650545

Details

The events rule in the product ClusterRole (lines 31-38) looks safe to remove. Here's why:

  1. Airflow does not publish Kubernetes events. No Airflow component (scheduler, webserver, worker, etc.) calls create_namespaced_event or uses EventsV1Api to create Event objects.
  2. Airflow only reads events, optionally. The KubernetesPodOperator can read events for failed pods via CoreV1Api.list_namespaced_event (core "" API group, not events.k8s.io), and even that is off by default in the official Airflow Helm chart.
  3. The comment is inaccurate. "Airflow components publish Kubernetes events" - they don't. The operator publishes events (that's correctly handled in clusterrole-operator.yaml), but the workload pods don't.
  4. The official Airflow Helm chart only grants get/list on core API events, and makes even that optional (rbac.events = false by default).

@razvan razvan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe also update the pr list in the changelog ?

@NickLarsenNZ

Copy link
Copy Markdown
Member Author

maybe also update the pr list in the changelog ?

Oops, yeah I had that sitting here locally.

@NickLarsenNZ
NickLarsenNZ requested a review from razvan April 10, 2026 12:13
@NickLarsenNZ
NickLarsenNZ enabled auto-merge April 10, 2026 12:13

@razvan razvan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@NickLarsenNZ
NickLarsenNZ added this pull request to the merge queue Apr 10, 2026
Merged via the queue into main with commit e21c547 Apr 10, 2026
12 checks passed
@NickLarsenNZ
NickLarsenNZ deleted the chore/rbac-review2 branch April 10, 2026 12:27
@sbernauer sbernauer moved this from Development: Waiting for Review to Development: Track in Stackable Engineering Apr 12, 2026
@sbernauer sbernauer moved this from Development: Track to Development: Done in Stackable Engineering Apr 12, 2026
@lfrancke lfrancke moved this from Development: Done to Acceptance: In Progress in Stackable Engineering May 6, 2026
@lfrancke lfrancke moved this from Acceptance: In Progress to Done in Stackable Engineering May 28, 2026
@lfrancke lfrancke moved this from Done to Acceptance: In Progress in Stackable Engineering May 28, 2026
@lfrancke lfrancke moved this from Acceptance: In Progress to Done in Stackable Engineering Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants