-
Notifications
You must be signed in to change notification settings - Fork 18k
crypto/tls: wrong error returned in ECHConfig parsing #71706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Comments
CC @golang/security. |
Change https://go.dev/cl/650720 mentions this issue: |
Change https://go.dev/cl/650719 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Feb 20, 2025
Updates #71706 Change-Id: Id689ec476eb3f76500dbf59d716a4376749de700 Reviewed-on: https://go-review.googlesource.com/c/go/+/650719 Reviewed-by: Daniel McCarney <daniel@binaryparadox.net> Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Thank you ^_^ Looks great! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
BugReport
Issues describing a possible bug in the Go implementation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.24.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Implementing Encrypted ClientHello (server-side).
What did you see happen?
errMalformedECHConfig
("tls: malformed ECHConfigList") is returned in at least 17 places, although most are errors parsingECHConfig
, notECHConfigList
.Additionally, this error is very vague. Since we have to serialize the ECHConfig ourselves, and crypto/tls adds extra requirements, any chance we could get a little more info as to what is wrong with it?
Also, the following godoc comment seems to have a mistake:
This part:
doesn't seem to match RFC 9180, and caused me some head scratching while troubleshooting this.
I believe the comment should be:
As evidenced by the RFC and the actual code: https://cs.opensource.google/go/go/+/refs/tags/go1.24.0:src/crypto/internal/hpke/hpke.go;l=157-159
What did you expect to see?
Thanks for adding ECH to Go 1.24! Caddy will soon ship with it.
I did get ECH working in Caddy tonight!
The text was updated successfully, but these errors were encountered: