node-red-contrib-presidio

0.0.3 • Public • Published

node-red-contrib-presidio 📦

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

Install

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

    npm install node-red-contrib-presidio

Presidio Setup ⚙️

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

  • ℹ️ POST localhost:1880/HealthCheck

HealthCheck

  • Health Check response payload:

HealthCheckResponse

Analyzer API 🧰

  • ℹ️ POST localhost:1880/Presidio

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

Analyzing PIIs 🧑 ➡️

  • Setting the payload of the Presidio Analysis injector:

Analysis1

Analysis Result 🧾 🔙

  • Analysis response payload:

Analysis2


Anonymizer API 🧰

⚠️ Refer to Presidio API documents HERE

  • ℹ️ 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 🧑 🧾 ➡️

  • Setting the payload of the Presidio Anonymization injector: Hash1

Hashing Response 🧾 🔙

  • Hashing response payload:

Hash2


Encrypting PIIs 🧑 🧾 ➡️

  • Setting the payload of the Presidio Anonymization injector: Anonymize1

Encryption Response 🧾 🔙

  • Encryption response payload:

Anonymize2


Decrypting PIIs 🧾 ➡️

  • Setting the payload of the Presidio Anonymization injector: Deanonymize1

Decryption Response 🧑 🔙

  • Decryption response payload:

Deanonymize2

Package Sidebar

Install

npm i node-red-contrib-presidio

Weekly Downloads

0

Version

0.0.3

License

Apache-2.0

Unpacked Size

220 kB

Total Files

17

Last publish

Collaborators

  • doth-j