Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data masking masks non json key, and values when I use field names #661

Open
4 tasks done
kothapet opened this issue Nov 14, 2024 · 0 comments
Open
4 tasks done

Data masking masks non json key, and values when I use field names #661

kothapet opened this issue Nov 14, 2024 · 0 comments
Labels
status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working

Comments

@kothapet
Copy link

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe 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

@kothapet kothapet added status/triage Issues pending maintainers triage type/bug Something isn't working labels Nov 14, 2024
@kapybro kapybro bot added status/triage/manual Manual triage in progress status/triage/completed Automatic triage completed and removed status/triage Issues pending maintainers triage labels Nov 14, 2024
@kothapet kothapet changed the title Data masking masks non json key, and values Data masking masks non json key, and values when I use field names Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage/completed Automatic triage completed status/triage/manual Manual triage in progress type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant