feat(compute): negotiate gateway callback listeners - #2492
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. |
|
Label |
|
/ok-to-test 7e8b6d2 |
7e8b6d2 to
ec3d9eb
Compare
|
/ok-to-test ec3d9eb |
c2543d9 to
e817863
Compare
|
🌿 Preview your docs: https://nvidia-preview-pr-2492.docs.buildwithfern.com/openshell |
|
/ok-to-test e817863 |
|
/ok to test |
|
/ok-to-test c768219 |
|
/ok-to-test a5cef7d |
|
/ok-to-test ee88761 |
elezar
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
Validation: This maintainer-authored PR is project-valid and directly advances the listener-discovery work related to #2215.
Head SHA: ee8876193e2191b948b470abf592ce9d3b32357e
Review findings:
- Three warning-level findings were left inline: one docs accuracy issue, one gateway config reference-doc gap, and one operational logging gap.
Docs: Updated in part, but the published Podman and gateway configuration docs still need the inline corrections before gator can move this to pipeline watch.
Next state: gator:in-review
| # you don't use Podman or want loopback-only access (e.g. behind a reverse | ||
| # proxy). mTLS is enabled by default and protects all connections. | ||
| bind_address = "0.0.0.0:17670" | ||
| # Keep the primary listener on the built-in 127.0.0.1:17670 default. The |
There was a problem hiding this comment.
gator-agent
Warning: This changes the RPM config default by removing the bind_address = "0.0.0.0:17670" override, but docs/reference/gateway-config.mdx was not updated. Please add a short note that RPM/Podman leaves bind_address unset, uses the built-in 127.0.0.1:17670 primary listener, and relies on restricted driver-negotiated callback listeners.
| let local_addr = listener.local_addr().unwrap_or(address); | ||
| .map_err(|e| Error::transport(format!("failed to bind to {}: {e}", spec.address)))?; | ||
| let local_addr = listener.local_addr().unwrap_or(spec.address); | ||
| info!(address = %local_addr, "Server listening"); |
There was a problem hiding this comment.
gator-agent
Warning: The troubleshooting skill now tells operators to inspect the listener-purpose startup log, but this startup log still emits only address. Please include purpose = ?spec.purpose here so unexpected callback binds show the driver and reason in gateway logs.
ee88761 to
18044d2
Compare
|
/ok-to-test 18044d2 |
elezar
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
Validation: This maintainer-authored PR is project-valid and directly advances the listener-discovery work related to #2215.
Head SHA: 18044d2ddaaab25063fa2f2be7adcbd65c03ec4a
Review findings:
- Two warning-level findings are left inline: the Podman callback discovery docs still describe only
pasta, and the startup listener log still omits listener purpose/provenance. - General warning:
docs/reference/gateway-config.mdxis not in the current diff, but it still needs a note that RPM/Podman leavesbind_addressunset, uses the built-in127.0.0.1:17670primary listener, and relies on restricted driver-negotiated callback listeners.
Docs: Updated in part, but the published compute-driver and gateway configuration docs still need the corrections above before gator can move this to pipeline watch.
Next state: gator:in-review
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
de1b4db to
ea7c159
Compare
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
Summary
Add a shared, gateway-owned contract for built-in compute drivers to report the
additional listeners required by their sandbox callback topology. Migrate
Docker and Podman to that contract so the primary gateway listener can remain
on its loopback default.
This PR is the production-scoped listener-discovery portion of #2215. It keeps
the initial authorization ceiling limited to the built-in Docker and Podman
topologies. Negotiated listeners expose only the generated sandbox-callable
gRPC surface; the operator-configured primary listener retains the full
multiplexed API.
Per-sandbox callback URI delivery, portable credential delivery, rootless
slirp4netnscallback support, and operator-configurable orinterceptor-extensible listener capabilities remain follow-up work.
Related Issue
Related to #2215
Depends on #2542
Changes
ComputeDriver.GetGatewayListenerRequirementswith exact-address andsemantic default-route/IPv4-loopback selectors.
UNIMPLEMENTEDfrom older external drivers as no additional listenerrequirements for protocol compatibility.
the gateway before persisted sandboxes resume.
request extensions, while keeping driver/reason provenance in listener
binding diagnostics.
before normal authentication and routing.
HTTP routes on callback listeners while leaving primary routing unchanged.
pastadefault-route interfaces, Podman Machine IPv4 loopback, and explicit Linux
host_gateway_ip.slirp4netns, unknown, or unreported. An explicitly remotegrpc_endpointremains supported for those environments.
Ubuntu 24.04/Podman 4 rootless E2E case until
slirp4netnssupport is added.and fail startup when a required local callback listener cannot be safely
discovered.
the gateway primary listener, while permitting arbitrary remote ports.
wildcard socket IPv6-only when necessary.
configurations, and the local rootless-Podman development launcher.
cluster diagnostics.
Testing
cargo test -p openshell-driver-podman(142 tests)mise run testmise run pre-commitmise run docsfailures, remote callbacks, IPv4 loopback selection, split-dual-stack
binding, callback-only routing, and unchanged primary-listener behavior
Docker and live Podman E2E were not run locally.
Checklist