feat: auth fail-closed, regles par defaut idempotentes et conteneur non root (tt-2026-11-061)
This commit is contained in:
1 parent
b51a8bba69
commit
6aef9e83e7
11 files changed
+424
-95
No files matched your search
@@ -17,8 +17,15 @@ COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app/ /app/app/
|
||||
COPY tests/ /app/tests/
|
||||
COPY README.md /app/
|
||||
|
||||
# Préparation du répertoire persistant data/ et droits non-root
|
||||
RUN mkdir -p /app/data && chown -R 1037:100 /app
|
||||
|
||||
# Exécution en conteneur non root (uid=1037, gid=100)
|
||||
USER 1037:100
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Reference in new issue
Block a user