Skip to content

fix(rbac): remove stale gateways entry from generated RBAC role#3075

Merged
tbavelier merged 1 commit into
mainfrom
eliottness/fix-stale-gateways-rbac
Jun 3, 2026
Merged

fix(rbac): remove stale gateways entry from generated RBAC role#3075
tbavelier merged 1 commit into
mainfrom
eliottness/fix-stale-gateways-rbac

Conversation

@eliottness

Copy link
Copy Markdown
Contributor

What does this PR do?

Removes a stale networking.istio.io/gateways entry from the orchestrator explorer RBAC block in config/rbac/role.yaml. This entry was manually added and has no corresponding +kubebuilder:rbac: marker — running make generate removes it.

The permission is already granted by the AppSec marker (get;list;watch) which subsumes the orchestrator list;watch, so this is a no-op from a runtime perspective.

Motivation

Flagged by @tbavelier after merging #3053. The generated role.yaml should match what make generate produces.

Minimum Agent Versions

  • Agent: N/A
  • Cluster Agent: N/A

Describe your test plan

make generate && git diff --stat produces zero diff after this change.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label
  • All commits are signed

networking.istio.io/gateways was manually added to the orchestrator
explorer RBAC block in role.yaml but has no corresponding kubebuilder
marker. The permission is already granted by the AppSec marker
(get;list;watch) which subsumes the orchestrator list;watch.

Running make generate removes this stale duplicate.

Confidence: high
Scope-risk: narrow
@eliottness eliottness added this to the v1.28.0 milestone Jun 3, 2026
@eliottness
eliottness marked this pull request as ready for review June 3, 2026 10:03
@eliottness
eliottness requested a review from a team June 3, 2026 10:03
@datadog-prod-us1-4

This comment has been minimized.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.10%. Comparing base (7ef174d) to head (ca7c79b).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3075   +/-   ##
=======================================
  Coverage   43.10%   43.10%           
=======================================
  Files         341      341           
  Lines       29510    29510           
=======================================
  Hits        12721    12721           
  Misses      15965    15965           
  Partials      824      824           
Flag Coverage Δ
unittests 43.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ef174d...ca7c79b. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tbavelier
tbavelier merged commit 1f58351 into main Jun 3, 2026
43 of 51 checks passed
@tbavelier
tbavelier deleted the eliottness/fix-stale-gateways-rbac branch June 3, 2026 11:08
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.

3 participants