Skip to content

Commit 5b3fed2

Browse files
authored
fix: Bump Go 1.26.1 to 1.26.2 for 6 stdlib CVEs (#2170)
* fix: Bump Go 1.26.1 to 1.26.2 to resolve 6 stdlib security vulnerabilities Fixes GO-2026-4865 (html/template), GO-2026-4866 (crypto/x509), GO-2026-4869 (archive/tar), GO-2026-4870 (crypto/tls), GO-2026-4946 (crypto/x509), GO-2026-4947 (crypto/x509). Updates go.mod, all Dockerfiles, and all CI workflow files. * docs: Update Go version references in docs to 1.26.2 * fix: Update 16 service Dockerfiles to Go 1.26.2 * chore: Bump golangci-lint from v2.9.0 to v2.11.4 Aligns CI with Go 1.26.2 contextcheck behavior. v2.9.0 had stale contextcheck heuristics that flagged existing nolint directives as unused, while v2.11.4 correctly identifies them as necessary. * fix: Resolve lint issues surfaced by Go 1.26.2 and golangci-lint v2.11.4 - Migrate proxy.Director to proxy.Rewrite (deprecated since Go 1.26) - Use fmt.Fprintf instead of WriteString(fmt.Sprintf(...)) - Exclude noctx linter for test files (httptest.NewRequest creates a valid context; requiring WithContext in tests is noise) - Remove now-unused nolint:noctx directive in bench test - Add nolint:prealloc for defensive-copy test * fix: Restore em dash in topic list output Accidentally replaced the em dash with a hyphen during the fmt.Fprintf refactor, breaking TestBuildTopicList_TopicsHaveDescriptions. * fix: Address remaining lint and review feedback - Use fmt.Fprintf in saga validation report (4 instances) - Preserve Host header in proxy.Rewrite (SetURL overwrites it) * fix: Create ReverseProxy directly with Rewrite instead of deprecated Director Replace NewSingleHostReverseProxy + Director=nil with a direct ReverseProxy struct literal using only the Rewrite field. This avoids both the deprecated Director API and the mutual exclusivity error. Preserves existing X-Forwarded-Host from incoming requests. --------- Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
1 parent 0f2ddf9 commit 5b3fed2

46 files changed

Lines changed: 84 additions & 80 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/asyncapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Set up Go
4141
uses: actions/setup-go@v6
4242
with:
43-
go-version: '1.26.1'
43+
go-version: '1.26.2'
4444
cache: true
4545

4646
- name: Set up Node.js

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Go
2828
uses: actions/setup-go@v6
2929
with:
30-
go-version: '1.26.1'
30+
go-version: '1.26.2'
3131
cache: true
3232

3333
- name: Set up buf

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Go
5454
uses: actions/setup-go@v6
5555
with:
56-
go-version: '1.26.1'
56+
go-version: '1.26.2'
5757
cache: true
5858

5959
- name: Set up buf

.github/workflows/claude.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
IMPORTANT: Today's date is ${{ steps.date.outputs.current_date }}.
5151
5252
Key project facts:
53-
- This project uses Go 1.26.1 (latest stable release)
54-
- Go 1.26.1 is a valid version - do not question or flag it
53+
- This project uses Go 1.26.2 (latest stable release)
54+
- Go 1.26.2 is a valid version - do not question or flag it
5555
- Architecture: BIAN-compliant microservices
5656
- Stack: Go, Protocol Buffers, gRPC, Kubernetes
5757
- Security: All security scans must remain BLOCKING (never suggest making them non-blocking)

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
if: matrix.language == 'go'
6969
uses: actions/setup-go@v6
7070
with:
71-
go-version: '1.26.1'
71+
go-version: '1.26.2'
7272
cache: true
7373

7474
# Set up buf for protobuf generation (pinned version for reproducibility)

.github/workflows/control-plane-ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Set up Go
4444
uses: actions/setup-go@v6
4545
with:
46-
go-version: '1.26.1'
46+
go-version: '1.26.2'
4747
cache: true
4848

4949
- name: Set up buf
@@ -80,7 +80,7 @@ jobs:
8080
- name: Set up Go
8181
uses: actions/setup-go@v6
8282
with:
83-
go-version: '1.26.1'
83+
go-version: '1.26.2'
8484
cache: true
8585

8686
- name: Set up buf
@@ -117,7 +117,7 @@ jobs:
117117
- name: Set up Go
118118
uses: actions/setup-go@v6
119119
with:
120-
go-version: '1.26.1'
120+
go-version: '1.26.2'
121121
cache: true
122122

123123
- name: Set up buf
@@ -163,7 +163,7 @@ jobs:
163163
- name: Set up Go
164164
uses: actions/setup-go@v6
165165
with:
166-
go-version: '1.26.1'
166+
go-version: '1.26.2'
167167
cache: true
168168

169169
- name: Set up buf
@@ -207,7 +207,7 @@ jobs:
207207
- name: Set up Go
208208
uses: actions/setup-go@v6
209209
with:
210-
go-version: '1.26.1'
210+
go-version: '1.26.2'
211211
cache: true
212212

213213
- name: Set up buf

.github/workflows/deploy-demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up Go
4343
uses: actions/setup-go@v6
4444
with:
45-
go-version: '1.26.1'
45+
go-version: '1.26.2'
4646
cache: true
4747

4848
- name: Set up buf

.github/workflows/deploy-develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Set up Go
4343
uses: actions/setup-go@v6
4444
with:
45-
go-version: '1.26.1'
45+
go-version: '1.26.2'
4646
cache: true
4747

4848
- name: Set up buf

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Set up Go
3939
uses: actions/setup-go@v6
4040
with:
41-
go-version: '1.26.1'
41+
go-version: '1.26.2'
4242
cache: true
4343

4444
- name: Set up buf

.github/workflows/migrations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Go
3737
uses: actions/setup-go@v6
3838
with:
39-
go-version: '1.26.1'
39+
go-version: '1.26.2'
4040
cache: true
4141

4242
- name: Install Atlas CLI
@@ -82,7 +82,7 @@ jobs:
8282
- name: Set up Go
8383
uses: actions/setup-go@v6
8484
with:
85-
go-version: '1.26.1'
85+
go-version: '1.26.2'
8686
cache: true
8787

8888
- name: Install Atlas CLI

0 commit comments

Comments
 (0)