Skip to content

docs(proposals): 045, parenthesised T(C), per-source TLS gates, an identity check that must see traffic, any-status probe - #1737

Merged
bpalermo-agent-bot[bot] merged 2 commits into
mainfrom
fleet/045-followup-docs-3
Nov 1, 2026
Merged

bpalermo-agent-bot[bot] merged 2 commits into
mainfrom
fleet/045-followup-docs-3

Conversation

@bpalermo

@bpalermo bpalermo commented Nov 1, 2026

Copy link
Copy Markdown
Owner

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 is or, which binds more loosely than + and the comparisons. Unparenthesised, T(a) + T(b) would undercount and T(…) == 0 would return the non-zero count.
  • The TLS gate judges each source separately. The raw-TCP target (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.
  • The identity check must see traffic. An h2 target with no QUIC twin is part of the required load, with requests from every node under each proxy version. The check needs at least one access-log line per source node and window; no line is a FAIL. Every line's downstream_peer_uri_san must equal the source workload's SPIFFE ID.
  • The readiness probe accepts any HTTP status (200-599), matching fix(agent): the inbound-readiness probe requires the inbound to accept the node identity, on TLS 1.3 too #1735. An overloaded inbound answers 503 before its health_check filter, and has still accepted the node certificate.

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

bpalermo and others added 2 commits November 1, 2026 16:18
…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
Copilot AI balanced review requested due to automatic review settings November 1, 2026 19:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@bpalermo-agent-review bpalermo-agent-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

  1. 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: or binds more loosely than + and the comparisons. With the parentheses, T(a) + T(b) matches on node alone, and T(...) == 0 / > 0 filter whole per-node rows. Every use below the definition (the request-failure sum, the TLS checks) works with the parenthesised form.
  2. 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_san must equal spiffe://<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) produce tcp_<ns>/<svc> and tcp_<ns>/<svc>_<port>, which tcp_<ns>/<svc>(_[0-9]+)? matches. Prometheus regexes are fully anchored. The keys carry no dot, so the chart's aether.cluster regex ^cluster\.(([^.]+)\.) captures each one whole. The probe clusters' alt_stat_name is built from PodStatKey (a dot in a pod name becomes ~), so inboundready_.* matches them.
  • Stats exclusions. The chart's inboundready_ exclusion leaves ssl.* alone (stated in a comment). use_all_default_tags: false means no TLS-version tag is extracted, so ssl.versions.TLSv1.2/TLSv1.3 export as separate names: envoy_cluster_ssl_versions_TLSv1_{2,3}_total, next to envoy_cluster_ssl_handshake_total.
  • The anchor. group by (node) keeps node for the or on(node) anchor, and sum by (node) leaves only node on 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_requests at fixed-heap 0.95 in the chart answers 503 before the health_check filter), what a pass proves (a response sent after the inbound accepted the node certificate; a TLS 1.3 rejection is a reset), and the bypass_overload_manager rationale. 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. notHealthCheckFilter and notProbePathFilter drop probe traffic, and the raw-TCP floor's tcp_proxy writes 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants