feat(supervisor-middleware): add in-process egress middleware#2027
Draft
pimlock wants to merge 4 commits into
Draft
feat(supervisor-middleware): add in-process egress middleware#2027pimlock wants to merge 4 commits into
pimlock wants to merge 4 commits into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
b429440 to
9ebcdd5
Compare
Collaborator
Author
|
/ok to test 9ebcdd5 |
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
595191e to
97b750f
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.
Summary
Implements RFC 0009 Phase 1: proto-backed, policy-selected, in-process supervisor HTTP egress middleware for
HttpRequest/pre_credentials.This draft establishes the first reviewable middleware seam without external middleware registration or transport. It adds the contract, policy plumbing, in-process chain execution, built-in secret redaction, relay integration, audit events, and Definition-of-Done coverage for the Phase 1 scope.
Related Issue
Closes #2010
Part of #1733
Design/RFC: #1738
Changes
openshell.middleware.v1protobuf contract and generated Rust module wiring.openshell-supervisor-middlewarecrate with chain execution, in-process service dispatch, fail-open/fail-closed handling, safe append-only header mutation, metadata propagation, findings, and a built-inopenshell/secretsredactor.on_errorevents with recoverable fail-open behavior for declaredContent-Lengthover-cap and deny-safe behavior once chunked bytes are consumed.Testing
mise run pre-commitpassesmise run pre-commit; Rust formatting, linting, and test legs ran, but the task exits nonzero at existing Helm lint setup:chart metadata is missing these dependencies: postgresql.cargo check --workspacecargo test -p openshell-supervisor-middlewarecargo test -p openshell-supervisor-networkcargo test -p openshell-server validate_rule_Checklist