Data masking masks non json key, and values when I use field names #661
Labels
status/triage/completed
Automatic triage completed
status/triage/manual
Manual triage in progress
type/bug
Something isn't working
Issue submitter TODO list
main
-labeled docker image and the issue still persists thereDescribe the bug (actual behavior)
Data masking works fine for JSON fields but masks if the key or value fields are defined as basic data types like string. Not sure if this is expected behavior by reading the documentation. My expectation is only mask the named fields in json/avro etc.
Expected behavior
My expectation is only mask the named fields in json/avro etc.
Your installation details
Here are the properties I am using
kafka.clusters[0].masking[0].type=MASK
kafka.clusters0.masking0.fields=NAME
kafka.clusters0.masking0.topicKeysPattern=.*
kafka.clusters0.masking0.topicValuesPattern=.*
Steps to reproduce
create two different topics,
One with json keys and put some json data with NAME field in them.
Another with key/value as string. Write some randome data to it.
Only the first topic data with JSON data NAME field should be masked
The second topic key/value shouldn't be masked
Screenshots
No response
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: