Skip to content

RANGER-5875 : OpenSearch access audit search misses accessType values… - #1373

Merged
dineshkumar-yadav merged 1 commit into
masterfrom
sandbox/dineshkumar-yadav/master-RANGER-5875
Nov 18, 2026
Merged

dineshkumar-yadav merged 1 commit into
masterfrom
sandbox/dineshkumar-yadav/master-RANGER-5875

Conversation

@dineshkumar-yadav

Copy link
Copy Markdown
Contributor

… that differ in case

What changes were proposed in this pull request?

Access-audit filters such as accessType were lowercased and sent as a match_phrase against a keyword field that stores the original case, so a search for SELECT missed events stored as SELECT.

  • New audit indexes define a key_lower_case normalizer (one token, lowercased), the same role as Solr's key_lower_case field type.
  • Keyword fields in ranger_opensearch_schema.json use that normalizer. id is unchanged.
  • Exact string filters now use a case-insensitive term query and keep the original value, so SELECT matches select, SELECT, and Select.
  • reason stays a lowercased match_phrase, because that field is mapped as text.

How was this patch tested?

Tested in Docker setup

  • accessType=create now matches uppercase, camelCase, and lowercase values.

@vyommani vyommani left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dineshkumar-yadav
dineshkumar-yadav merged commit 342a2e3 into master Nov 18, 2026
8 checks passed
@dineshkumar-yadav
dineshkumar-yadav deleted the sandbox/dineshkumar-yadav/master-RANGER-5875 branch November 18, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants