ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Support API key configuration for Zerox in multi-tenant setup
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 18
- Forks
- 10
- Ø Merge
- 2 T. 20 Std.
- Gemergte PRs (30 T.)
- 14
Beschreibung
We are currently using Zerox for document transformation in our system. However, Zerox only supports reading the API key from environment variables.
Our platform is multi-tenant, and the API key is scoped per project. This makes it problematic to rely solely on environment variables for API key management.
We already opened a PR in the Zerox repo to add support for passing the API key explicitly instead of always fetching it from environment variables. However, in case we don’t receive a response from the maintainers, we will need to either:
- Move to another tool that supports this flexibility, or
- Implement a workaround where each Celery worker handles project-specific API keys.
Context:
Each Celery worker runs in a separate process, which means separate memory and environment, so we can set api_key in env.
Test:
Once fixed this add unit tests for transfomer
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Zerox-Integration und den Bereich für Transformer-Unit-Tests im Python-Backend zu finden. Prüfe, ob der Upstream-API-Key-PR verfügbar ist, und lege anschließend fest, wie projektbezogene Schlüssel den Transformer erreichen sollen; abgeschlossen ist die Aufgabe, wenn der gewählte Ansatz für die Nutzung mit mehreren Mandanten funktioniert und Unit-Tests für den Transformer vorhanden sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- backend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100