reverse_tunnels: add gRPC streaming client for reverse tunnel reporting#44344
Draft
aakugan wants to merge 3 commits intoenvoyproxy:mainfrom
Draft
reverse_tunnels: add gRPC streaming client for reverse tunnel reporting#44344aakugan wants to merge 3 commits intoenvoyproxy:mainfrom
aakugan wants to merge 3 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: aakugan <aakashganapathy2@gmail.com>
|
CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to |
ccc17ad to
6f80c42
Compare
Signed-off-by: aakugan <aakashganapathy2@gmail.com>
Signed-off-by: aakugan <aakashganapathy2@gmail.com>
6f80c42 to
1586d51
Compare
1586d51 to
d568b1f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BUILDS on #44342. Please review that one first.
INCREMENTAL DIFFS
Commit Message
Add gRPC streaming client for reverse tunnel reporting
Additional Description
Adds a bidirectional gRPC streaming client that pushes reverse tunnel connection state to a remote ReverseTunnelReportingService. This is a client implementation for the EventReporter introduced in the previous PR.
Protocol:
Key components:
GrpcClient: implementsReverseTunnelReporterClientandGrpc::AsyncStreamCallbacks. Manages stream lifecycle, nonce tracking, send/retry timers, and per-cluster stats.GrpcClientFactory: dynamically registered factory resolved by the EventReporter when constructing clients from config.GrpcClientConfig: parsed config struct with defaults (5s send interval, 5s retry, 5 max retries, 1M buffer).Additional considerations:
initialized_guard prevents silent event queuing if cluster lookup or client creation fails during onServerInitialized().Risk Level: Low
Testing
Unit tests