-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Determine scenarios where DlsFlsValveImpl can be short circuited #5190
Comments
The filter level DLS implementation rewrites mget requests. This happens here in security/src/main/java/org/opensearch/security/configuration/DlsFilterLevelActionHandler.java Lines 319 to 384 in 75f03c7
The Still, security/src/main/java/org/opensearch/security/configuration/DlsFilterLevelActionHandler.java Lines 90 to 115 in 75f03c7
With the changes in |
This should certainly be revisited to remove the redundancy. Looks like quite a few lines could be removed from there. |
In #5184, logic was added to short circuit the DlsFlsValveImpl in the case where the action being performed was a cluster action. Initially, the logic applied to all cluster actions but an exception had to be made for mget to fix the
./gradlew dlicDlsflsTest --tests DlsTermLookupQueryTest.testMGet_1337
test.I'm opening up this issue to come to a consensus on which scenarios the DlsFlsValveImpl can be short-circuited. Currently, the logic only applies to
indices:
actions.There's some additional conversation on an old PR as well: #4937
The text was updated successfully, but these errors were encountered: