[fix](ranger) Document and hint Ranger UserStore group evaluation - #68203
Open
naayifmuhammad wants to merge 1 commit into
Open
naayifmuhammad wants to merge 1 commit into
naayifmuhammad wants to merge 1 commit into
Conversation
- Documents why createRequest() omits userGroups to preserve backward compatibility. - Adds an INFO log in RangerDorisPlugin to hint operators to set ranger.plugin.doris.use.rangerGroups=true. - Adds RangerTest.testRequestDoesNotCarryRolesOrGroups to lock in the default behavior.
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
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.
title:
fix Document and hint Ranger UserStore group evaluation
What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary:
Ranger group-based policies, row-level filters, and column masks on the internal catalog are never applied because
RangerDorisAccessController.createRequest()builds requests withoutuserGroups.Instead of manually injecting groups into
createRequest()(which would alter policy evaluation for existing deployments), this PR delegates group evaluation to Ranger's nativeRangerDefaultRequestProcessor.preProcess().Key modifications:
RangerDorisAccessController.java: Documents whyuserGroupsare omitted increateRequest()to maintain backward compatibility.RangerDorisPlugin.java: Adds anINFOlog on startup to hint operators to setranger.plugin.doris.use.rangerGroups=trueinranger-doris-security.xmlif they wish to enable group evaluation.RangerTest.java: AddstestRequestDoesNotCarryRolesOrGroupsto lock in the backward-compatible default behavior.Release note
Operators who want Ranger group, row-filter, and column-mask policies to apply must set
<property><name>ranger.plugin.doris.use.rangerGroups</name><value>true</value></property>inranger-doris-security.xmland restart the FE. Default behavior remains user-only evaluation.Check List (For Author)
Test
Behavior changed:
ranger.plugin.doris.use.rangerGroups=true. Default remains unchanged.Does this need documentation?
Check List (For Reviewer who merge this PR)