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

Sandor Molnar updated KNOX-3219:
--------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> New Virtual Group mapping function to check request parameters
> --------------------------------------------------------------
>
>                 Key: KNOX-3219
>                 URL: https://issues.apache.org/jira/browse/KNOX-3219
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Sandor Molnar
>            Assignee: Sandor Molnar
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> KNOX-2707 added a very cool feature that allows virtual group mapping using 
> predicates. There are many pre-defined functions, including 
> {{request-header}} and {{{}request-attribute{}}}.
> It'd be beneficial to add a new request-related function called 
> {{request-parameter}} that works the same way as the above listed ones, but 
> it gets the value to compare from the request parameters.
> For instance:
> {code:java}
> <param>
>   <name>group.mapping.non_rejected_requests</name>
>   <value>(= (strlen (request-parameter 'impala.doas.user')) 0)</value>
> </param> {code}
> This would map user principals to the {{non_rejected_requests}} where the 
> request doesn't contain the {{impala.doas.user}} parameter.



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

Reply via email to