eventuate-clients / eventuate-client-nodejs

Other
4 stars 3 forks source link

Implementing GDPR #49

Open dartvandru opened 6 years ago

dartvandru commented 6 years ago

The save() and update() operations need an optional encryption key parameter that they use to encrypt events.

The parameter is an object with the following fields: (encryptionKeyId, …)

The client is instantiated with an optional Encryption object that implements encrypt(encryptionKeyId, eventdata) and decrypt(encryptedEventData) operations.

The encrypted event is prefixed with the encryptionKeyId. This enables the find() and subscribe() operations to decrypt the events.

dartvandru commented 6 years ago

Fixed with https://github.com/eventuate-clients/eventuate-client-nodejs/pull/48