Logo Lanfrica

donovanwhite/presidio-pii-za-identifier

Domaine:

digital infrastructure

Type de record:

software
Créateur:
don
Hôte:
custom class for South African ID numbers using Presidio # presidio_pii_za_id This project involves deploying a web application that uses the Presidio SDK for PII detection and anonymization of the South Africa African ID number including being able to handle input errors using a custom class, secondary to this is the builtin recognizer to handle credit card numbers. The deployment process includes building a Docker image, pushing it to Azure Container Registry (ACR), deploying it to Azure App Service, setting up an Azure SQL Database, and creating necessary stored procedures and triggers. Below are the key steps involved, please refer to the app and db folder for the artefacts as well as the build_presidio.sh for the az commands: # 1. Azure Container Registry (ACR) Setup Login to ACR: Authenticate to the Azure Container Registry using the az acr login command. Build and Push Docker Image: Build the Docker image with the application, tag it, and push it to ACR. # 2. Azure Resource Setup Create Resource Group and App Service Plan: Use the az group create and az appservice plan create commands to set up the necessary Azure resources. Create Managed Identity: Create a managed identity to handle permissions for pulling images from ACR. # 3. Permissions and Role Assignments Grant ACR Pull Permissions: Assign the “AcrPull” role to the managed identity to allow it to pull images from ACR. # 4. Azure SQL Database Setup Create SQL Server and Database: Use the az sql server create and az sql db create commands to set up the SQL Server and Database. Configure Firewall Rules: Set up firewall rules to allow access to the SQL Server. Create Table: Define and create the callcentre_comments table (SQL code available in the repository). Create Stored Procedures: Define and create the necessary stored procedures in the database (SQL code available in the repository). Create Trigger: Define and create the trigger to handle PII anonymization before inserting data (SQL code available in the repository). # 5. Deploy Web Application Create We …

Licenses