RANGER-5628/RANGER-5667: Backport Ozone action policy support and follow-on fixes to ranger-2.9#1054
Merged
Conversation
pradeepagrawal8184
approved these changes
Jul 10, 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.
Summary
ranger-2.9release branch.RangerActionMatcher,RangerActionListMatcher) and UI support for action conditions on permission rows.ozone.versionfrom 2.1.0 to 2.1.1 (required forRequestContext.getS3Action()andOzoneGrant.getS3Actions()APIs).RANGER-5667 follow-on fixes
action-matchesrestrictions but the request does not supply ans3Action, the request is now denied (previously incorrectly allowed).RangerActionMatcherno longer eagerly constructs a defaultRangerActionListMatcher.usePruneStaleConditions.jsnow guards againstundefinedpolicy items when adding Allow/Deny conditions in the Ozone policy UI.Backport conflict resolutions
context.getS3Action()as the request action.AccessGrantForm.jsx,DatashareDetailLayout.jsx): Dropped — these files do not exist onranger-2.9(GDS UI not present in this branch).Potential risk areas for ranger-2.9
PatchForOzoneServiceDefPolicyConditionUpdate_J10065: Will run on Ranger admin startup to add theaction-matchespolicy condition to the Ozone service definition.Editable.jsx: Large refactor; recommend manual UI testing of Ozone policy create/edit flows.s3Actionagainst policies with action restrictions will now be denied. Verify this matches expected Ozone STS authorization behavior.Test plan
mvn -pl agents-common,plugin-ozone,security-admin -am testcompiles and unit tests passs3Actionare denied when policy has action restrictions (RANGER-5667)