[ 
https://issues.apache.org/jira/browse/RANGER-5777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fang-Yu Rao updated RANGER-5777:
--------------------------------
    Summary: RangerBasePlugin#createRole() and dropRole() do not produce audit 
log even though RangerAccessResultProcessor is provided as a non-null input 
argument  (was: RangerBasePlugin#createRole() does not produce audit log even 
though RangerAccessResultProcessor is provided as a non-null input argument)

> RangerBasePlugin#createRole() and dropRole() do not produce audit log even 
> though RangerAccessResultProcessor is provided as a non-null input argument
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-5777
>                 URL: https://issues.apache.org/jira/browse/RANGER-5777
>             Project: Ranger
>          Issue Type: Task
>          Components: plugins
>            Reporter: Fang-Yu Rao
>            Priority: Major
>
> We found 
> [RangerBasePlugin#createRole()|https://github.com/apache/ranger/blob/0c62c8c/agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java#L982-L990]
>  does not produce Ranger audit events even though we provide a non-null 
> {{RangerAccessResultProcessor}} when calling this method.
> {code:java}
>     public RangerRole createRole(RangerRole request, 
> RangerAccessResultProcessor resultProcessor) throws Exception {
>         LOG.debug("==> RangerBasePlugin.createRole({})", request);
>         RangerRole ret = getAdminClient().createRole(request);
>         LOG.debug("<== RangerBasePlugin.createRole({})", request);
>         return ret;
>     }
> {code}
> The above applies to {{dropRole()}} as well.
>  
> This is similar to what we observed in RANGER-5595 that is related to 
> GRANT/REVOKE ROLES.



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

Reply via email to