Skip to content

build(deps): bump google.golang.org/grpc to v1.83.0 (security) - #612

Merged
bpalermo merged 1 commit into
mainfrom
chore/grpc-1.83
Aug 1, 2026
Merged

bpalermo merged 1 commit into
mainfrom
chore/grpc-1.83

Conversation

@bpalermo

@bpalermo bpalermo commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Go-deps cohort, part 1 of 2 — the one security-relevant bump, isolated on purpose.

grpc-go v1.83.0's release notes lead with a Security section:

  • Server stops reading from connections flooded by HTTP/2 control frames (resource-exhaustion mitigation; default 100 non-DATA/HEADERS frames, tunable via GRPC_GO_EXPERIMENTAL_CONTROL_BUFFER_THROTTLE_LIMIT)
  • xds/rbac: Metadata/RequestedServerName matchers in DENY rules no longer fail open
  • Two xds parse panic fixes

The frame throttle is a server-side behavior change on every gRPC surface we run (agent xDS + CNI UDS servers, registrar watch streams), which is exactly why it's not in the routine batch: if the next soak shows connection churn artifacts, this PR is the suspect list.

Testing

  • bazel run @rules_go//go get google.golang.org/[email protected] + bazel mod tidy + bazel run //:gazelle (no BUILD changes)
  • bazel test --test_output=errors //... — 79/79 pass (44 re-executed)

🤖 Generated with Claude Code

https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR

Isolated bump: v1.83.0 leads with a security fix — the server now stops
reading from connections flooded with HTTP/2 control frames (resource
exhaustion; default threshold 100 non-DATA/HEADERS frames, tunable via
GRPC_GO_EXPERIMENTAL_CONTROL_BUFFER_THROTTLE_LIMIT). Also fixes an
xds/rbac fail-open for Metadata/RequestedServerName in DENY rules and
two xds parse panics.

Kept separate from the routine dep batch so the new frame-throttle
behavior on the agent xDS/CNI servers is attributable if the next soak
shows anything.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
@bpalermo
bpalermo merged commit ea2f04a into main Aug 1, 2026
15 checks passed
@bpalermo
bpalermo deleted the chore/grpc-1.83 branch August 1, 2026 19:49
bpalermo added a commit that referenced this pull request Sep 16, 2026
…793)

VERDICT: test artefact, not a production bug. The watch loop is correct;
the in-process fake's request log is not ordered the way the assertion
assumed.

`TestWatchLoop_FilterReassertIsNeverLost` asserted that the LAST request
recorded by `fakeWatchServer` carried the newest filter. But the fake
appends to `s.requests` from inside `WatchEndpoints`, and grpc-go
dispatches every server stream on its own goroutine
(`watch_startup_test.go:51`). When the loop cancels stream N and
immediately opens stream N+1 — which is exactly what each of the test's
4-deep bursts makes it do — the two handler goroutines race to append,
and N's request can land after N+1's. Once the burst settles, the fake
holds the live stream open forever and no further request arrives, so
`lastRequest()` reports the superseded stream's filter permanently and
the 10s `require.Eventually` can never converge.

Interleaving trace, captured by instrumenting the fake to dump its whole
request log on failure (7/7 observed failures, identical shape):

    req[39] filter=[default/svc-33-3]
    req[40] filter=[default/svc-34-3]   <- the wanted filter DID reach the server
    req[41] filter=[default/svc-34-2]   <- an OLDER stream's handler appending late
    active streams: 1

i.e. the loop opened a stream asserting svc-34-3 and was sitting on it,
doing precisely the right thing, while the test reported it "stuck on a
stream with a stale filter". In all 7 failures the wanted filter was
present exactly once in the request log and the final entry was an
earlier round-member (svc-N-2 or svc-N-1).

Production is correct and no window remains:

  - `assertFilter` (registrar.go:284-290) publishes this stream's
    canceller and reads the filter under ONE `filterMu` hold, so a
    concurrent `SetServiceFilter` either completes first (the loop reads
    the new filter) or completes after (it captures THIS stream's
    canceller at registrar.go:238 and cancels it at registrar.go:257).
    "Neither" is unrepresentable — that is #781's fix, and it holds.
  - `SetServiceFilter` cancelling late (after the cache purge at
    registrar.go:245-255) is harmless: it cancels the exact stream it
    captured, and if the loop has already moved on, its next
    `assertFilter` necessarily read a filter at least as new, because
    the critical sections are totally ordered on `filterMu`.
  - Two rapid updates both capturing the same canceller (the test's
    burst) converge: whichever cancel lands first reconnects the loop,
    and the reconnect's `assertFilter` reads the newest filter; the
    second cancel is a no-op on a dead stream.
  - #612's reconnect semantics are untouched: a locally-cancelled stream
    is classified out of the failure path (registrar.go:843-847,
    registrar.go:585-590), so no backoff accumulates across the 40
    rounds and the cap-1 wake / CompareAndSwap paths are not involved.

Test changes only:

  - `watch_startup_test.go`: add `sawFilter`, the ordering-immune
    predicate — "some stream asserted exactly this filter". It loses no
    strength, because a genuinely lost re-assert leaves its filter in no
    request at all. Document the ordering hazard on `lastRequest`; its
    other caller asserts `requestCount() == 1` so it is unaffected.
  - `watch_filter_test.go`: assert on `sawFilter`, and pass `logs`
    (a Stringer) instead of `logs.String()` — testify evaluates message
    args eagerly, so the pre-rendered string captured the log from
    BEFORE the 10s wait and never showed what actually happened. That
    alone cost most of the diagnosis time on the original CI failure.

Failure rates (race detector, `taskset -c 0,1` to mimic a 2-core runner):

  before: 2/30 on the shipped test; 7/40 on an instrumented copy
  after:  0/60 on the test, 0/30 on the whole package

Also 30/30 green via
`bazel test //registry/internal/registrar:registrar_test --config=race
--runs_per_test=30 --nocache_test_results` (whole package, unfiltered).

Verification: `bazel build //... //test/e2e:e2e_test`, `bazel test //...`
(101/101), `bazel run //:format.check`, `bazel build --config=lint
--@aspect_rules_lint//lint:fail_on_violation //...`, `bazel run
//:gazelle` (no churn), `bazel mod tidy` (idempotent),
`scripts/go-deps-audit.sh` (exit 0).


Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Co-authored-by: Claude Fable 5.1 <[email protected]>
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.

1 participant