feat(supervisor): expose sandbox name to middleware request context - #2771
Open
letv1nnn wants to merge 2 commits into
Open
feat(supervisor): expose sandbox name to middleware request context#2771letv1nnn wants to merge 2 commits into
letv1nnn wants to merge 2 commits into
Conversation
Signed-off-by: Artem Lytvyn <alytvyn@redhat.com>
# Conflicts: # crates/openshell-supervisor-network/src/l7/middleware.rs
letv1nnn
requested review from
a team,
derekwaynecarr,
mrunalp and
sjenning
as code owners
August 17, 2026 10:14
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
Adds the originating sandbox name to the supervisor middleware request context. Operator-run middleware already receives the sandbox ID; passing the name alongside it lets audit and approval interfaces show a human-readable identifier instead of an opaque UUID, using data the supervisor already owns.
Related Issue
Closes #2754
Changes
sandbox_namefield toRequestContextinproto/supervisor_middleware.proto; existing field numbers are unchanged for wire compatibility.sandbox_nametoopenshell_supervisor_middleware::HttpRequestInputand carry it into the gRPCRequestContext.sandbox_idandsandbox_namefrom the process-wideopenshell_ocsf::SandboxContextwhen the network supervisor builds middleware input.SandboxContextintomiddleware_request_inputinstead of reading the global inside it, making the identifier copy unit-testable with a real name.docs/extensibility/supervisor-middleware.mdx.#[cfg(target_os = "linux")]gate on thestd::path::Pathimport inopenshell-driver-podman'scontainer.rs.Pathis used unconditionally in a public function signature, so the gated import broke the non-Linux (macOS) build after mergingmain. Unrelated to the feature but required for the branch to compile cross-platform.Testing
mise run pre-commitpassesChecklist