Repository navigation
Distrust compromised emSign/Comodo AAA roots, bump pip/uv/certifi (NVP-512) #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,12 @@ RUN apt-get install -y \ | |
| libcudnn8 libcudnn8-dev curl && \ | ||
| apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| RUN apt-get update -y && apt-get install -y --only-upgrade ca-certificates && \ | ||
| sed -i -e 's#^mozilla/emSign_ECC_Root_CA_-_G3.crt#!&#' \ | ||
| -e 's#^mozilla/Comodo_AAA_Services_root.crt#!&#' /etc/ca-certificates.conf && \ | ||
| update-ca-certificates --fresh && \ | ||
| apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install ChromeDriver matching the installed Chromium version | ||
| RUN VER=$(curl -sf "https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_$(chromium --version | grep -oP '\d+' | head -1)") \ | ||
| && curl -sfL "https://storage.googleapis.com/chrome-for-testing-public/${VER}/linux64/chromedriver-linux64.zip" -o /tmp/cd.zip \ | ||
|
|
@@ -82,7 +88,7 @@ ENV SITE_ROOT=/code | |
| COPY pyproject.toml Makefile ./ | ||
|
|
||
| # Install UV using pip (no-cache so pip doesn't bloat the layer) | ||
| RUN pip install uv --no-cache-dir | ||
| RUN pip install --no-cache-dir --upgrade "pip>=26.2.2" "uv>=0.13.4" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this command is run as the non-root user |
||
| ENV PATH="/home/troc/.local/bin:$PATH" | ||
|
|
||
| # Create venv, install deps, and wipe uv cache — all in one layer so the | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The certificate name for the Comodo AAA root in the Debian
ca-certificatespackage ismozilla/AAA_Certificate_Services.crt, notmozilla/Comodo_AAA_Services_root.crt. Because of this, thesedcommand will not match the entry in/etc/ca-certificates.conf, and the defense-in-depth blocklist will fail to disable the Comodo AAA root if the package upgrade is not available (e.g., due to a stale mirror).