dineshkumar-yadav opened a new pull request, #1373:
URL: https://github.com/apache/ranger/pull/1373
… 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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]