Skip to content

Commit 6a75e23

Browse files
authored
Merge pull request #5 from axonops/merge/upstream-v2.4.2
Merge upstream v2.4.2 (Go 1.26.2 + logrus CVE fixes)
2 parents 7786d3f + 973f49b commit 6a75e23

14 files changed

Lines changed: 50 additions & 47 deletions

File tree

.github/workflows/code-format.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,13 @@ jobs:
2020
with:
2121
ref: ${{ github.event.pull_request.head.ref }}
2222
repository: ${{ github.event.pull_request.head.repo.full_name }}
23-
- name: Install SSH Key
24-
if: github.event.pull_request.head.repo.full_name == github.repository
25-
uses: shimataro/ssh-key-action@v2
26-
with:
27-
key: ${{ secrets.SSH_PRIVATE_KEY }}
28-
known_hosts: github.com
2923
- name: gofmt
30-
run: gofmt -s -w .
31-
- name: Check for modified files
32-
id: git-check
33-
run: echo ::set-output name=modified::$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)
34-
- name: Push changes (non Fork PRs)
35-
if: github.event.pull_request.head.repo.full_name == github.repository && steps.git-check.outputs.modified == 'true'
36-
run: |
37-
git config --global user.name 'Auto Gofmt'
38-
git config --global user.email 'auto-gofmt@users.noreply.github.com'
39-
git remote set-url origin git@github.com:${{ github.repository }}
40-
git commit -am "Automated gofmt changes"
41-
git push
42-
- name: Validate (Fork PRs)
43-
if: github.event.pull_request.head.repo.full_name != github.repository && steps.git-check.outputs.modified == 'true'
4424
run: |
45-
echo "Gofmt code validation failed, please run gofmt on your branch to correctly format your code changes."
46-
exit 1
25+
unformatted=$(gofmt -s -l .)
26+
if [ -n "$unformatted" ]; then
27+
echo "Gofmt validation failed. The following files need formatting:"
28+
echo "$unformatted"
29+
echo ""
30+
echo "Run 'gofmt -s -w .' locally and commit the result."
31+
exit 1
32+
fi

.github/workflows/release-binary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
name: Build and Upload Release Assets
1616
runs-on: ubuntu-latest
17-
container: golang:1.24.2-bullseye
17+
container: golang:1.26.2-bookworm
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v2

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212
env:
1313
SIMULACRON_VERSION: 0.10.0
14-
GO_VERSION: 1.24.2
14+
GO_VERSION: 1.26.2
1515
SKIP_DSE_TESTS: ${{ vars.SKIP_DSE_TESTS || 'false' }}
1616
jobs:
1717
dependencies:

CHANGELOG/CHANGELOG-2.4.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ When cutting a new release, update the `unreleased` heading to the tag being gen
66

77
---
88

9+
## v2.4.2 - 2026-04-27
10+
11+
### Improvements
12+
13+
* [#161](https://github.com/datastax/zdm-proxy/issues/161): Update Go to 1.26.2 to fix a number of CVEs related to TLS and X509
14+
* [#162](https://github.com/datastax/zdm-proxy/issues/162): Update logrus to 1.9.4 to fix CVE-2025-65637
15+
916
## v2.4.1 - 2026-02-09
1017

1118
### Bug Fixes

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# $ docker build . -f ./Dockerfile -t zdm-proxy
44
##########
55

6-
FROM golang:1.24.2-bullseye AS builder
6+
FROM golang:1.26.2-bookworm AS builder
77

88
ENV GO111MODULE=on \
99
CGO_ENABLED=0 \

RELEASE_NOTES.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Build artifacts are available at [Docker Hub](https://hub.docker.com/repository/
66

77
For additional details on the changes included in a specific release, see the associated CHANGELOG-x.x.md file.
88

9+
## v2.4.2 - 2026-04-27
10+
11+
Upgrade software dependencies to resolve vulnerabilities:
12+
13+
- Go to 1.26.2
14+
- Logrus to 1.9.4
15+
16+
[Changelog](CHANGELOG/CHANGELOG-2.4.md#v242---2026-04-27)
17+
918
## v2.4.1 - 2026-02-09
1019

1120
Fix too small buffer for LZ4 decompression.
@@ -87,4 +96,4 @@ This release enables the ZDM-Proxy to independently send heartbeats on the SECON
8796

8897
Open-source release that also includes renaming of the product, public documentation launch and a revamp of configuration and metrics.
8998

90-
[Changelog](CHANGELOG/CHANGELOG-2.0.md#v200---2022-10-18)
99+
[Changelog](CHANGELOG/CHANGELOG-2.0.md#v200---2022-10-18)

docker-compose-debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ services:
2929
ipv4_address: 192.168.100.102
3030

3131
proxy:
32-
image: golang:1.24.2-bookworm
32+
image: golang:1.26.2-bookworm
3333
restart: unless-stopped
3434
tty: true
3535
ports:

docker-compose-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ services:
3535
ipv4_address: 192.168.100.102
3636

3737
proxy:
38-
image: golang:1.24.2-bookworm
38+
image: golang:1.26.2-bookworm
3939
container_name: zdm_tests_proxy
4040
restart: unless-stopped
4141
tty: true

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/datastax/zdm-proxy
22

3-
go 1.24
3+
go 1.26
44

55
require (
66
github.com/antlr4-go/antlr/v4 v4.13.1
@@ -13,8 +13,8 @@ require (
1313
github.com/prometheus/client_golang v1.11.1
1414
github.com/prometheus/client_model v0.2.0
1515
github.com/rs/zerolog v1.34.0
16-
github.com/sirupsen/logrus v1.6.0
17-
github.com/stretchr/testify v1.9.0
16+
github.com/sirupsen/logrus v1.9.4
17+
github.com/stretchr/testify v1.10.0
1818
golang.org/x/time v0.12.0
1919
gopkg.in/yaml.v3 v3.0.1
2020
)
@@ -25,7 +25,6 @@ require (
2525
github.com/davecgh/go-spew v1.1.1 // indirect
2626
github.com/golang/protobuf v1.5.0 // indirect
2727
github.com/golang/snappy v0.0.3 // indirect
28-
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
2928
github.com/kr/text v0.2.0 // indirect
3029
github.com/mattn/go-colorable v0.1.13 // indirect
3130
github.com/mattn/go-isatty v0.0.19 // indirect
@@ -35,7 +34,7 @@ require (
3534
github.com/prometheus/common v0.26.0 // indirect
3635
github.com/prometheus/procfs v0.6.0 // indirect
3736
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
38-
golang.org/x/sys v0.12.0 // indirect
37+
golang.org/x/sys v0.13.0 // indirect
3938
google.golang.org/protobuf v1.33.0 // indirect
4039
gopkg.in/inf.v0 v0.9.1 // indirect
4140
)

go.sum

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8
6464
github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8=
6565
github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg=
6666
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
67-
github.com/konsorten/go-windows-terminal-sequences v1.0.3 h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=
6867
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
6968
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
7069
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
@@ -119,17 +118,18 @@ github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
119118
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
120119
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
121120
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
122-
github.com/sirupsen/logrus v1.6.0 h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I=
123121
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
122+
github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w=
123+
github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g=
124124
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
125125
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
126126
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
127127
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
128128
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
129129
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
130130
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
131-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
132-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
131+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
132+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
133133
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
134134
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
135135
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
@@ -163,8 +163,9 @@ golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7w
163163
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
164164
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
165165
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
166-
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
167166
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
167+
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
168+
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
168169
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
169170
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
170171
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=

0 commit comments

Comments
 (0)