ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Kulkarni <akulka...@hortonworks.com>
Subject Review Request 70257: RANGER-2375: RangerAuthContext is not correctly initialized
Date Wed, 20 Mar 2019 19:52:58 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for ranger, Madhan Neethiraj and Ramesh Mani.

Bugs: RANGER-2375

Repository: ranger


RangerAuthContext object may be used to provide consistent view of authorization policies
database across multiple authorization API calls. It maintains a list of context enrichers,
if defined, to provide context enrichment for access requests. When this list is not maintained
correctly, context for authorization will not be initialized correctly, and authorization
calls made with RangerAuthContext will fail.

This seems to a regression introduced by RANGER-2341.

The fix consists of creating a RangerAuthContext object before a RangerPolicyEngine is created
from policies.


  agents-common/src/main/java/org/apache/ranger/plugin/service/RangerAuthContext.java b2cccef5c

  agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java e52d4de28

Diff: https://reviews.apache.org/r/70257/diff/1/


Tested with policies containing policy conditions that depended on context of access-request
to be populated correctly. Verified that context is populated correctly and policies with
conditions work as expected.


Abhay Kulkarni

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message