-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat(middleware): define HTTP response pre-return interface #3073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pimlock
wants to merge
11
commits into
2691-middleware-header-authority/pimlock
from
2691-http-response-interface/pimlock
+580
−177
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a183be7
feat(middleware): define HTTP response pre-return interface
pimlock 16d8cd0
docs(middleware): clarify HTTP response interface
pimlock 20dc5ed
refactor(middleware): align response result actions
pimlock c70a8a2
refactor(middleware): expose response reason codes
pimlock 19e3473
refactor(middleware): share session end reasons
pimlock dbac2b4
feat(middleware)!: finalize HTTP response pre-return contract
pimlock 2d6446a
docs(middleware): describe skip as opting out of inspection
pimlock 2b2b7f5
feat(middleware): add body-phase block_delivery and skip_remaining ac…
pimlock 22151f8
refactor(middleware): share HTTP body leaf messages across directions
pimlock 24e4862
refactor(middleware): keep HTTP body leaf messages response-specific
pimlock 11ef5b9
docs(middleware): simplify response proto comments
pimlock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Warning — GATOR-11ef5b93-01 · Accepted response bindings are silently unenforced
Summary: An operator can now register and attach
HTTP_RESPONSE/PRE_RETURN, including withfail_closed, but none of the supported HTTP relay paths opens this stream. A matching request therefore delivers the upstream response unchanged while configuration succeeds, silently bypassing the operator's declared response control.Fix: Keep this binding rejected until #3074 wires the response runner into every supported HTTP relay, then enable it with an end-to-end fail-closed invocation test. Alternatively, land that complete dispatch with this change.
Verify: Attach a response-only middleware that records invocation or blocks delivery, request a sentinel response through the HTTP proxy, and confirm no response bytes reach the sandbox before the stage runs. At this head, the response arrives and the invocation count stays zero.
Agent context
crates/openshell-supervisor-middleware/src/lib.rs:848