[
https://issues.apache.org/jira/browse/KNOX-3219?focusedWorklogId=993543&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-993543
]
ASF GitHub Bot logged work on KNOX-3219:
----------------------------------------
Author: ASF GitHub Bot
Created on: 27/Nov/25 05:59
Start Date: 27/Nov/25 05:59
Worklog Time Spent: 10m
Work Description: smolnar82 merged PR #1112:
URL: https://github.com/apache/knox/pull/1112
Issue Time Tracking
-------------------
Worklog Id: (was: 993543)
Time Spent: 40m (was: 0.5h)
> 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)