RANGER-4910: update Polaris service-def to remove resources principal-role and catalog-role#866
Merged
mneethiraj merged 1 commit intoapache:masterfrom Mar 3, 2026
Merged
Conversation
…-role and catalog-role
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the embedded Apache Ranger service definition for the Polaris service type to remove the principal-role and catalog-role resource types (and associated permissions), simplifying the authorization surface for Polaris within Ranger.
Changes:
- Removed
principal-roleandcatalog-roleresources and their related access types. - Removed several grant-management related access types and
catalog-access-manage. - Reorganized/renumbered
itemIdvalues for remaining resources/access types.
Comments suppressed due to low confidence (1)
agents-common/src/main/resources/service-defs/ranger-servicedef-polaris.json:90
- The PR renumbers existing
resources[*].itemIdvalues (e.g.,tableis now itemId 5). Ranger service-def updates match existing resource defs byitemId(not name) during update; changing itemIds can cause resources to be treated as deleted/recreated or make updates fail if policies reference the old defs. Consider keeping all existing itemIds stable and only removing theprincipal-role/catalog-roleentries (leave remaining itemIds unchanged). Seesecurity-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java:3308-3355where resource defs are matched/removed by itemId.
{
"itemId": 5,
"name": "table",
"label": "Table",
"description": "Table",
"parent": "namespace",
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
agents-common/src/main/resources/service-defs/ranger-servicedef-polaris.json
Show resolved
Hide resolved
agents-common/src/main/resources/service-defs/ranger-servicedef-polaris.json
Show resolved
Hide resolved
rameeshm
approved these changes
Mar 3, 2026
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.
What changes were proposed in this pull request?
How was this patch tested?