You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this should not be the desired behaviour. A nested object can contain multiple fields. Those fields can be tremendously helpful to view from Kafka-ui. But with the current version of Kafka-ui, this is not achievable as Kafka-ui masks all internal fields.
The desired behaviour should be:
- type: REPLACE
fields: [ "id", "name.first" ] // or some other config
replacement: "***" #optional, "***DATA_MASKED***" by default
If there are multiple fields with the same name present in a message, all fields are masked.
Example:
name: "test",
id: 1
meta: {
id: 2,
...
}
Say, I want to mask only the meta.id field. But if I mention id in the fields list, it masks all fields with the name id. So the above message becomes:
name: "test",
id: ****
meta: {
id: ****,
...
}
Summary
Combining the above two issues, as a user of Kafka-UI, it would be great to have config settings where I can say exactly what fields in a message I want to mask.
Describe alternatives you've considered
No response
Version you're running
0.7.1
Additional context
I have proto models serde to deserialize the messages in Kafka-ui
The text was updated successfully, but these errors were encountered:
I am thinking out loud here: since Kafka-ui is doing the deserialisation with the Proto serde, it should know the structure of the message i.e., fields and its nested structure. In that case, can't Kafka-ui use this context to mask only the required fields? i.e., if I mention only fields: [ "id", "name.first" ], can't Kafka-ui use the proto-model structure to only mask the first field of name field?
Issue submitter TODO list
Is your proposal related to a problem?
No response
Describe the feature you're interested in
Issue 1
The data masking document describes how to mask data but the examples contain linear field names. However, the document says that
The given example in the document was:
which results in
But this should not be the desired behaviour. A nested object can contain multiple fields. Those fields can be tremendously helpful to view from Kafka-ui. But with the current version of Kafka-ui, this is not achievable as Kafka-ui masks all internal fields.
The desired behaviour should be:
which should result in
Issue 2
If there are multiple fields with the same name present in a message, all fields are masked.
Example:
Say, I want to mask only the
meta.id
field. But if I mentionid
in thefields
list, it masks all fields with the nameid
. So the above message becomes:Summary
Combining the above two issues, as a user of Kafka-UI, it would be great to have config settings where I can say exactly what fields in a message I want to mask.
Describe alternatives you've considered
No response
Version you're running
0.7.1
Additional context
I have proto models serde to deserialize the messages in Kafka-ui
The text was updated successfully, but these errors were encountered: