Skip to content

RANGER-5667: Follow-on updates for RANGER-5628#1053

Merged
mneethiraj merged 3 commits into
apache:masterfrom
fmorg-git:RANGER-5667
Jul 9, 2026
Merged

RANGER-5667: Follow-on updates for RANGER-5628#1053
mneethiraj merged 3 commits into
apache:masterfrom
fmorg-git:RANGER-5667

Conversation

@fmorg-git

@fmorg-git fmorg-git commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

A couple PR review comments came in after the PR associated with RANGER-5628 was already merged. Essentially, if a Policy Condition has an "action-matches" condition, but the request does not supply an s3Action in the RequestContext, the request must be denied, and this is not being done currently. This ticket will address this issue.

Furthermore, a second comment related to unnecessary object allocation and this ticket also addresses that one.

Separately, it was identified that a non-empty list of actions, if they are all just whitespace, needs to be treated as if there were no action restrictions. This ticket addresses that as well.

Finally, separately, I noticed that for the Ozone service definition, pressing the "+" button to add a new rule under "Allow Conditions” section was causing an error to throw, and I traced it to a change I made in RANGER-5628.  Basically, PolicyPermissionItem.jsx is pushing undefined on the addPolicyItem() call, and my usePruneStaleConditions.js hook wasn't properly checking for that undefined. This ticket makes that fix as well.

How was this patch tested?

unit tests and end-to-end smoke tests locally with Ozone and Ranger

(cherry picked from commit 67b9575ef7489b41ca25ba83afe2c524cfda0a50)
@fmorg-git

Copy link
Copy Markdown
Contributor Author

FYI @mneethiraj and @rameeshm

(cherry picked from commit a414321a8bb371b593f7ba81d6b4ea3c0ecab0e7)
@fmorg-git fmorg-git requested a review from mneethiraj July 7, 2026 23:55
(cherry picked from commit 4b633bbd6d1cd8715e75d13324a01925b5c9743c)
@mneethiraj mneethiraj merged commit 9bf7a93 into apache:master Jul 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants