Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ WORKDIR /app

COPY ./requirements.txt requirements.txt

RUN pip install --no-cache-dir --upgrade pip
# Install the project dependencies
RUN python -m ensurepip --upgrade
# Bundled pip 25.0.1 wheel carries CVE-2025-8869, CVE-2026-3219/6357/8643
RUN rm -f /usr/local/lib/python3.12/ensurepip/_bundled/pip-*.whl
RUN pip install --no-cache-dir -r requirements.txt
# Install the project dependencies, then drop pip: 26.2.1 (latest) vendors
# urllib3 2.7.0 (CVE-2026-97687, CVE-2026-97689) and krr never calls pip at
# runtime. One RUN so the upgraded pip never lands in an image layer.
# The bundled pip 25.0.1 wheel carries CVE-2025-8869, CVE-2026-3219/6357/8643.
RUN pip install --no-cache-dir --upgrade pip \
&& python -m ensurepip --upgrade \
&& rm -f /usr/local/lib/python3.12/ensurepip/_bundled/pip-*.whl \
&& pip install --no-cache-dir -r requirements.txt \
&& pip uninstall -y pip

# Copy the rest of the application code
COPY ./krr.py krr.py
Expand Down
2 changes: 1 addition & 1 deletion enforcer/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ prometheus-client==0.20.0
python-json-logger==3.3.0
kubernetes==26.1.0
pyasn1>=0.6.2
urllib3==2.7.0
urllib3==2.8.0
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pyyaml = "6.0.1"
# pytest-asyncio >=1.3 (needed for pytest 9 / CVE-2025-71176) requires typing-extensions >=4.12
typing-extensions = ">=4.12.0,<5"
idna = "3.15"
urllib3 = "^2.7.0"
urllib3 = "^2.8.0"
setuptools = "^83.0.0"
# transitive deps pinned for CVE fixes
pillow = "^12.3.0"
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ typer==0.7.0 ; python_version >= "3.10" and python_full_version < "3.13"
typing-extensions==4.16.0 ; python_version >= "3.10" and python_full_version < "3.13"
tzdata==2024.1 ; python_version >= "3.10" and python_full_version < "3.13"
tzlocal==5.2 ; python_version >= "3.10" and python_full_version < "3.13"
urllib3==2.7.0 ; python_version >= "3.10" and python_full_version < "3.13"
urllib3==2.8.0 ; python_version >= "3.10" and python_full_version < "3.13"
websocket-client==1.7.0 ; python_version >= "3.10" and python_full_version < "3.13"
zipp==3.20.2 ; python_version >= "3.10" and python_full_version < "3.13"
# required for tests
Expand Down
Loading