local-static-provisioner/2.8.0-r6: cve remediation - #77704
Conversation
📦 Build Failed: Missing Dependency
Build Details
Root Cause Analysis 🔍The k8s.io/client-go module version v0.29.14 (which replaced v1.5.2) does not contain the required package k8s.io/client-go/features that is being imported through the dependency chain. This indicates a version compatibility issue where the Go module dependency resolution is finding an incompatible version of k8s.io/client-go that lacks the expected package structure. 🔍 Build failure fix suggestionsFound similar build failures that have been fixed in the past and analyzed them to suggest a fix: Similar PRs with fixesSuggested ChangesFile: local-static-provisioner.yaml
Replacement: Content: Click to expand fix analysisAnalysisThe similar fix shows a pattern of resolving Kubernetes module compatibility issues by adding explicit version constraints in the go/bump step. In the fixed example, when k8s.io/apiserver@latest (v0.33.4) was missing required packages, the solution was to add a "replaces" directive that pinned k8s.io/apiserver to an older, compatible version (v0.31.12). This approach downgrades problematic modules to versions that contain the required package structure while maintaining overall compatibility. Click to expand fix explanationExplanationThe current build failure occurs because k8s.io/client-go@v0.29.14 (which replaced v1.5.2) doesn't contain the k8s.io/client-go/features package. Following the pattern from the similar fix, we need to explicitly pin k8s.io/client-go to a compatible version. Version v0.31.12 is chosen to align with the existing k8s.io/kubernetes@v1.31.12 dependency, ensuring version consistency across the Kubernetes ecosystem components. The k8s.io/client-go/features package was introduced in newer versions of the client-go library, so using v0.31.12 (which is newer than v0.29.14) should contain the required package while maintaining compatibility with other Kubernetes dependencies. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
|
Upstream have a PR to mitigate this: kubernetes-sigs/sig-storage-local-static-provisioner#511 But no new releases yet, maybe we should do cherry-pick? |
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-4mx5-8jmv-wf2q has the latest event type of "pending-upstream-fix" View with: 🔀 v2 advisory logic would not have closed this PR: Found 6 advisories, but 2 of them are not resolved (CGA-5wfr-x5h3-pjqj, CGA-j8c3-8pww-h7gr). |
b240a8e to
ffd65a1
Compare
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-4mx5-8jmv-wf2q has the latest event type of "pending-upstream-fix" View with: 🔀 v2 advisory logic would not have closed this PR: Found 4 advisories, but 2 of them are not resolved (CGA-c8fg-pghp-425f, CGA-6cjf-m5fg-6rmx). |
<!--ci-cve-scan:must-fix: GHSA-4x4m-3c2p-qppc-->
Signed-off-by: Dentrax <16493751+Dentrax@users.noreply.github.com>
Signed-off-by: Dentrax <16493751+Dentrax@users.noreply.github.com>
ffd65a1 to
f51ee33
Compare
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-4mmj-8hf8-4vv5 has the latest event type of "FIXED" View with: |
local-static-provisioner/2.8.0-r6: fix GHSA-4x4m-3c2p-qppc
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/local-static-provisioner.advisories.yaml
"Breadcrumbs" for this automated service
Inspected git repositories: https://github.com/kubernetes-sigs/sig-storage-local-static-provisioner@v2.8.0