pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/broadway/broadway-sensitive-data

81c.css" /> GitHub - broadway/broadway-sensitive-data: Helpers for handling sensitive data with broadway/broadway · GitHub
Skip to content

broadway/broadway-sensitive-data

Repository files navigation

broadway/sensitive-data

Helpers for handling sensitive data with Broadway.

build status

Installation

$ composer require broadway/sensitive-data

About

In an Event Sourced environment you may have to deal with sensitive (e.g. personal) data ending up in your event stream. You could encrypt your event stream or remove sensitive data from your event stream after a certain amount or time (upcasting). Or you could choose not to store sensitive data in you event stream altogether. That's where this project helps out.

Imagine the use case where a customer wants to pay an order with a credit card and you're not allowed to store the credit card number.

A PayWithCreditCardCommand (with credit card number) should lead to a PaymentWithCreditCardRequestedEvent (without the credit card number) but the Processor that handles the event does need to know the credit card number.

This project introduces a SensitiveDataManager which can be injected into a CommandHandler to capture the sensitive data from the command and make it available to the SensitiveDataProcessor hereby bypassing the event store.

Pros:

  • sensitive data is not stored in your event stream
  • no need for encryption or upcasting of your events

Cons:

  • handling of sensitive data can only be done once per request

Example

A detailed example with a test case can be found in the examples/ directory.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Helpers for handling sensitive data with broadway/broadway

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy