0.0.3 • Published 1 year ago

node-red-contrib-presidio v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

node-red-contrib-presidio :package:

This is a subflow for interacting with the Microsoft Presidio Analyzer and Anonymizer services.

Install :zap:

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-contrib-presidio

Presidio Setup :gear:

The subflow requires Microsoft Presidio services to be running on the host or a remote server that is reachable by Node-RED. The documentation to install Presidio can be found here, we recommend using the Docker approach as follows:

docker run -d -p 5001:3000 mcr.microsoft.com/presidio-analyzer:latest
docker run -d -p 5002:3000 mcr.microsoft.com/presidio-anonymizer:latest

Once the containers are deployed, use the health check to see that the Presidio services are reachable

  • :information_source: POST localhost:1880/HealthCheck

HealthCheck

  • Health Check response payload:

HealthCheckResponse

Analyzer API :toolbox:

  • :information_source: POST localhost:1880/Presidio

The data payload parameter must be a string and you must define the function to analyze.

Analyzing PIIs :adult: :arrow_right:

  • Setting the payload of the Presidio Analysis injector:

Analysis1

Analysis Result :receipt: :back:

  • Analysis response payload:

Analysis2


Anonymizer API :toolbox:

:warning: Refer to Presidio API documents HERE

  • :information_source: POST localhost:1880/Presidio

The data payload parameter must be a string, you must also define the function to anonymize and which action to use for the PIIs (redact,replace,mask,hash,encrypt).

Hashing PIIs :adult: :receipt: :arrow_right:

  • Setting the payload of the Presidio Anonymization injector: Hash1

Hashing Response :receipt: :back:

  • Hashing response payload:

Hash2


Encrypting PIIs :adult: :receipt: :arrow_right:

  • Setting the payload of the Presidio Anonymization injector: Anonymize1

Encryption Response :receipt: :back:

  • Encryption response payload:

Anonymize2


Decrypting PIIs :receipt: :arrow_right:

  • Setting the payload of the Presidio Anonymization injector: Deanonymize1

Decryption Response :adult: :back:

  • Decryption response payload:

Deanonymize2