Skip to content

fix(deps): kube 5.2.0 for RUSTSEC-2026-0600 (#1237) - #1238

Merged
athvin merged 2 commits into
mainfrom
fix/rustsec-2026-0600-kube
Nov 25, 2026
Merged

athvin merged 2 commits into
mainfrom
fix/rustsec-2026-0600-kube

Conversation

@athvin

@athvin athvin commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Closes #1237

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

kube =5.0.0 → =5.2.0 in er-k8s, and the workspace rust-version 1.89 → 1.95.

Why

main's cargo-deny is red since 029c874 (run 45602830203) on RUSTSEC-2026-0600. With the openssl-tls connector, a configured cluster CA is trusted in addition to OpenSSL's default store; fixed in kube-client 5.2.0. The advisory was published after the last green run. That diff was innocent, and this gate fails every backend PR until fixed. Its own PR, per the supply-chain rule.

Not exposed: er-k8s builds kube with default-features = false and rustls-tls, so the vulnerable connector is never compiled in.

MSRV: kube 5.2.0 requires parking_lot 0.13, whose core needs Rust 1.95. Nothing verifies the floor (rust-toolchain.toml is stable, and so is CI). The build image is rust:1.99.0. So the declared value moves to the truth rather than staying a floor the lockfile already violates. The generated crate-map.md follows.

Proof

cargo deny check advisories licenses bans sources: all ok (it was advisories FAILED on main). make check: 1,177 passed, 0 failed. The MSRV raise turned on clippy's version-aware duration_suboptimal_units at two sites, Duration::from_secs(900) → from_mins(15) (same value).

Risk & rollback

A Kubernetes client minor bump, used only by the dispatcher's pod launcher, whose tests run in make check. The live check is the dispatcher launching a runner pod after deploy. Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:d1e3b2dc-3174-4091-9c30-c08fc4820306 on Mac · 2026-11-25T18:32:45Z

  • main is green with this change on it: merge 2a7a493a. Push runs rust (with cargo-deny now passing), frontend, images, infra and devcontainer all succeeded, which turned main green after the RUSTSEC-2026-0600 red on 029c874b.
  • images: built and succeeded for 2a7a493a.
  • deploy converged. Process proof was read once the AWS session was restored (2026-11-26). The live colour in dev (ci/web-api-green-5d5f9c8844-88dxb, logged "er-server listening" at 01:36:40Z) and prod (app/web-api-blue-7544598cbb-8rjth, at 01:51:39Z) both run er-api@sha256:5d993716…, built from bae09b2e, which contains this merge (git merge-base --is-ancestor 2a7a493a bae09b2e holds). (Earlier note: run 45608358850 (DEPLOY_SHA: 2a7a493a) succeeded; the deploy workflow succeeded, but the AWS SSO session (er-platform / er-prodadmin) expired at 12:10Z before the live pods' logs could be read. A workflow conclusion is not process proof. To be ticked after aws sso login.)
  • the push-only surface: deploy is green. drift and kind were already red on schedule before feat(api): typed response structs, batch 3 — reviews+merges (#1193) #1202.
  • the board card: RUSTSEC-2026-0600: kube-client 5.0.0 fails cargo-deny; bump kube to 5.2.0 #1237 was closed by fix(deps): kube 5.2.0 for RUSTSEC-2026-0600 (#1237) #1238 through the merge automation.
  • follow-ups: none.
  • what was learned is written down: the commit message records that raising rust-version turns on clippy's version-aware lints (duration_suboptimal_units). Memory: see supply-chain-gates-are-time-dependent.

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

bmoore813 and others added 2 commits November 25, 2026 03:27
Not exposed (rustls-tls only, the advisory is the openssl-tls connector),
but cargo-deny blocks main. kube 5.2.0 pulls parking_lot 0.13, which needs
Rust 1.95; nothing verifies the floor and the build image is 1.99.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ptimal_units (#1237)

Same value (900s). Clippy's MSRV-aware lints now see from_mins (stable 1.91).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit 2a7a493 into main Nov 25, 2026
44 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 25, 2026 11:43 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — a859ab27 Deployed Nov 25, 2026 by athvin via remove closed PR previews #54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RUSTSEC-2026-0600: kube-client 5.0.0 fails cargo-deny; bump kube to 5.2.0

2 participants