[PR #3771] [CLOSED] [Other] certifi 2026.10.19 in requirements.txt and the three runtime locks (drops the eMudhra emSign ECC Root CA - G3) #4774

Closed
opened 2026-11-07 15:38:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3771
Author: @gatyoukatyou
Created: 10/22/2026
Status: ❌ Closed

Base: main ← Head: other/certifi-2026.10.19


📝 Commits (1)

  • 4688a08 setup: certifi 2026.10.19 in requirements.txt and the three runtime locks (#3670)

📊 Changes

4 files changed (+7 additions, -7 deletions)

View changed files

📝 packaging/locks/runtime-darwin-arm64-cp312.txt (+2 -2)
📝 packaging/locks/runtime-linux-x86_64-cp312.txt (+2 -2)
📝 packaging/locks/runtime-windows-x86_64-cp312.txt (+2 -2)
📝 requirements.txt (+1 -1)

📄 Description

Issue: Resolves #3670

Problem and result: requirements.txt and the three packaging/locks/runtime-*-cp312.txt pin certifi==2026.7.22, which still trusts "emSign ECC Root CA - G3", the root above the eight eMudhra intermediates whose private keys were found recoverable (disclosed 2026-10-17). With 2026.7.22, requests accepts the test chain at https://dv-g3b-emudhra.we-have-a-problem.com/; with 2026.10.19 it rejects it. GitHub, Hugging Face and PyPI are still accepted.

Related discussion: #3670 proposes the same pin for requirements.txt. This PR also moves the three hash-pinned runtime locks, since the packaged terminal archives install from those.

Approach: Only the certifi line changes (4 files, 7 lines). The lock hash is the PyPI sha256 of certifi-2026.10.19-py3-none-any.whl (42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b). I did not commit a full lock_wheels.py rerun: on unmodified main (011c9e60) it also moves platformdirs 4.13.0 -> 4.13.5 on all three targets and, run from a Mac, drops colorama from the Windows lock. Those are unrelated to this change, so they are left out. Comparing a full rerun with this diff, the certifi lines are identical.

Validation (macOS 26.6.2 arm64, branch based on 011c9e60):
Passed:

  • python packaging/lock_wheels.py --target {darwin-arm64,linux-x86_64,windows-x86_64} --download <dir> (Python 3.12.14): exit 0 for all three, each fetched certifi-2026.10.19-py3-none-any.whl with the locked hash (22 / 22 / 23 wheels).

  • pip install -r requirements.txt -r requirements-monitor.txt into fresh venvs on Python 3.12.14 and 3.14.3: exit 0, pip check reports no broken requirements.

  • The requests probe below, run with certifi 2026.7.22 and then 2026.10.19 (requests 2.34.2):

    URL 2026.7.22 2026.10.19
    dv-g3b-emudhra.we-have-a-problem.com accepted (200) rejected (CERTIFICATE_VERIFY_FAILED)
    dv-g3b-aaa-emudhra.we-have-a-problem.com rejected rejected
    github.com / huggingface.co / pypi.org accepted (200) accepted (200)
  • Diffing # Label: lines between the two cacert.pem files shows exactly one change: emSign ECC Root CA - G3 is removed.

  • python -m unittest tools.test_setup_pins tests.terminal.test_packaging_pins (Python 3.12.14): 29 of 30 pass.
    Failed:

  • tools.test_setup_pins.HuggingFacePins.test_step5_names_the_folder (can't open file .../metal/setup_mac.py). It fails the same way on unmodified main (011c9e60) on this Mac, so this change did not cause it.
    Not run: building the packaged archives, a Windows or Linux install, and starting the server or the app. No engine code is touched.

Limits: certifi only covers clients that use its bundle. The Windows certificate-store change discussed in #3722 is separate. The platformdirs / colorama lock drift noted above is left for a separate change.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3771 **Author:** [@gatyoukatyou](https://github.com/gatyoukatyou) **Created:** 10/22/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `other/certifi-2026.10.19` --- ### 📝 Commits (1) - [`4688a08`](https://github.com/Niko1221/Strata/commit/4688a08926ca65805abd8e9a7248d18440b93dd1) setup: certifi 2026.10.19 in requirements.txt and the three runtime locks (#3670) ### 📊 Changes **4 files changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `packaging/locks/runtime-darwin-arm64-cp312.txt` (+2 -2) 📝 `packaging/locks/runtime-linux-x86_64-cp312.txt` (+2 -2) 📝 `packaging/locks/runtime-windows-x86_64-cp312.txt` (+2 -2) 📝 `requirements.txt` (+1 -1) </details> ### 📄 Description Issue: Resolves #3670 Problem and result: `requirements.txt` and the three `packaging/locks/runtime-*-cp312.txt` pin `certifi==2026.7.22`, which still trusts "emSign ECC Root CA - G3", the root above the eight eMudhra intermediates whose private keys were found recoverable (disclosed 2026-10-17). With 2026.7.22, `requests` accepts the test chain at https://dv-g3b-emudhra.we-have-a-problem.com/; with 2026.10.19 it rejects it. GitHub, Hugging Face and PyPI are still accepted. Related discussion: #3670 proposes the same pin for `requirements.txt`. This PR also moves the three hash-pinned runtime locks, since the packaged terminal archives install from those. Approach: Only the certifi line changes (4 files, 7 lines). The lock hash is the PyPI sha256 of `certifi-2026.10.19-py3-none-any.whl` (`42d35340cc5b9ba78e818ddbff0c5b1c2b779de448a340fd1b989f5fa8670e1b`). I did not commit a full `lock_wheels.py` rerun: on unmodified `main` (011c9e60) it also moves `platformdirs` 4.13.0 -> 4.13.5 on all three targets and, run from a Mac, drops `colorama` from the Windows lock. Those are unrelated to this change, so they are left out. Comparing a full rerun with this diff, the certifi lines are identical. Validation (macOS 26.6.2 arm64, branch based on 011c9e60): Passed: - `python packaging/lock_wheels.py --target {darwin-arm64,linux-x86_64,windows-x86_64} --download <dir>` (Python 3.12.14): exit 0 for all three, each fetched `certifi-2026.10.19-py3-none-any.whl` with the locked hash (22 / 22 / 23 wheels). - `pip install -r requirements.txt -r requirements-monitor.txt` into fresh venvs on Python 3.12.14 and 3.14.3: exit 0, `pip check` reports no broken requirements. - The `requests` probe below, run with certifi 2026.7.22 and then 2026.10.19 (requests 2.34.2): | URL | 2026.7.22 | 2026.10.19 | |---|---|---| | dv-g3b-emudhra.we-have-a-problem.com | accepted (200) | rejected (CERTIFICATE_VERIFY_FAILED) | | dv-g3b-aaa-emudhra.we-have-a-problem.com | rejected | rejected | | github.com / huggingface.co / pypi.org | accepted (200) | accepted (200) | - Diffing `# Label:` lines between the two `cacert.pem` files shows exactly one change: `emSign ECC Root CA - G3` is removed. - `python -m unittest tools.test_setup_pins tests.terminal.test_packaging_pins` (Python 3.12.14): 29 of 30 pass. Failed: - `tools.test_setup_pins.HuggingFacePins.test_step5_names_the_folder` (`can't open file .../metal/setup_mac.py`). It fails the same way on unmodified `main` (011c9e60) on this Mac, so this change did not cause it. Not run: building the packaged archives, a Windows or Linux install, and starting the server or the app. No engine code is touched. Limits: certifi only covers clients that use its bundle. The Windows certificate-store change discussed in #3722 is separate. The `platformdirs` / `colorama` lock drift noted above is left for a separate change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:38:57 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4774
No description provided.