[ 
https://issues.apache.org/jira/browse/RANGER-5822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18126855#comment-18126855
 ] 

Madhan Neethiraj edited comment on RANGER-5822 at 10/13/26 10:07 PM:
---------------------------------------------------------------------

* master branch: 
[https://github.com/apache/ranger/commit/fdda472fb2cf540d6e97b3f8b08bad0c29426793]
 * ranger-2.10 branch: 
[https://github.com/apache/ranger/commit/60bf30ca8173aced908c3f268396d536cd0cb79c]


was (Author: madhan.neethiraj):
master branch: 
https://github.com/apache/ranger/commit/fdda472fb2cf540d6e97b3f8b08bad0c29426793

> application supplied context attributes should be accessible in expressions
> ---------------------------------------------------------------------------
>
>                 Key: RANGER-5822
>                 URL: https://issues.apache.org/jira/browse/RANGER-5822
>             Project: Ranger
>          Issue Type: New Feature
>          Components: plugins
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>            Priority: Major
>             Fix For: 3.0.0, 2.10
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Ranger policy engine makes several evaluation context attributes available in 
> expressions, like `REQ.accessType`, `RES._ownerUser` `RES.database`, 
> `RES.table`. This should be extended to make attributes supplied by the 
> application (like trx_amount, approval_status), so that policies can refer to 
> these attributes in making decisions. For example:
>  
> {noformat}
>  ATTR.trx_amount > 10000 && ATTR.approval_status != 'approved'{noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to