Repository navigation
fix: authenticate TLS before buffering hook payloads - #1770
greysonlalonde merged 2 commits into
Conversation
Signed-off-by: Bryan Bednarski <[email protected]>
|
No actionable comments were generated in the recent review. WalkthroughThe authenticated gateway client completes the TLS handshake before buffering hook payloads. Tests cover stalled tunnel setup and delayed valid TLS. The hook forwarding documentation describes the handshake and timeout behavior. ChangesHook forwarding TLS handshake
Estimated code review effort: 2 (Simple) | ~15 minutes Change: Bug fix Possibly related PRs
Merge Risk:
|
mnajafian-nv
left a comment
There was a problem hiding this comment.
Lgtm once Greyson’s comment is addressed, no additional findings on my side.
Signed-off-by: Bryan Bednarski <[email protected]>
|
/coderabbit review |
Overview
A stalled TLS handshake starts lazily during the buffered hook payload flush. On failure, dropping the buffer retries the flush and consumes another socket timeout. Complete pinned TLS authentication first: a two-second timeout now takes about two seconds instead of four and reports a handshake failure before payload delivery.
Details
Validation: all 20 authenticated-client tests,
NEXTEST_TEST_THREADS=4 just test-rust(6,729 passed, 4 skipped),uv run pre-commit run, andjust docspassed. Fern skipped authenticated redirect checking.Where should the reviewer start?
Start with
post_authenticatedincrates/cli/src/gateway/client.rsand thedaemon_hook_stalled_*/daemon_hook_preserves_slow_valid_tls_and_guardrail_budgettests incrates/cli/tests/coverage/shared/gateway_client_tests.rs.Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)
Summary by CodeRabbit