Repository navigation
fix: record container proxy HTTP failures without private data - #4657
Merged
Merged
Conversation
The Containers SDK can return a disconnect 500 without logging an exception. Retain a bounded classification at the forwarding boundary so a recurrence can be joined to its native trace without recording private URLs or response bodies. Keep the original response and retry behavior. Refs #4656
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.
The hosted journey in #4656 received a state HTTP 500 with no Python
page_faultrecord. The installed Containers SDK 0.3.7 can produce an ordinary 500 on connection loss without logging an exception. The failed run pins that SDK version; its 342-byte Resource Timing transfer is consistent with the SDK's 42-byte disconnect body, but the retained records do not prove that was the response.Record forwarded HTTP 5xx responses at the session boundary, distinguishing Python's delivery stamp, the SDK's exact disconnect response, and unclassified failures. The record contains only method, status and classification; Cloudflare supplies its trace identity. Response inspection is bounded, and private URLs and body contents are excluded. Successful responses take no new body-read or logging work. Retries and success assertions are unchanged.
The diagnostic regression failed before the change and passes afterward; all 63 Worker routing tests and the Worker TypeScript check pass. It covers disconnect classification, oversized private content, adapter faults, unchanged response bodies and silent successful responses.
This repairs the missing diagnostic, not the unexplained connection failure. #4656 remains open: after deployment, a recurrence can identify the boundary through
component=leaf-container,event=http_error, and its native trace ID. A confirmed disconnect still needs container/platform lifecycle evidence to explain why the connection was lost.Refs #4656 — automated triage