Skip to content

v0.5.2

Choose a tag to compare

@orenlab orenlab released this 21 Oct 07:12
f69d3cb

Summary

Security patch release 0.5.2 for the supported 0.5 stable line. All 0.5.1 users should upgrade.

  • eMudhra CA incident: the 0.5.1 image trusts the emSign ECC Root CA - G3 root, whose intermediate CA keys were compromised (USN-8944-1, GHSA-6q48-6c7w-9gw2, GHSA-hq85-5cpj-mr62). An attacker on the network path could intercept the bot's TLS connections to Docker Hub and InfluxDB (system trust store) and to Telegram and GitHub (certifi). 0.5.2 removes that trust:
    • ca-certificates 20260816ubuntu0.26.04.1 in the runtime image;
    • certifi 2026.10.19;
    • uv 0.13.4 for the image build.
  • Build-time trust check: image builds now fail if uv, the system trust store, certifi or any other CA bundle in the image still trusts the root, if ca-certificates is older than the fixed package, or if TLS verification is disabled. A cached layer with the old trust store is never reused.
  • Dependencies: fastapi 0.156.4, pydantic-settings 2.16.1, cachetools 7.2.4, and a refreshed uv.lock.
  • Release: project version bumped to 0.5.2, and config_version: 0.5.2 added.

No bot behaviour, settings, image user, groups or entrypoint changed.

Upgrade notes

  • Docker: pull orenlab/pytmbot:0.5.2, or 0.5 / stable once the release workflow has finished, and recreate the container.
  • Config version: set config_version: "0.5.2" to match the running app version. 0.5.1 configs still load, and auto-migration handles the mismatch on startup.
  • Local development: uv 0.13.4 or later is required (required-version in pyproject.toml).
  • End of life: 0.5.1 is end-of-life as of this release.

Full Changelog: v0.5.1...v0.5.2