KNOX-3219 - New function in Virtual Group mapper to test request parameters#1112
Merged
smolnar82 merged 1 commit intoapache:masterfrom Nov 27, 2025
Merged
KNOX-3219 - New function in Virtual Group mapper to test request parameters#1112smolnar82 merged 1 commit intoapache:masterfrom
smolnar82 merged 1 commit intoapache:masterfrom
Conversation
hanicz
reviewed
Nov 26, 2025
...test/java/org/apache/knox/gateway/identityasserter/common/filter/VirtualGroupMapperTest.java
Outdated
Show resolved
Hide resolved
moresandeep
pushed a commit
to moresandeep/knox
that referenced
this pull request
Dec 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
KNOX-3129 - New Virtual Group mapping function to check request parameters
What changes were proposed in this pull request?
This PR adds a new Virtual Group mapping function that gets the value (later used for testing the given predicate) from the request parameters.
How was this patch tested?
Added new unit test cases to cover this new function.
Additionally, I applied the following configs in a topology:
The challenged this topology using the WEBHDFS service with and without the
impala.doas.userrequest parameter and confirmed that thenon_rejected_requestsgroup was mapped when theimpala.doas.userwas not in the request. See the relevantgateway-audit.logentries (check thidentity-mappinglines):