chore(deps): upgrade vulnerable dependencies and fix MySQL reserved-word query#2601
Merged
yangkaa merged 2 commits intoJun 13, 2026
Conversation
Upgrade x/crypto v0.49.0->v0.52.0, x/net v0.52.0->v0.55.0, go-git/v5 v5.16.0->v5.17.1, helm/v3 v3.16.0->v3.18.5, moby/spdystream v0.4.0->v0.5.1, compose-go/v2 v2.1.0->v2.4.1, cloudflare/circl v1.6.1->v1.6.3. Fixes 20+ reachable vulnerabilities including SSH auth bypass, malicious git repository memory exhaustion, and helm chart code injection. k8s.io modules remain pinned to v0.31.0 via replace.
MySQL 8 treats system as a reserved word, so the unquoted column in retireMissingSystemCNBVersions raised error 1064 on every startup language-version sync. Build the where clause via scope.Quote like the existing deduplication order clauses.
e6fe64f to
c3d9978
Compare
6e0199f
into
goodrain:staging/console-optimize
14 of 15 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
1. Security dependency upgrades (govulncheck-driven)
govulncheck ./...reported 34 reachable vulnerabilities. This PR upgrades the 7 low-risk modules that resolve 20+ of them:go-git and helm directly process user-controlled input (source builds, helm app installs), so these are real exposure paths. k8s.io modules remain pinned to v0.31.0 via existing replace directives; helm v3.18.5 compiles cleanly against them.
2. Fix MySQL 8 reserved-word error in CNB version retirement
retireMissingSystemCNBVersionsused an unquotedsystemcolumn in its where clause.systemis a reserved word since MySQL 8.0.3, so every startup language-version sync logged:Error 1064 (42000): ... near 'system = ?'The clause is now built via
scope.Quote, matching the existing deduplication order clauses. Covered by a managed regression test (rainbond.db.retire_system_cnb_where_quotes_reserved_column).Test plan
go build ./.../go vet ./...cleango test ./db/mysql/...and builder package tests pass/v2/healthhealthy/v2/healthhealthy