2017 © Pedro Peláez
 

library sensitive-data

helpers for handling sensitive data with Broadway

image

broadway/sensitive-data

helpers for handling sensitive data with Broadway

  • Tuesday, May 8, 2018
  • by othillo
  • Repository
  • 4 Watchers
  • 2 Stars
  • 2,804 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

broadway/sensitive-data

Helpers for handling sensitive data with Broadway., (*1)

build status, (*2)

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., (*3)

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., (*4)

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., (*5)

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., (*6)

Pros: * sensitive data is not stored in your event stream * no need for encryption or upcasting of your events, (*7)

Cons: * handling of sensitive data can only be done once per request, (*8)

Example

A detailed example with a test case can be found in the examples/ directory., (*9)

License

This project is licensed under the MIT License - see the LICENSE file for details, (*10)

The Versions

08/05 2018

dev-master

9999999-dev

helpers for handling sensitive data with Broadway

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar othillo

14/12 2017

0.3.0

0.3.0.0

helpers for handling sensitive data with Broadway

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar othillo

07/03 2017

0.2.0

0.2.0.0

helpers for handling sensitive data with Broadway

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar othillo

03/01 2017

0.1.0

0.1.0.0

helpers for handling sensitive data with Broadway

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar othillo