Closed dhamahes closed 6 months ago
cc @jmhbnz
Here is the current state for logrus for main
:
~ Documents etcd main grep -Ri "github.com/sirupsen/logrus v" | grep -v sum | grep "mod"
tests/go.mod: github.com/sirupsen/logrus v1.8.1 // indirect
server/go.mod: github.com/sirupsen/logrus v1.8.1 // indirect
tools/mod/go.mod: github.com/sirupsen/logrus v1.9.3 // indirect
go.mod: github.com/sirupsen/logrus v1.8.1 // indirect
It's an indirect dependency, a quick go mod why for server
shows:
~ Documents etcd server main go mod why github.com/sirupsen/logrus
# github.com/sirupsen/logrus
go.etcd.io/etcd/server/v3/embed
github.com/tmc/grpc-websocket-proxy/wsproxy
github.com/sirupsen/logrus
So the actual problematic dependency is github.com/tmc/grpc-websocket-proxy
which is a direct dependency for server
. Taking a look at https://github.com/tmc/grpc-websocket-proxy it looks like it is no longer maintained.
Additionally reviewing the fork tree I can't find anything more recently maintained which depends on logrus
above 1.9.0
. We may need to create our own fork to resolve this?
thx for the investigation. Proposals:
@jmhbnz I can take a look at this.
@vivekpatani any update on this? thx
Sorry @ahrtr got sidetracked with other things, I will investigate this and reply before the end of this week.
Does this patch need to be back ported to 3.5 and 3.4? @ahrtr @jmhbnz
Does this patch need to be back ported to 3.5 and 3.4? @ahrtr @jmhbnz
In my opinion yes, we need to get it into a stable release branch to actually address the vulnerability.
YES, we need to backport to both 3.5 and 3.4.
@ahrtr @jmhbnz for release-3.5 - https://github.com/etcd-io/etcd/pull/17482
@ahrtr @jmhbnz for release-3.5 - #17482
thx, merged.
Could you please share the release date of this fix ?
Could anyone bump the dependency for 3.4 as well? Thanks
@ahrtr https://github.com/etcd-io/etcd/issues/17268 - for 3.4
@ahrtr #17268 - for 3.4
Thanks for https://github.com/etcd-io/etcd/pull/17580
Please also update changelog for both 3.4 and 3.5
May i know when is the release date and the version in which this issue will be fixed. We have a due date to update the version by March 26, 2024. It would be grateful to know the timeline so that we can take the necessary steps from our end. Thanks
The fix will be included in 3.4.31 and 3.5.13.
Based on Patch release criteria, we will try to release them asap.
Hi, this dependency update was indeed released on 3.4.31/3.5.13. However, we never got the update to the CHANGELOG. I believe that's the only thing remaining to close this issue.
@vivekpatani, could you help with this? Or should I do the update?
@ivanvc sorry for missing this, I'll add it to the CHANGELOG today.
@vivekpatani please raise a PR to fix 3.5.13 (and 3.4.31 ?) changelog. thx
Closing as there are no outstanding tasks for this issue.
Bug report criteria
What happened?
As per the vulnerability scan, our product requires package logrus to be updated from version 1.7.0 to versionn 1.9.3
What did you expect to happen?
We would like to know when is the next release of etcd with updated version of logrus
How can we reproduce it (as minimally and precisely as possible)?
please check the version of logrus package in the current etcd
Anything else we need to know?
No response
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
Relevant log output