Skip to content

Commit ba45c1a

Browse files
authored
security: patch orjson DoS and harden container/frontend (#852)
1 parent b92ad7e commit ba45c1a

4 files changed

Lines changed: 59 additions & 37 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2626
EXPOSE 8000
2727

2828
# Run the application.
29+
RUN useradd -m appuser
30+
USER appuser
31+
2932
CMD ["uv", "run", "python", "server.py", "--host", "0.0.0.0", "--port", "8000"]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ dependencies = [
5050
"psycopg[binary]>=3.2.9",
5151
"qdrant-client>=1.15.1",
5252
"langchain-qdrant>=0.2.0",
53+
"orjson>=3.11.5",
5354
]
5455

5556
[project.optional-dependencies]

0 commit comments

Comments
 (0)