# Microsoft Graph API Authentication (for email access) GRAPH_TENANT_ID=your-tenant-id-here GRAPH_CLIENT_ID=your-client-id-here GRAPH_CLIENT_SECRET=your-client-secret-here # Email Configuration # Multiple users can be monitored by separating emails with commas: # USER_EMAIL=user1@yourdomain.com,user2@yourdomain.com,user3@yourdomain.com USER_EMAIL=user@yourdomain.com # The user(s) whose sent emails to monitor SERVICE_ACCOUNT_EMAIL=gdp-notifications@yourdomain.com # Service account for sending notifications # Database Configuration (for Email Processing Tracking) DATABASE_URL=postgresql+asyncpg://username:password@localhost:5432/gdp_agent DATABASE_HOST=localhost DATABASE_PORT=5432 DATABASE_NAME=gdp_agent DATABASE_USER=postgres DATABASE_PASSWORD=postgres # podman run --name postgres \ # -e POSTGRES_PASSWORD=postgres \ # -e POSTGRES_DB=gdp_agent \ # -p 5432:5432 \ # -v gdp_pgdata:/var/lib/postgresql/data \ # -d library/postgres:latest # Worker Configuration POLLING_INTERVAL=30 MAX_EMAILS_PER_POLL=1 # Set to 1 to get only the last sent email ENABLE_EMAIL_TRACKING=true # Enable persistent email processing tracking # Email Date Filtering # Only process emails sent after this date/time (ISO format) # Examples: # EMAIL_DATE_BOUNDARY=2024-01-01 # From January 1st, 2024 # EMAIL_DATE_BOUNDARY=2024-01-01T00:00:00 # From specific datetime # EMAIL_DATE_BOUNDARY=2024-01-01T00:00:00Z # With UTC timezone # EMAIL_DATE_BOUNDARY=2024-01-01 # Attachment Processing Configuration ENABLE_ATTACHMENT_PROCESSING=true ATTACHMENT_MAX_SIZE_MB=10 # Azure AI Foundry Configuration (uses user login from console: az login or VS Code) AZURE_AI_FOUNDRY_ENDPOINT=https://your-foundry-resource.ai.azure.com/api/projects/your-project # PII Detection Settings PII_LOG_DETAILED_ANALYSIS=true PII_MAX_ANALYSIS_TIME=30 ENABLE_AI_ENHANCED_PII_DETECTION=true AI_PII_CONFIDENCE_THRESHOLD=0.75 # PII Follow-up Notification Settings ENABLE_PII_NOTIFICATIONS=true # Logging Configuration LOG_LEVEL=INFO LOG_FILE_PATH=logs/gdp-worker.log # Microsoft Graph API Configuration (optional) GRAPH_API_BASE_URL=https://graph.microsoft.com/v1.0 PII_OFFICER_EMAIL=PradeepG@t4mwx.onmicrosoft.com