Skip to content

Remove the temporary emSign certificate workarounds #258

Open

Description

@JuroOravec

#253 and #256 added several workarounds for the eMudhra (emSign) certificate incident. Each one exists because a tool or system we don't control still trusts the "emSign ECC Root CA - G3" root (called G3 below). Once that tool or system is fixed, the workaround only adds code and checks we no longer need, so it should go.

This issue lists each workaround, what to delete with it, and when it can be removed. Tick an item when its PR merges, and close the issue when every item is ticked.

These changes from the same PRs are permanent: exact uv and action pins, prune-cache: true, hash-locked build backends, and the Open VSX client in the lock file. When a new version comes out we raise those pins; we don't remove them.

Workarounds to remove

  • Playwright downloads use the system certificate list. Playwright's bundled Node.js still trusts G3, so each playwright install step sets NODE_OPTIONS=--use-openssl-ca and SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt. These make it use the runner's system list instead. The steps are in py--tests.yml, py--tests-cross-browser.yml, py--examples--tests.yml, py--citry-ui--publish.yml, repo--docs-check.yml, repo--docs-deploy.yml, and repo--docs-release.yml. The agent-usage image (benchmarks/agent_usage/image/Dockerfile) gets the same fix with PLAYWRIGHT_NODEJS_PATH=/usr/local/bin/node.
    • Remove when a Playwright release bundles Node.js 22.23.4, 24.22.1, 26.12.1, or later. In the same PR, update every Playwright version to that release:
      • uv.lock;
      • benchmarks/agent_usage/image/requirements.lock;
      • the exact playwright== pins in py--tests.yml, py--citry-ui--publish.yml, and py--examples--tests.yml;
      • the playwright>= minimums in packages/py/citry/pyproject.toml (now >=1.62.0) and packages/py/citry_ui/pyproject.toml (now >=1.49);
      • the unpinned playwright in the root pyproject.toml docs extra.
    • Also delete the Playwright checks in scripts/validators/toolchain.py: _playwright_errors, _playwright_install_lines, _command_lines, _SYSTEM_CA_FILE, and the part of the pinned_action_errors docstring that describes them. Delete their tests in packages/py/citry/tests/test_toolchain_validator.py too.
  • Updating the runner's system certificate list. The .github/actions/drop-emsign-g3 action upgrades ca-certificates when the runner still has G3, and fails the job if G3 remains. Two jobs don't check out the repo, so they run an inline copy of the same commands instead: citry-ui-wheel-browser in py--tests.yml and smoke-browser in py--citry-ui--publish.yml. The validator (_DROP_G3_ACTION, _g3_check) requires one of these to run before every playwright install.
    • The action exists only for the Playwright steps above. Remove when either of these is true:

      • the Playwright item is done; or
      • GitHub's ubuntu-24.04 runner image ships ca-certificates 20260816ubuntu0.24.04.1 or newer.

      To check the runner image, search a recent job log for Setting up ca-certificates. If the line no longer appears, the action has nothing left to fix. On 2026-10-22 the image still had an older version, so at least one job upgraded the package.

    • Also delete the action directory, the two inline copies, the validator code above, and its tests (test_a_missing_drop_action_fails_every_playwright_install, the drop-step cases, and the fixture line that copies .github/actions, if nothing else needs it).

  • PIP_USE_DEPRECATED=legacy-certs in CI. py--tests.yml and vscode--citry--publish.yml set it after upgrading pip, so pip uses only certifi and skips the runner's system list.
    • Remove when GitHub's ubuntu-24.04 runner image ships the fixed ca-certificates (the same check as above). A later pip will reject this option, so also remove it before we raise PIP_WHEEL.
    • Also delete the unset PIP_USE_DEPRECATED line and its comment in py--tests.yml, and reword the env: comments that explain the option in both workflows.
  • Installing pip 26.2.2 from a URL with a checksum. PIP_WHEEL in py--tests.yml and vscode--citry--publish.yml upgrades pip before the job downloads anything else.
    • Remove when the Python versions these jobs install with setup-python (3.10 and 3.14) come with pip 26.2.2 or later. Python 3.14.9 bundles it. 3.10 may never get it, so this item may last until we stop testing 3.10.
  • The agent-usage image. benchmarks/agent_usage/image/Dockerfile installs pip 26.2.2 from a URL with a checksum, then sets PIP_USE_DEPRECATED=legacy-certs on its pip install line.
    • Remove when the image's Debian bookworm base ships a ca-certificates without G3 (for legacy-certs) and pip 26.2.2 or later (for the pip install). As of 2026-10-22 Debian had no fix. Also reword the G3 comment at the top of the Dockerfile.
  • G3 checks in the VS Code publish. vscode--citry--publish.yml has three node -e steps that fail when the installed Node.js still trusts G3. They guard the NODE_VERSION pin given to setup-node, not Playwright.
    • Remove when we no longer want a guard against someone pinning an older Node.js. A reasonable point is once every maintained Node.js line ships without G3. Keep the NODE_VERSION pin itself, and reword its G3 comment.

Not ours to remove

  • The GitHub actions that download Python, Node.js, and pnpm (setup-python, setup-node, pnpm/action-setup) run on the runner's own Node.js. It trusts G3 until GitHub ships a runner with Node.js 24.22.1 or later. There is nothing in the repo to remove; the blog post mentions it.
  • PyO3/maturin-action in py--citry-core--publish.yml downloads maturin without checking a checksum. Replacing it is a permanent change, not a workaround, so it belongs in its own issue.

🤖 Generated with Claude Code

Activity

  1. JuroOravec commented on Oct 24, 2026

    @JuroOravec
    MemberAuthor

    Status check on 2026-10-24. #339 removes the three items whose condition is met.

    Met, removed in #339

    • Playwright downloads use the system list. Playwright 1.64.1 (PyPI, 2026-10-22) bundles Node.js 24.22.1. Evidence: playwright-python's NODE_VERSION file at v1.64.1, and the wheel's node binary reports v24.22.1.
    • The drop-emsign-g3 action. It follows from the Playwright item.
    • The VS Code Node G3 checks. Node.js 22.23.4, 24.22.1 and 26.12.1 are released (2026-10-20 and 2026-10-21), so every maintained Node.js line has a fixed release.

    Not met yet

    • PIP_USE_DEPRECATED=legacy-certs. The ubuntu-24.04 runner image 20261012.334.1 still ships ca-certificates 20260601~24.04.1. A job on 2026-10-24 still upgraded it to 20260816ubuntu0.24.04.1. Image 20261023.334.3 is in pre-release, and I could not see its ca-certificates version.
    • PIP_WHEEL. Python 3.10.22 bundles pip 23.0.1. Once chore: drop Python 3.10 support #336 drops 3.10, the jobs move to 3.11, and 3.11.17 bundles pip 24.0, which is also too old. 3.14.9 already bundles 26.2.2. So this item stays until the jobs only use a Python that bundles pip 26.2.2 or later.
    • The agent-usage image. Debian bookworm still has ca-certificates 20230311+deb12u1.

    Deferred on purpose

    • Benchmark runners. benchmarks/web/runner and benchmarks/errors/runner still pin Playwright 1.62.0. Moving them changes the benchmark browser (Chromium 151 to 156), so the move should come with the next benchmark run.
  2. added
    next-sprint
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions