Skip to content

Validator probably shouldn't send Accept-Encoding headers #3749

@schoen

Description

@schoen

Per https://community.letsencrypt.org/t/unable-to-get-certificate-error-reading-http-response-body-unexpected-eof/63987/, there are some configurations with buggy implementations of gzip or deflate encoding in HTTP replies. (This seems to involve reverse proxies getting confused about the semantics of Content-Length: headers, although I haven't entirely chased it down.)

While this is definitely a standards-conformance problem on the other implementations' end, and not a bug in Boulder's validation, there is no real benefit to using gzip encoding for sending HTTP-01 challenge tokens because these tokens are intentionally random; compressing random data, by the pigeonhole principle, should usually make it larger rather than smaller.

So, it doesn't seem like there would be any loss from simply not having Boulder send Accept-Encoding: , and dropping it might avoid an entire area of bugs and perhaps even attack surface on the Boulder side.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions