chore: drop leftover config.ratify.deislabs.io ClusterRole rules - #2832
Merged
fseldow merged 1 commit intoJul 27, 2026
Merged
Conversation
fseldow
requested review from
akashsinghal,
binbin-li,
jimmyraywv,
luisdlp,
susanshi and
toddysm
as code owners
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
force-pushed
the
chore/remove-legacy-deislabs-rbac
branch
from
July 27, 2026 03:14
6486d33 to
2d1b282
Compare
Contributor
There was a problem hiding this comment.
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.ioresource rules (including/finalizersand/status) fromconfig/rbac/role.yaml.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
charleswool
approved these changes
Jul 27, 2026
charleswool
left a comment
Contributor
There was a problem hiding this comment.
Approve for no dependency found
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The manager
ClusterRole(config/rbac/role.yaml) still grants full CRUD on the legacy v1config.ratify.deislabs.ioresources —certificatestores,policies,stores,verifiersand theirnamespaced*variants (plus/finalizersand/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.