Repository navigation
Conversation
nibix
force-pushed
the
pluggable-df-fm
branch
from
November 3, 2026 13:08
e87ccb6 to
795a5ca
Compare
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
Signed-off-by: Nils Bandener <nils.bandener@eliatra.com>
nibix
force-pushed
the
pluggable-df-fm
branch
from
November 24, 2026 13:47
795a5ca to
7152fd6
Compare
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.
Description
Adds Security plugin support for field-masking enforcement in analytics queries against pluggable data formats according to the RFC in opensearch-project/OpenSearch#22828.
This implements the Security plugin side of the companion OpenSearch PR: nibix/OpenSearch#4.
The Security plugin remains the source of the effective authorization policy. This change registers a
FieldValueTransformationProvidercomponent that exposes the request-scoped field-masking decision for a concrete index and mapped leaf field.FieldValueTransformationResolveruses the existingDlsFlsBaseContextand authenticatedPrivilegesEvaluationContextto obtain the effectiveFieldMaskingRule. It then converts the matching Security field-masking rule into a backend-neutralFieldValueTransformationdescriptor.The companion OpenSearch analytics implementation consumes this descriptor on the node executing the shard fragment and applies it at the raw DataFusion read boundary. The Security plugin does not expose roles, users, or raw Security configuration to analytics plugins.
The following existing Security masking configurations can be represented for pluggable data formats:
The same existing role combination and field-pattern resolution is used for both standard Lucene field masking and pluggable data formats. Rules are resolved independently for each concrete index, which supports aliases and data streams whose backing indices have different effective policies.
If privilege evaluation fails, transformation resolution fails closed with an
OpenSearchSecurityException. Requests without a user privilege context, such as internal system operations, do not receive a transformation.Notes
Current limitations
The following limitations apply to analytics execution through the companion OpenSearch implementation. They do not change the behavior of the existing standard Lucene search path:
keywordandtextfields, including dotted object leaves and string-valued lists. Unsupported mapped or physical types fail closed.date,ip, and geo fields may have textual input or display forms but use numerical or encoded internal representations. They require separately defined masking semantics and are not initially supported.MessageDigeston the existing Lucene path are rejected for analytics execution.dedup, text-relevance functions, and PPLsearchcriteria involving masked fields, fail closed.Tests
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.