kubevela/1.10.6-r0: cve remediation - #77699
Conversation
🔢 Build Failed: Dependency Version Mismatch
Build Details
Root Cause Analysis 🔍The k8s.io/apiserver module version v0.35.0 does not contain the required package k8s.io/apiserver/pkg/util/version that is being imported by the application code. This indicates either the package was moved/removed in this version of the apiserver module, or there's an incompatibility between the module version and 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: kubevela.yaml
Replacement: Content: Click to expand fix analysisAnalysisThe similar fixed failure shows a pattern where k8s.io/apiserver module versions (v0.33.4 in the example, v0.35.0 in current case) do not contain the expected package k8s.io/apiserver/pkg/util/version. The fix involved adding a specific version constraint using the 'replaces' directive to pin k8s.io/apiserver to an earlier compatible version (v0.31.12 in the example). This suggests that newer versions of k8s.io/apiserver have restructured or removed the pkg/util/version package, requiring a downgrade to a stable version that still contains this package. Click to expand fix explanationExplanationThe fix works by explicitly constraining the k8s.io/apiserver module to version v0.31.12, which is known to contain the required k8s.io/apiserver/pkg/util/version package. The current failure occurs because kubevela's dependency resolution is picking up v0.35.0 of k8s.io/apiserver, which has either moved or removed the pkg/util/version package. By adding the version constraint in the 'replaces' section, we force Go's module system to use the older, compatible version instead of the latest one. This approach follows the exact same pattern used in the similar fix, where the same package was constrained to the same version (v0.31.12) to resolve an identical missing package error. 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-3frq-h5v4-84rq has the latest event type of "pending-upstream-fix" View with: |
014b5d6 to
aadd716
Compare
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-3frq-h5v4-84rq has the latest event type of "pending-upstream-fix" View with: |
<!--ci-cve-scan:must-fix: GHSA-4hfp-h4cw-hj8p-->
aadd716 to
871fdf9
Compare
|
This vulnerability remediation is stale and no longer needed. 👋 Advisory CGA-cmw4-qcf2-frpr has the latest event type of "FIXED" View with: |
kubevela/1.10.6-r0: fix GHSA-4hfp-h4cw-hj8p
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