I have an event, let's say order.placed
The payload consists of some general information about the order and 3 confidential fields. For example part of the message should only be visible to consumer A, part to consumer B and part to consumer C.
Does any pattern exist to handle this kind of requirement?
I considered encrypting these parts of the message with different keys, so only consumers for which this data should be available be able to decrypt this part of message.
I also thought about sending the same message with three different payloads for each consumer.
Have you tried any of these approches, maybe there are others?