Skip to content

fix(deps): update kube-client to 5.2.0 on Rust 1.95 - #6000

Merged
SDAChess merged 2 commits into
ai-openshell:mainfrom
alangou:fix/dependency-maintenance-20261126/alangou
Nov 26, 2026
Merged

SDAChess merged 2 commits into
ai-openshell:mainfrom
alangou:fix/dependency-maintenance-20261126/alangou

Conversation

@alangou

@alangou alangou commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Update kube-client from 5.0.0 to 5.2.0 to address RUSTSEC-2026-0600 (GHSA-hm5x-4x3m-4w8m). The upstream fix limits trust to the configured cluster CA when the Kubernetes client uses its OpenSSL connector. OpenShell uses the Rustls connector. Upstream advisory

Related Issue

The upstream advisory was detected by the root cargo-deny check.

Changes

  • Raise the product’s minimum supported Rust version from 1.94 to 1.95 and update the prerequisite in the contributor guide. The build toolchain was already pinned to 1.95.0. Independent tools keep their own minimum.
  • Update the exact kube and kube-runtime pins and resolve the 5.2.0 family in all 11 affected Cargo lockfiles. The other two workspaces do not depend on kube. The updated runtime uses parking_lot 0.13, which requires corresponding locking, libc, and smallvec updates.
  • Remove the temporary RUSTSEC-2026-0600 exception introduced by the first commit on this branch. The resulting advisory policy matches the base.
  • Retain the exception for unmaintained chrono 0.4.45 (RUSTSEC-2026-0543). Eight lockfiles still resolve it. Remove the exception once OpenShell and its transitive dependencies have migrated and all covered graphs pass. Chrono advisory

Release Notes

Building OpenShell from source now requires Rust 1.95 or newer.

Testing

Tested commit 63e6d541070cc9019e6bb11dd820270d5e748f57 against base df18dc4ef504b9a6f66ceacda11dcdaff123c42c.

  • All 13 tracked Cargo lockfiles pass locked resolution and the six alignment checks. The root cargo-deny task, nine crypto-policy fixtures and 12 independent advisory scans pass. Three new duplicate-version warnings reflect the coexistence of the two parking_lot, parking_lot_core and lock_api release lines.
  • The upstream OpenSSL regression test passed on 5.2.0 with OpenSSL 3.5.7. It verified a real TLS handshake accepts the configured cluster CA and rejects a certificate rooted only in the system store. The 5.2.0 client also forwarded all four Kubernetes impersonation headers in a local comparison.
  • Rust formatting, workspace compilation and the full Clippy task passed. The OpenSSL backend also compiled with the tls-kube feature.
  • The complete mise run test:rust task passed with Rust 1.95.0 and Z3 5.3.2. It covered the Kubernetes compute and Secrets drivers, the server, both workspace test phases and the standalone nextest suites. The conformance inventory matched all 77 entries.
  • The Kubernetes Secrets credential-driver E2E passed against a disposable k3d cluster using gateway, sandbox and supervisor images built from this change. The provider lifecycle test passed with zero skips.
  • Remote E2E passed on the first attempt for 63e6d54, including the Podman additional CA test and IPv6 K3s HA conformance. GitHub Actions run

Checklist

  • Follows Conventional Commits
  • Commits are signed and include DCO sign-offs

The fixed 5.2 client needs Rust 1.95. The 4.2 backport loses kubeconfig impersonation headers that the current client forwards. Keep the advisory visible here while OpenShell uses the rustls connector.

Signed-off-by: Adrien Langou <alangou@nvidia.com>
@alangou alangou added topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention. area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. labels Nov 26, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 26, 2026
@github-actions
github-actions Bot requested review from FrostGod and drew November 26, 2026 10:19
@alangou alangou added the test:e2e Requires end-to-end coverage label Nov 26, 2026
SDAChess
SDAChess previously approved these changes Nov 26, 2026
Raise the minimum compiler for the product and the packages that build against it to the Rust version already pinned in CI. Update the exact kube family constraints and regenerate the eleven affected lockfiles.

Remove the RUSTSEC-2026-0600 exception now that kube-client enforces the configured cluster CA on the OpenSSL connector.

Signed-off-by: Adrien Langou <alangou@nvidia.com>
@alangou alangou changed the title chore(deps): defer kube-client advisory on Rust 1.94 fix(deps): update kube-client to 5.2.0 on Rust 1.95 Nov 26, 2026
@SDAChess
SDAChess enabled auto-merge November 26, 2026 12:27
@SDAChess
SDAChess added this pull request to the merge queue Nov 26, 2026
Merged via the queue into ai-openshell:main with commit b8b6d6f Nov 26, 2026
164 of 165 checks passed
wseaton pushed a commit to wseaton/OpenShell that referenced this pull request Nov 28, 2026
* chore(deps): defer kube-client advisory on Rust 1.94

The fixed 5.2 client needs Rust 1.95. The 4.2 backport loses kubeconfig impersonation headers that the current client forwards. Keep the advisory visible here while OpenShell uses the rustls connector.

Signed-off-by: Adrien Langou <alangou@nvidia.com>

* fix(deps): update kube-client to 5.2.0 on Rust 1.95

Raise the minimum compiler for the product and the packages that build against it to the Rust version already pinned in CI. Update the exact kube family constraints and regenerate the eleven affected lockfiles.

Remove the RUSTSEC-2026-0600 exception now that kube-client enforces the configured cluster CA on the OpenSSL connector.

Signed-off-by: Adrien Langou <alangou@nvidia.com>

---------

Signed-off-by: Adrien Langou <alangou@nvidia.com>
(cherry picked from commit b8b6d6f)
Signed-off-by: Will Eaton <weaton@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage topic:kubernetes Kubernetes operators, CRDs, deployment controllers, and native Kubernetes API integration. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants