📦
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
- Health Check response payload:
🧰
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:
🧾 🔙
Analysis Result - Analysis response payload:
🧰
Anonymizer API ℹ️ 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
🧾 🔙
Hashing Response - Hashing response payload:
🧑 🧾 ➡️
Encrypting PIIs
🧾 🔙
Encryption Response - Encryption response payload:
🧾 ➡️
Decrypting PIIs
🧑 🔙
Decryption Response - Decryption response payload: