Skip to content

Conversation

mneethiraj
Copy link
Contributor

What changes were proposed in this pull request?

RangerAuthorizer implementation using embedded policy engine, which performs authorization locally i.e. in-process.

How was this patch tested?

added unit tests

Copy link

@Copilot 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 pull request implements a RangerAuthorizer with embedded policy engine for local, in-process authorization without requiring external Ranger admin service communication.

  • Adds authz-embedded module with RangerEmbeddedAuthorizer implementation
  • Introduces RangerAuthzConfig for flexible configuration handling
  • Updates Maven build to include the new authz-embedded module

Reviewed Changes

Copilot reviewed 38 out of 38 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
pom.xml Version downgrades and module addition
authz-embedded/pom.xml Module configuration with required dependencies
authz-embedded/src/main/java/org/apache/ranger/authz/embedded/*.java Core embedded authorizer implementation
authz-embedded/src/test/java/org/apache/ranger/authz/embedded/*.java Unit tests for embedded authorization functionality
authz-embedded/src/test/resources/ Test data files for S3 and Hive authorization scenarios
agents-common/src/test/resources/policyengine/ Updated test files removing unused ACL fields
agents-common/src/test/java/org/apache/ranger/plugin/policyengine/TestPolicyACLs.java Enhanced ACL testing logic
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/gds/*.java GDS evaluator improvements for ACL handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -0,0 +1,24 @@
{
"serviceName":"dev_s3", "tagVersion":2,
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

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

The serviceName is set to 'dev_s3' but this is a Hive test configuration file. It should be 'dev_hive' to match the context.

Suggested change
"serviceName":"dev_s3", "tagVersion":2,
"serviceName":"dev_hive", "tagVersion":2,

Copilot uses AI. Check for mistakes.

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.

1 participant