-
Notifications
You must be signed in to change notification settings - Fork 1k
RANGER-5312: authz-embedded #696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
authz-embedded/src/test/resources/test_s3/tests_multi_authz.json
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,24 @@ | |||
{ | |||
"serviceName":"dev_s3", "tagVersion":2, |
Copilot
AI
Oct 6, 2025
There was a problem hiding this comment.
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.
"serviceName":"dev_s3", "tagVersion":2, | |
"serviceName":"dev_hive", "tagVersion":2, |
Copilot uses AI. Check for mistakes.
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