You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ranger.apache.org by Elliot West <te...@gmail.com> on 2020/09/30 19:42:35 UTC

Evaluating access requests using the rest API

Hello is there any way I can use ranger’s rest API to evaluate access
request against my services and sets of policies? I would like to validate
some use cases before building out a complete plug-in for one of our
in-house services.

I was hoping that I might be able to do this by implementing a minimal
service and service definition and then supplying sets are policies which I
could with then exercise using the rest API.

Many thanks,

Elliot.

Re: Evaluating access requests using the rest API

Posted by Elliot West <te...@gmail.com>.
Great, thank you so much

On Wed, 30 Sep 2020 at 20:59, Abhay Kulkarni <ab...@apache.org> wrote:

> Please take a look at
> https://github.com/apache/ranger/blob/master/agents-common/src/test/java/org/apache/ranger/plugin/policyengine/TestPolicyEngine.java
> and
> https://github.com/apache/ranger/blob/master/agents-common/src/test/resources/policyengine/test_policyengine_hdfs.json
> (or any other files in that directory). These may provide some help.
>
> Thanks!
>
> On Wed, Sep 30, 2020 at 12:42 PM Elliot West <te...@gmail.com> wrote:
>
>> Hello is there any way I can use ranger’s rest API to evaluate access
>> request against my services and sets of policies? I would like to validate
>> some use cases before building out a complete plug-in for one of our
>> in-house services.
>>
>> I was hoping that I might be able to do this by implementing a minimal
>> service and service definition and then supplying sets are policies which I
>> could with then exercise using the rest API.
>>
>> Many thanks,
>>
>> Elliot.
>>
>>
>>
>
>

Re: Evaluating access requests using the rest API

Posted by Abhay Kulkarni <ab...@apache.org>.
Please take a look at
https://github.com/apache/ranger/blob/master/agents-common/src/test/java/org/apache/ranger/plugin/policyengine/TestPolicyEngine.java
and
https://github.com/apache/ranger/blob/master/agents-common/src/test/resources/policyengine/test_policyengine_hdfs.json
(or any other files in that directory). These may provide some help.

Thanks!

On Wed, Sep 30, 2020 at 12:42 PM Elliot West <te...@gmail.com> wrote:

> Hello is there any way I can use ranger’s rest API to evaluate access
> request against my services and sets of policies? I would like to validate
> some use cases before building out a complete plug-in for one of our
> in-house services.
>
> I was hoping that I might be able to do this by implementing a minimal
> service and service definition and then supplying sets are policies which I
> could with then exercise using the rest API.
>
> Many thanks,
>
> Elliot.
>