Repository navigation
docs(proposals): 045, parenthesised T(C), per-source TLS gates, an identity check that must see traffic, any-status probe - #1737
Conversation
…entity check that must see traffic - T(C) carries its outer parentheses: its last operator is or, which binds more loosely than + and the comparisons, so unparenthesised sums and == 0 read only the anchor. - The TLS gate judges the raw-TCP target (tcp_<ns>/<svc>(_<port>)?) and the probes separately, each requiring the expected version > 0 on its own nodes, so the probes cannot pass it alone. - An h2 target with no QUIC twin is part of the required load, and the identity check needs at least one access-log line per source node and window, every one carrying the source workload's SPIFFE ID. - The new and changed expressions were run against the reference cluster's Prometheus and return one row per node. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
) Follows #1735's change: an overloaded inbound answers 503 before its health_check filter and has still accepted the node certificate, so the probe passes on 200-599; requiring 200 would demote every serving pod on an overloaded node at once. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for this documentation-only update.
No open issues 🎉
What changed in this PR
This documentation-only follow-up tightens proposal 045’s Envoy 1.41-dev upgrade and rollback checks and aligns readiness-probe guidance with #1735.
Changes:
- Parenthesizes
T(C)to preserve PromQL precedence and evaluates application and probe TLS traffic separately. - Requires h2 application traffic and matching source SPIFFE identities in access logs for every source node and window.
- Documents why readiness probes accept HTTP statuses 200–599, including overload responses.
| File | Description |
|---|---|
docs/proposals/045_envoy-1.41-dev-snapshot.md |
Clarifies readiness behavior and strengthens TLS, traffic, and identity soak checks. |
Review effort: Balanced
There was a problem hiding this comment.
pr-reviewer: approve @ 1026faa
CI: green on this head. Every reported check passed: ci, test, race, shell, format, diff, deps-audit, netns, proxy-pin, envoy-api-parity, actionlint, CodeQL, coverage and the proxy gate. e2e, integration and the proxy test legs were skipped, as the change is docs-only.
Docs only: one file, docs/proposals/045_envoy-1.41-dev-snapshot.md. Reviewed at 1026faa against main at 97099a0.
Previous findings (#1736)
T(C)without outer parentheses: fixed. The definition now has outer parentheses, and a new paragraph says every use pastes it with them and explains why:orbinds more loosely than+and the comparisons. With the parentheses,T(a) + T(b)matches onnodealone, andT(...) == 0/> 0filter whole per-node rows. Every use below the definition (the request-failure sum, the TLS checks) works with the parenthesised form.- Identity check that could pass without measuring: fixed as asked. The check now needs at least one line per source node and window, and treats no line as a FAIL. Every line's
downstream_peer_uri_sanmust equalspiffe://<td>/ns/<source-ns>/sa/<source-sa>. The required load now includes an h2 target with no QUIC twin, with requests from every node under each version. One follow-up remains (inline): the doc doesn't state the logging precondition, and doesn't say how a line is tied to its source node.
Findings
- minor: the identity check doesn't state that the inbound access log must be on, or how a line is tied to a source node (inline).
- nit: the anchor sentence claims more than it does for
> 0. Absence of a row is the failure signal, so the expected node set has to come from the load's placement (inline).
Verified
- Per-source TLS gate keys.
TCPStatKey/TCPPortStatKey(agent/internal/xds/proxy/egress.go) producetcp_<ns>/<svc>andtcp_<ns>/<svc>_<port>, whichtcp_<ns>/<svc>(_[0-9]+)?matches. Prometheus regexes are fully anchored. The keys carry no dot, so the chart'saether.clusterregex^cluster\.(([^.]+)\.)captures each one whole. The probe clusters'alt_stat_nameis built fromPodStatKey(a dot in a pod name becomes~), soinboundready_.*matches them. - Stats exclusions. The chart's
inboundready_exclusion leavesssl.*alone (stated in a comment).use_all_default_tags: falsemeans no TLS-version tag is extracted, sossl.versions.TLSv1.2/TLSv1.3export as separate names:envoy_cluster_ssl_versions_TLSv1_{2,3}_total, next toenvoy_cluster_ssl_handshake_total. - The anchor.
group by (node)keepsnodefor theor on(node)anchor, andsum by (node)leaves onlynodeon each term, so+and the comparisons match one-to-one. - Probe text against #1735 at b130a72.
ExpectedStatuses: [{Start: 200, End: 600}]with an exclusive end, so 200-599 is right. The doc's claims match the implementation and its comments: the overload behaviour (stop_accepting_requestsat fixed-heap 0.95 in the chart answers 503 before thehealth_checkfilter), what a pass proves (a response sent after the inbound accepted the node certificate; a TLS 1.3 rejection is a reset), and thebypass_overload_managerrationale. The #1735 tests cover a 503 inbound passing on TLS 1.2 and 1.3, and failing when the identity is rejected. - Access-log fields. The destination reporter logs
downstream_peer_uri_san.notHealthCheckFilterandnotProbePathFilterdrop probe traffic, and the raw-TCP floor'stcp_proxywrites no HTTP log, which matches the doc's reasoning for using an h2 target.
Not run
- The PromQL was not run against any Prometheus. The PR body says it was run on the reference cluster, and that claim is not verified here.
- No local gates were run (docs-only change).
Deploy risk
None. Docs only, and merging triggers no image, chart or workflow change.
Notes
- #1735 is still open at b130a72. The probe paragraph describes that head. If #1735 changes its status range before it merges, this text needs to follow.
- The raw-TCP load target still requires only "at least one" source, so on nodes without a TCP source the application-path TLS version is covered by the identity check's traffic, not by a version counter. That reads as intended, but it's worth saying outright if it is.
Brings the branch up to date with main (#1737) as the ruleset requires. No other change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx
Docs only. A follow-up to proposal 045 after #1736 (merged as 97099a0), fixing the four review notes deferred there and matching #1735's probe change.
T(C)carries its outer parentheses. Its last operator isor, which binds more loosely than+and the comparisons. Unparenthesised,T(a) + T(b)would undercount andT(…) == 0would return the non-zero count.tcp_<ns>/<svc>(_<port>)?) and the readiness probes each need the expected TLS version above zero on their own nodes, so the probes alone cannot pass the gate for the application path.downstream_peer_uri_sanmust equal the source workload's SPIFFE ID.The changed PromQL was run against the reference cluster's Prometheus, and each expression returns one row per node.
Written by an agent.
🤖 Generated with Claude Code
https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx