kubevela/1.10.6-r0: cve remediation - #77700
Conversation
📦 Build Failed: Missing Dependency
Build Details
Root Cause Analysis 🔍The Go module dependency resolution failed because k8s.io/apiserver version 0.35.0 does not contain the required package k8s.io/apiserver/pkg/util/version that is being imported by the kubevela project through its dependency chain. This is likely due to a breaking change or package restructuring in the k8s.io/apiserver module where the util/version package was removed or moved to a different location. 🔍 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: kubevela.yaml
Replacement: Content: Click to expand fix analysisAnalysisThe similar fix shows a pattern where k8s.io/apiserver dependency issues are resolved by explicitly pinning the k8s.io/apiserver module to a specific compatible version using the 'replaces' directive in the go/bump step. In the example fix, k8s.io/apiserver was replaced with version v0.31.12 to ensure compatibility when the latest version (v0.33.4 in that case, v0.35.0 in current case) lacks the required package. This approach bypasses the problematic latest version and uses a known working version that contains the necessary packages. Click to expand fix explanationExplanationThis fix addresses the root cause by explicitly constraining k8s.io/apiserver to version v0.31.12, which is known to contain the required package k8s.io/apiserver/pkg/util/version. The current failure occurs because the latest version v0.35.0 has restructured or removed this package. By using the 'replaces' directive in go/bump, we override Go's module resolution to use the compatible version instead of the problematic latest version. The multiline format (|-) is used to maintain consistency with the existing replaces structure and allows for clean addition of multiple replace directives. Click to expand alternative approachesAlternative Approaches
Was this comment helpful? Please use 👍 or 👎 reactions on this comment. |
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-xgvp-j5mw-pm6p has the latest event type of "pending-upstream-fix" View with: |
c22bc61 to
415f7da
Compare
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-xgvp-j5mw-pm6p has the latest event type of "pending-upstream-fix" View with: |
<!--ci-cve-scan:must-fix: GHSA-5xqw-8hwv-wg92-->
415f7da to
df0114a
Compare
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-p58q-wx6f-wh9r has the latest event type of "FIXED" View with: |
fix(ingress-nginx-controller): drop obsolete libcrypt1 runtime depends Export: 5bc00bca20b83e8d2d9f88cb130b3d79b902cb09
kubevela/1.10.6-r0: fix GHSA-5xqw-8hwv-wg92
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml
"Breadcrumbs" for this automated service
Inspected git repositories: https://github.com/kubevela/kubevela@v1.10.6