Open olii opened 3 weeks ago
Thanks for the report @olii.
We've seen another unusual problem with the Cloud SQL Proxy when using Go 1.23. See:
In short, Go 1.23 introduces a new curve in the default TLS config (https://github.com/golang/go/issues/67061) which we've seen to break VPN connections. Your issue looks the same (handshake fails on EOF).
As a workaround, would you mind reporting if this works for you?
GODEBUG=tlskyber=0 \
ALL_PROXY=socks5://localhost:8000 \
HTTPS_PROXY=socks5://localhost:8000 \
./alloydb-auth-proxy <INSTANCE_URI>
Meanwhile, we're working on tracking down whether this is something wrong with Go, something we can do in the Proxy, or a common configuration problem we'll have to deal with. Right now, I don't know what the root issue is.
I confirm that I can successfully connect to the SOCKS5 proxy by adding this ENV var GODEBUG=tlskyber=0
to the command line.
Thank you.
Glad to hear it -- we'll be exploring how to remove the need to set GODEBUG
meanwhile.
For reference here is a link to the code that sets curve preferences:
Bug Description
In Readme there is an example how to connect to the AlloyDB instance using SOCKS5 proxy:
The above command works in version
1.11.0
but it fails in the1.11.1
and1.11.2
.Looking in the commitlog I think that the update to golang 1.23 broke it.
Example code (or command)
No response
Stacktrace