sql icon indicating copy to clipboard operation
sql copied to clipboard

[BUG] Non-anonymized queries can be added to OpenSearch logs

Open MaxKsyunz opened this issue 3 years ago • 1 comments

QueryDataAnonymizer fails to anonymize queries that are only supported by the v2 engine.

When that happens, the query including parameter values is added to OpenSearch log.

###Root Cause

QueryDataAnonymizer uses v1 parser to determine what elements in the AST need to be anonymized. When a query fails v1 engine, anonymization is skipped and the query is logged as-is.

MaxKsyunz avatar Sep 12 '22 23:09 MaxKsyunz

Relates to #787

MaxKsyunz avatar Sep 12 '22 23:09 MaxKsyunz

Completed via #1665

Yury-Fridlyand avatar Jul 01 '23 01:07 Yury-Fridlyand