Skip to content

RANGER-5501: fix missing accessType in audit logs generated by RangerEmbeddedAuthorizer#859

Merged
mneethiraj merged 1 commit intoapache:masterfrom
mneethiraj:RANGER-5501
Feb 25, 2026
Merged

RANGER-5501: fix missing accessType in audit logs generated by RangerEmbeddedAuthorizer#859
mneethiraj merged 1 commit intoapache:masterfrom
mneethiraj:RANGER-5501

Conversation

@mneethiraj
Copy link
Contributor

What changes were proposed in this pull request?

updated RangerEmbeddedAuthorizer.authorize() methods to populate request.action field, which populates accessType field in audit logs

How was this patch tested?

verified that audit logs generated by RangerEmbeddedAuthorizer.authorize() methods have accessType field set correctly.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where the accessType field was missing in audit logs generated by RangerEmbeddedAuthorizer. The fix ensures that the action field from RangerAccessInfo is properly propagated to RangerAccessRequestImpl, which is then used by RangerDefaultAuditHandler to populate the accessType field in audit events.

Changes:

  • Modified initializeRequest() method to accept an additional RangerAccessInfo parameter and populate the request's action field
  • Updated both call sites of initializeRequest() to pass the appropriate action information (or null when not applicable)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mneethiraj mneethiraj merged commit 6422a6e into apache:master Feb 25, 2026
8 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.

3 participants