docker: remove pip from the runtime image, release 0.8.1 #18

Merged
tim merged 4 commits from chore/weekly-maintenance-2026-11-02 into develop 2026-11-02 10:35:36 +00:00
Owner

Weekly maintenance.

Findings (Trivy, fresh docker build --pull, HIGH/CRITICAL with a fix): 5, all inside pip's own vendored libraries in the image: msgpack 1.1.2 (CVE-2026-114613, GHSA-6v7p-g79w-8964), urllib3 2.7.0 (CVE-2026-97687, CVE-2026-97689), setuptools 70.3.0 (CVE-2025-47273). Our Python dependencies were already current (pip list --outdated empty, pip-audit clean).

Change: pip is not needed at runtime, so it is uninstalled in the builder venv and in the final stage. No scanner suppression.

Result: Trivy HIGH/CRITICAL fixable 5 -> 0. Imports checked in the built image. Local ruff, mypy and all 345 tests pass.

Version 0.8.1 + CHANGELOG entry, so the release flow builds the new image. Release MR develop -> main follows once this is merged and green.

🤖 Generated with Claude Code

Weekly maintenance. **Findings (Trivy, fresh `docker build --pull`, HIGH/CRITICAL with a fix):** 5, all inside pip's own vendored libraries in the image: msgpack 1.1.2 (CVE-2026-114613, GHSA-6v7p-g79w-8964), urllib3 2.7.0 (CVE-2026-97687, CVE-2026-97689), setuptools 70.3.0 (CVE-2025-47273). Our Python dependencies were already current (`pip list --outdated` empty, pip-audit clean). **Change:** pip is not needed at runtime, so it is uninstalled in the builder venv and in the final stage. No scanner suppression. **Result:** Trivy HIGH/CRITICAL fixable 5 -> 0. Imports checked in the built image. Local ruff, mypy and all 345 tests pass. Version 0.8.1 + CHANGELOG entry, so the release flow builds the new image. Release MR `develop` -> `main` follows once this is merged and green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Merge pull request 'Fix delete_config payloads, add remove_registry_entity (0.6.0)' (#9) from develop into main
All checks were successful
Auto Tag Release / Tag release from pyproject.toml version (push) Successful in 4s
Security / Security scan (push) Successful in 47s
Test & Build / Lint and test (push) Successful in 28s
Test & Build / Build & Push Docker Image (push) Successful in 18s
Test & Build / Create Forgejo Release (push) Successful in 3s
b282d0d152
Reviewed-on: #9
Merge pull request 'Release 0.7.0' (#13) from develop into main
All checks were successful
Auto Tag Release / Tag release from pyproject.toml version (push) Successful in 3s
Security / Security scan (push) Successful in 46s
Test & Build / Lint and test (push) Successful in 27s
Test & Build / Build & Push Docker Image (push) Successful in 16s
Test & Build / Create Forgejo Release (push) Successful in 2s
6d141ad811
Merge pull request 'Release 0.8.0' (#17) from develop into main
All checks were successful
Auto Tag Release / Tag release from pyproject.toml version (push) Successful in 4s
Security / Security scan (push) Successful in 51s
Test & Build / Lint and test (push) Successful in 30s
Test & Build / Build & Push Docker Image (push) Successful in 4m53s
Test & Build / Create Forgejo Release (push) Successful in 3s
7726e0be62
docker: remove pip from the runtime image, release 0.8.1
All checks were successful
Security / Security scan (pull_request) Successful in 47s
Test & Build / Lint and test (pull_request) Successful in 26s
Test & Build / Build & Push Docker Image (pull_request) Has been skipped
Test & Build / Create Forgejo Release (pull_request) Has been skipped
39216e0292
pip's vendored msgpack, urllib3 and setuptools were reported as fixable HIGH
findings by Trivy on the freshly built image. pip is not needed at runtime, so
it is uninstalled in the builder venv and in the final stage. Dependencies
were already current. Trivy HIGH/CRITICAL fixable: 5 -> 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tim merged commit 87c6230276 into develop 2026-11-02 10:35:36 +00:00
tim deleted branch chore/weekly-maintenance-2026-11-02 2026-11-02 10:35:36 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
tim/hass-mcp!18
No description provided.