Skip to content

chore: drop leftover config.ratify.deislabs.io ClusterRole rules - #2832

Merged
fseldow merged 1 commit into
notaryproject:mainfrom
fseldow:chore/remove-legacy-deislabs-rbac
Jul 27, 2026
Merged

chore: drop leftover config.ratify.deislabs.io ClusterRole rules#2832
fseldow merged 1 commit into
notaryproject:mainfrom
fseldow:chore/remove-legacy-deislabs-rbac

Conversation

@fseldow

@fseldow fseldow commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Description

The manager ClusterRole (config/rbac/role.yaml) still grants full CRUD on the legacy v1 config.ratify.deislabs.io resources — certificatestores, policies, stores, verifiers and their namespaced* variants (plus /finalizers and /status).

These CRDs and their controllers no longer exist in Ratify v2, so the grants are dead and unnecessarily widen the manager's privileges. This removes them, which is also exactly what controller-gen (make manifests) produces from the current kubebuilder RBAC markers.

Pure cleanup, no functional change. Split out of #2831 so that PR's RBAC diff stays limited to the new per-pod permissions.

Testing

  • grep deislabs config/rbac/role.yaml → no matches after the change.
  • No code changes; the removed rules reference resources that have no controller in v2.

Copilot AI review requested due to automatic review settings July 27, 2026 03:14
The manager ClusterRole still granted full CRUD on the legacy v1
config.ratify.deislabs.io resources (certificatestores, policies,
stores, verifiers and their namespaced variants). Those CRDs and their
controllers no longer exist in Ratify v2, so the rules are dead grants
and are removed to keep the manager least-privilege. This matches what
controller-gen (make manifests) produces from the current markers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: xinhl <xinhl@microsoft.com>
@fseldow
fseldow force-pushed the chore/remove-legacy-deislabs-rbac branch from 6486d33 to 2d1b282 Compare July 27, 2026 03:14
@github-actions github-actions Bot added the v2 label Jul 27, 2026
@fseldow fseldow changed the title chore(rbac): drop leftover config.ratify.deislabs.io ClusterRole rules chore: drop leftover config.ratify.deislabs.io ClusterRole rules Jul 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes obsolete RBAC permissions from the controller manager ClusterRole that granted CRUD access to legacy v1 config.ratify.deislabs.io resources, reducing unnecessary privilege surface in Ratify v2.

Changes:

  • Dropped config.ratify.deislabs.io resource rules (including /finalizers and /status) from config/rbac/role.yaml.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.36%. Comparing base (0e5f47a) to head (2d1b282).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2832   +/-   ##
=======================================
  Coverage   76.36%   76.36%           
=======================================
  Files          88       88           
  Lines        3999     3999           
=======================================
  Hits         3054     3054           
  Misses        799      799           
  Partials      146      146           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@charleswool charleswool left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approve for no dependency found

@fseldow
fseldow merged commit 3a1194c into notaryproject:main Jul 27, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants