Skip to content

envoy: under client_address connection the auth check is told the connection's scheme, HAProxy's less strict list is checked against nginx's, and the conformance page keeps no count a check does not read - #73

Merged
tudor-pop merged 1 commit into
masterfrom
70-check-scheme-under-connection
Nov 21, 2026

Conversation

@tudor-pop

Copy link
Copy Markdown
Contributor

Closes #70, closes #71, closes #72

The scheme the auth check is told (#70)

With auth.send_request: true and client_address: connection, the Envoy output told the check the request's own scheme, which the client writes. Measured on Envoy 1.40.2:

Request under connection 2.2.0 told the check Now
HTTP/2 over plain HTTP with :scheme: https https http
An absolute http target, or :scheme: http, over TLS http https
An absolute https target over plain HTTP answered 403, check not asked the same

The check is now told the listener's scheme, https with tls and http without. Under forwarded nothing changes: a file without those two keys renders byte for byte as before, and proxyfile check reports exactly the files that hold both.

HAProxy was measured on a plain connection file for the first time: it already tells the check the connection's scheme and answers an absolute target 400 without asking the check. nginx tells the connection's scheme since #65. Neither generator's output changes here.

The battery holds the scheme each proxy tells the check for a request line, an HTTP/2 :scheme and a client's own X-Forwarded-Proto, on a plain and a TLS file under connection, on every entry, with rows for an upper-case HTTPS:// target, a :scheme of ftp, and plain HTTP sent to the TLS port.

HAProxy's list (#71)

Of the three differences measured on nginx for #65, one holds on HAProxy 3.2 and 3.4: the admin listener answers an absolute request target by its path. It is named, not corrected, and HAProxy's list has 12 entries. The other two do not hold, and docs/haproxy.md says what was measured: HAProxy answers an absolute https target over plain HTTP 400, and removes a tab at either end of a header's value, as Envoy does.

Named on the way, in the notes of client_address: for a client on a loopback address the Envoy output appends its own address to X-Forwarded-For, where the nginx and HAProxy outputs append 127.0.0.1.

The conformance page's counts (#72)

docs/conformance.md gives each scenario's rows in digits, and the battery checks them, and the rows sent as their scenario starts, before any container starts. Every other count that described the present is dropped or written without its number, so the page holds no present number that a check does not read. Dated history stays. The pages' copies of the support table's notes, and of the line render prints, are generated.

Checks

  • The whole conformance battery ran once at this tree before the pull request opened and passed.
  • gofmt, go vet (also with the conformance tag), go build and go test ./internal/... ./cmd/... pass; the generated pages and examples are current; the site builds and its links resolve.
  • The Envoy rows were seen failing on master's output first, and so was each new count check.
  • One independent review in two parts before the pull request opened (the scheme change; tests and pages), with one round of corrections.

For the next release's notes

docs/format.md has the section "After 2.2.0": every nginx file is rendered again, and an Envoy or nginx file with auth.send_request: true under client_address: connection is rendered again. HAProxy's files do not change.

…nection's scheme, HAProxy's less strict list is checked against nginx's, and the conformance page keeps no count a check does not read (Part of #70, #71, #72)

With auth.send_request and client_address connection, the Envoy output told the auth check the request's own
scheme, which a client writes: an HTTP/2 request sent over plain HTTP with :scheme https made the check read https
(measured on Envoy 1.40.2), and an http target sent over TLS made it read http. The check is now told the listener's
scheme, https with tls and http without. Under forwarded nothing changes, and a file without those two keys renders
byte for byte as before. HAProxy, measured on a plain connection file for the first time, already told the
connection's scheme, and so does nginx since #65; neither generator's output changes.

The battery holds the scheme each proxy tells the check for a request line, an HTTP/2 :scheme and a client's own
header, on a plain and a TLS file under connection, on every entry.

Of the three differences measured on nginx for #65, one holds on HAProxy, the admin listener answering an absolute
target, and its list has 12 entries; the page says what was measured for the other two. The notes of client_address
name the X-Forwarded-For of a client on a loopback address, where the Envoy output appends its own address and the
nginx and HAProxy outputs 127.0.0.1.

docs/conformance.md gives each scenario's rows in digits, and the battery checks them, and the rows sent as their
scenario starts, before any container starts; every other count of the present is gone from the page. The pages'
copies of the support table's notes and of render's line are generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant