Skip to content

proposal: crypto/tls: add configuration for ECH GREASE #75241

Open

Description

@fortuna

Proposal Details

The existing implementation has no support for GREASE.

I tried to simulate GREASE by setting a fake, but well-formed ECH Config list in tls.TLSConfig.EncryptedClientHelloConfigList, but that doesn't work. According to the draft, if the client offers ECH, and the server doesn't accept it, the client must abort the connection with an "ech_required" alert:

If both authentication and the handshake complete successfully, the client MUST perform the processing described below then abort the connection with an "ech_required" alert before sending any application data to the server.

We need an explicit GREASE option to make the client ignore those as per https://www.ietf.org/archive/id/draft-ietf-tls-esni-25.html#name-client-greasing.

BoringSSL has SSL_set_enable_ech_grease, so the support should be easy to add.
(Edit: it doesn't seem like Go uses BoringSSL)

I propose:

type Config struct {
...
	EncryptedClientHelloGREASEDisable bool
}

That way, the TLS client will always do GREASE if the ECHConfigList is not set, and people can disable it if needed.

ECH GREASE should be enabled by default, because people won't be aware of the need to disable it, and the ECH connections will stick out, leaking traffic information.

Activity

  1. added this to the Proposal milestone on Sep 2, 2025
  2. added
    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a tool
    on Sep 3, 2025
  3. sftcd commented on Sep 12, 2025

    @sftcd

    ECH GREASE should be enabled by default, because people won't be aware of the need to disable it, and the ECH connections will stick out, leaking traffic information.

    I fully agree with the above. Having the ecosystem in general emit GREASEy ECH as a default should help a bit in terms of not sticking out and should make it harder to block real use of ECH, so I support adding the capability and having that as the default if possible. (In tests so far, I've not seen any bad effects when GREASEing ECH.)

  4. changed the title [-]proposal: crypto/tls: Add configuration for ECH GREASE[/-] [+]proposal: crypto/tls: add configuration for ECH GREASE[/+] on Sep 12, 2025
  5. rolandshoemaker commented on Jun 12, 2026

    @rolandshoemaker
    Member

    I don't think this needs to be a proposal: lets just do ECH grease always, with maybe a GODEBUG to disable it for endpoints that are truly intolerant of seeing it 🤷, and not provide a tls.Config configuration knob (which just make things more complicated).

  6. gopherbot commented on Jun 15, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/790620 mentions this issue: crypto/tls: default TLS 1.3 ECH GREASE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposal

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions