GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Tags · robusta-dev/krr
Tags
v1.31.3Fix release builds: retired macos-13 runner, crashing binaries, Homeb… …rew update chain (#560) ## Summary Every release since v1.29.0 hung for 24h and was cancelled, and every binary since v1.30.0 crashes on startup. The Homebrew formula is still on v1.28.0. **1. Retired `macos-13` runner.** `build (macos-13)` never got a runner and was cancelled after 24h, which skipped `check-latest`, the hash jobs and `update-formula`. The Intel binary is now built on `macos-15-intel`. It still runs on macOS 10.13+ (highest `minos` across the bundle's Mach-O files), because minimum versions come from the prebuilt Python, wheels and PyInstaller bootloader, not the runner. The Intel asset is now `krr-macos-15-intel-<tag>.zip`; nothing references the old name. **2. Binaries crash since v1.30.0.** ``` AttributeError: module 'pkg_resources' has no attribute 'NullProvider' [PYI-...:ERROR] Failed to execute script 'pyi_rth_pkgres' due to unhandled exception! ``` #545 bumped setuptools 80.9.0 → 83.0.0 (CVE fixes). setuptools 83 no longer ships `pkg_resources`, but upgrading the runner's preinstalled setuptools leaves an empty `pkg_resources/` dir. PyInstaller bundles it as a namespace package plus its `pyi_rth_pkgres` hook, which crashes. Builds now pass `--exclude-module pkg_resources` (nothing krr uses needs it; setuptools stays on 83). A `Smoke test the binary` step runs `krr version` after each build. **3. Homebrew update chain.** - Hash jobs use `$GITHUB_OUTPUT` instead of the deprecated `::set-output`. - `if: needs.check-latest.outputs.IS_LATEST` was always true (job outputs are strings, and "false" is truthy). Now compares to `'true'`. - `excludes: prerelease,draft`: get-latest-release v0.7.0 splits on `,` without trimming, so `" draft"` never excluded drafts. - New `brew-test` job (macOS + Linux): installs the new formula from a local tap pointed at the zips just built, runs `brew test`, and checks `krr version` prints the tag. `update-formula` needs it, so a formula that doesn't install is never pushed. - `update-formula` fails instead of writing a missing or malformed sha256; the commit message includes the tag (`TAG_NAME` was never set there). **4. Dry-run support.** Release-only steps (asset upload, Apple certificate, tap push) are guarded by `github.event_name == 'release'` and the tag comes from `RELEASE_TAG`, so the workflow can run as a dry run on a PR. The `pull_request` trigger was used to test this PR and then removed; add it back to dry-run future workflow changes. **5. Hardening.** `permissions: contents: read` by default, `contents: write` only for `build`. `persist-credentials: false` on the build and `brew-test` checkouts. `actions/checkout` v4, `actions/setup-python` v5 (actionlint flagged v2). ## Tests performed - Published macOS (arm64) zips, `krr version`: v1.28.0 and v1.29.0 work; v1.30.0, v1.31.0, v1.31.1, v1.31.2 crash with the error above. - Local PyInstaller build (arm64 macOS, Python 3.11): clean venv works; with an empty `site-packages/pkg_resources/` it crashes with the exact CI error; `--exclude-module pkg_resources` fixes it. - `actionlint` passes. - Dry run 41858869705: all four builds got runners (incl. `macos-15-intel`) and smoke tests printed `pr-560`; hash outputs match the downloaded artifacts; `update-formula` printed the expected diff; push, asset upload and certificate steps skipped; homebrew-krr untouched; the CI-built macOS zip runs `krr version` / `krr simple --help` locally. - Dry run 41864839078: `brew-test` installed the formula on macOS and Linux (`krr version: pr-560`). `update-formula` was not scheduled in that run due to the GitHub Actions incident. - Dry run 41867739161 (commit 303f31f, last one before removing the PR trigger): all jobs passed; smoke tests and `brew-test` on macOS and Linux printed `pr-560`; `update-formula` printed the expected diff and skipped the push. - `otool -l` on the `macos-15-intel` build: highest minimum macOS across all Mach-O files is 10.13. - Not covered: release-only steps (asset upload, certificate import, tap push) will first run on the next release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]> v1.31.2ROB-1738 Drop Pillow and bump certifi to fix CVEs (#557) ## Summary - **Pillow** (29 HIGH/CRITICAL CVEs, e.g. CVE-2026-112390, CVE-2026-112393, CVE-2026-112403; fixed only in 13.0.0, which needs Python >=3.11): krr never imports it. It came in through `prometrix` 0.2.11 (`pillow <13`) and `prometheus-api-client` 0.5.3 (matplotlib). `prometrix` 0.2.12 with `prometheus-api-client` ^0.7 drop it, so the pin is removed. matplotlib, contourpy, cycler, fonttools, kiwisolver, pyparsing and httmock leave the lock too. Closes the matching dependabot alerts and the `devel/krr` registry findings. - **certifi** 2024.2.2 → 2026.10.23 (floor `>=2026.10.18` in `pyproject.toml`) for GHSA-6q48-6c7w-9gw2 (CRITICAL). - `poetry.lock` regenerated with Poetry 1.8.5 (`--no-update`); `requirements.txt` edited to match. Linear: [ROB-1738](https://linear.app/robusta/issue/ROB-1738) ## Evidence - `trivy fs` HIGH/CRITICAL on `poetry.lock` and `requirements.txt`: 29 each (pillow ×28 findings, certifi) before, 0 after. - Docker image built and scanned: no Python-package findings. 10 Debian OS findings remain (libsystemd0, ncurses, login); out of scope. - `pytest tests`: 55 passed. Image smoke test: `import robusta_krr, prometrix, prometheus_api_client` and `krr.py simple --help` work. ## Not tested - Against a live Prometheus: `prometheus-api-client` moves 0.5.3 → 0.7.2 and `prometrix` 0.2.11 → 0.2.12, and the unit tests mock the client. - Registry scan of a PR image: krr's CI only pushes an image on release tags, and no registry key was available. - Python 3.10 resolution beyond `poetry check --lock`. --- _Generated by [Claude Code](https://claude.ai/code/session_016rSf6CWU6hjeq3e3RobXZN)_ --------- Signed-off-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]> v1.31.1ROB-1636 Bump urllib3 to 2.8.0 and drop pip from the image to fix CVEs ( #556) ## Summary - **urllib3** 2.7.0 → 2.8.0 in `pyproject.toml`, `poetry.lock`, `requirements.txt` and `enforcer/requirements.txt`. Fixes CVE-2026-97687 and CVE-2026-97689 (High). Closes dependabot alerts #122, #123, #125, #126, #128 and #129, and the matching Artifact Registry findings on `devel/krr`. - **Dockerfile**: pip is uninstalled once the requirements are installed. pip 26.2.1, the latest release, vendors its own urllib3 2.7.0, so the dependency bump alone left the CVEs in the image. krr never calls pip at runtime. The pip upgrade, requirements install and uninstall run in one `RUN`, so the upgraded pip never lands in an image layer (CodeRabbit's finding, now fixed). Linear: [ROB-1636](https://linear.app/robusta/issue/ROB-1636) ## Verification - `poetry lock --no-update` with Poetry 1.8.5: only urllib3 changes in the lock. `poetry check --lock` passes. - `pytest`: 55 passed. - Built the image for `linux/amd64` and scanned it with Trivy (Docker Scout isn't available in the sandbox). The Python packages have no HIGH or CRITICAL findings. Before this change the image showed urllib3 2.7.0 (pip's vendored copy) and msgpack 1.1.2. `docker history` shows no separate pip layer. - Built for `linux/arm64` under QEMU (from the commit before the single-`RUN` change, so the same packages): it runs on `aarch64`, Trivy reports the same results as amd64, urllib3 is 2.8.0, and pip is gone. - In both images `krr.py simple --help` works. - Not tested: a rescan in Artifact Registry. The Vanta finding clears only after CI publishes the image. Out of scope: - `gcc-14` CVE-2026-95619 (Low, no Debian fix) and 10 unfixed Debian HIGHs, unchanged from `main`. - The `enforcer` image installs pip the same way, but Vanta has not flagged it. - The enforcer README's "Python 3.9+" was already wrong before this PR. It's tracked in [ROB-1650](https://linear.app/robusta/issue/ROB-1650). --- _Generated by [Claude Code](https://claude.ai/code/session_01Fq7hqRqj2kshg8M2sFpN7h)_ --------- Signed-off-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]> v1.31.0ROB-1574 Bump idna to 3.15 and drop bundled pip wheel to fix CVEs (#555) ## Summary - **idna** 3.7 -> 3.15 in `pyproject.toml`, `poetry.lock` and `requirements.txt`: CVE-2026-45409 (Medium). Closes dependabot alerts #82, #83, #84. - **Dockerfile**: remove ensurepip's bundled `pip-25.0.1-py3-none-any.whl` from `python:3.12-slim`. The installed pip is already upgraded to 26.x, but the leftover wheel is what Artifact Registry flags on `devel/krr` for CVE-2025-8869, CVE-2026-3219, CVE-2026-6357, CVE-2026-8643 (Medium). ## Verification - `poetry lock --no-update` (Poetry 1.8.5): only idna changes in the lock - `pytest`: 55 passed - Built the image (`linux/arm64`): idna 3.15, pip 26.2.1, `ensurepip/_bundled/` empty, `import robusta_krr` and `krr.py --help` work - `grype` on the new image: no matches for idna, pip or any of the CVEs above (the current `devel/krr:fix_cves_2` image shows GHSA-65pc-fj4g-8rjx on idna 3.7) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: [email protected] <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> v1.30.0Fix security vulnerabilities in libattr1 and libacl1 (#548) ## Summary This change addresses security vulnerabilities in the `libattr1` and `libacl1` packages by upgrading them to fixed versions from the Debian unstable repository. ## Key Changes - Added a new RUN instruction in the Dockerfile to upgrade `libattr1` (fixes CVE-2026-54371) and `libacl1` (fixes CVE-2026-54369 and CVE-2026-54370) - Configured the Debian unstable repository as a low-priority source to pull only the fixed versions of these two packages without upgrading other dependencies - Added version verification checks to ensure the installed versions meet the minimum fixed versions (libattr1 >= 1:2.6.0 and libacl1 >= 2.4.0) - Cleaned up temporary apt configuration files after installation ## Implementation Details - The unstable repository is pinned with a priority of 100 (very low) to prevent unintended upgrades of other packages - Temporary apt sources and preferences files are removed after the upgrade to keep the image clean - Version checks using `dpkg --compare-versions` validate that the security fixes were successfully applied - This approach is necessary because Trixie (the current Debian stable) does not yet have these security fixes available https://claude.ai/code/session_01H47V4EqDNXhaiCMY8iALhS --------- Co-authored-by: Claude <[email protected]> v1.29.0ROB-631: krr-enforcer CVE fixes (starlette + urllib3 + openssl) (#540) Sub-issue [ROB-631](https://linear.app/robusta/issue/ROB-631) of ROB-595. Fixes the CVEs flagged for `devel/krr-enforcer` in the 2026-07-14 Vanta scan. ## Problem The 0.3.8 `enforcer/requirements.txt` *appeared* to resolve these but did not: - `urllib3==2.6.3` is still vulnerable (CVE-2026-44431/44432). - `fastapi==0.121.3` caps `starlette<0.51.0`, so the starlette CVEs could never be pulled in. ## Fix | Package | From | To | CVE | |---|---|---|---| | urllib3 | 2.6.3 | 2.7.0 | CVE-2026-44431, CVE-2026-44432 | | fastapi | 0.121.3 | 0.139.0 | (drops the `starlette<0.51` cap) | | starlette | (capped 0.50) | 1.3.1 | CVE-2026-48818, 54283, 48710, 48817, 54282 | | pydantic | 2.6.1 | 2.13.4 | required by fastapi 0.139.0 | Base image already rebuilt on Alpine 3.24 (openssl/libcrypto3 patched) in the prior 0.3.8 commit. ## Validation - `docker scout cves` on the rebuilt `devel/krr-enforcer:0.3.8`: **no vulnerable packages detected**. - Deployed to `avi-test-cluster2` (`monitoring/krr-enforcer-krr-enforcer`) — pod healthy, connected to the Robusta platform (stg), webhook server up, owners loaded. - App imports verified with the upgraded fastapi/starlette/pydantic stack. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> Co-authored-by: moshemorad <[email protected]> v1.28.0[ROB-2885] CVE patches (#493) CVE-2025-66418 CVE-2025-66471 the git diff for requirements is off updated prometrix, boto3 botocore and removed importlib-resources since its no longer needed by newer versions of boto3/botocore/prometrix v1.27.0GroupedJobs + Prometheus credentials auto refresh (#478) Added support for job grouping, and refreshing prometheus credentials due to irsa token timeout. Currently testing credential refresh. <img width="1640" height="882" alt="Screenshot 2025-10-06 at 13 04 05" src="https://github.com/user-attachments/assets/a75b976d-7e68-40ae-8ba3-eb1a74f38cfe" /> PreviousNext
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |