Skip to content

RANGER-5610:getResourceACLs for a principal should consider validitySchedule of principal for ACL creation#982

Merged
rameeshm merged 1 commit into
masterfrom
RANGER-5610-patch
May 28, 2026
Merged

RANGER-5610:getResourceACLs for a principal should consider validitySchedule of principal for ACL creation#982
rameeshm merged 1 commit into
masterfrom
RANGER-5610-patch

Conversation

@rameeshm
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

getResourceACLs for a principal should consider validitySchedule of principal for ACL creation. Currently getResourceACLs returns a set of ACLs for the principal but if the principal is has a validity period which is expired, it is giving the ACLs which are there which is not correct.

This scenario occurs in GDS where a principal validity period is expired and ACL still show the access given, even though there is no access.

Show Privileges in RangerHiveAuthorizer uses the getResourceACLs which also result in wrong permission sets shown when the principal validity period expired.

How was this patch tested?

Tested in local vm + unit test.

@rameeshm rameeshm changed the title RANGER-5610:getResourceACLs for a principal should consider chedule of principal for ACL creation RANGER-5610:getResourceACLs for a principal should consider validitySchedule of principal for ACL creation May 27, 2026
@rameeshm
Copy link
Copy Markdown
Contributor Author

@mneethiraj Could you please review this patch and give your comments.

Copy link
Copy Markdown
Contributor

@dineshkumar-yadav dineshkumar-yadav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rameeshm rameeshm merged commit c5b55a4 into master May 28, 2026
4 of 6 checks passed
rameeshm pushed a commit that referenced this pull request May 29, 2026
…aliditySchedule of principal for ACL creation (#982)"

This reverts commit c5b55a4.
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.

3 participants