ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Support API key configuration for Zerox in multi-tenant setup
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 18
- Fork
- 10
- Merge medio
- 2g 20h
- PR unite (30g)
- 14
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando l’integrazione Zerox e l’area dei test unitari del transformer nel backend Python. Verifica se la PR upstream per l’API-key è disponibile, quindi definisci come le chiavi specifiche del progetto debbano raggiungere il transformer; il lavoro è completo quando l’approccio scelto funziona per l’uso multi-tenant e sono presenti test unitari per il transformer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100