Feat/anonimyze files#20
Open
armandliegey wants to merge 4 commits into
Open
Conversation
…ation Introduce a Presidio-based file anonymization pipeline alongside the existing text anonymization flow. - add a new Presidio sidecar with Docker, compose, Python server, and runtime dependencies - anonymize supported PDF, image, DOCX, XLSX, and XLS attachments before forwarding them upstream - intercept OpenAI and Anthropic /v1/files uploads and track trusted anonymized file IDs - wire Presidio configuration into the Go runtime, proxy, and file anonymizer client - expose Presidio environment variables in .env.example, Docker, README, npm start flow, and dev scripts - add npm tests covering Presidio start-mode handling
…vability Prepare text and inline file anonymization concurrently for OpenAI and Anthropic requests while preserving placeholder ordering and file policies. Add startup readiness checks for GLiNER and Presidio, migrate internal HTTP calls to Resty, and introduce structured timing logs across anonymization, upstream API calls, response processing, and deanonymization. Enable proxy debug file logging in Docker Compose and cover request preparation, inline media handling, failure policies, and concurrency with dedicated tests.
Accept multipart completion requests, enforce upload size limits, anonymize attachments before provider submission, and persist reusable files with conversation history. Support native document payloads and text fallbacks across providers, apply configured failure policies, and add CSV and TXT processing to the Presidio sidecar. Allow users to attach PDF, Office, image, CSV, and TXT files through the file picker or by dropping them anywhere in the chat. Display attachment metadata and anonymization warnings, restore failed uploads, add localized feedback, and improve connected-provider credential placeholders.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cette MR étend la protection des données sensibles aux fichiers envoyés aux fournisseurs d’IA, aussi bien depuis l’AI Workspace que directement via le proxy OpenAI/Anthropic.
Changements principaux
/v1/files.remove,rejectetpassthrough.AI Workspace
Proxy et observabilité
Configuration
Ajout des variables suivantes :
Le sidecar Presidio est intégré à Docker Compose ainsi qu’au script de démarrage local.
Tests