Repository navigation
Description
bug(podman): unprivileged supervisor cannot initialize TLS CA, blocking provider traffic
A rootless Podman sandbox can start successfully while its supervisor fails to initialize TLS termination. Provider-routed requests then fail because the proxy refuses to forward traffic without credential rewriting.
This reproduces with a sandbox running only /bin/sleep; no agent framework, model server, or provider is needed to observe the CA initialization error.
Environment
- Linux ARM64, kernel
6.17.0-1014-nvidia. - Rootless Podman
5.8.7, usingpastanetworking and the native OpenShell Podman driver. - OpenShell
0.0.117-dev.180+g9b9f7905e, commit9b9f7905e11b7a10fb8d4f5b28d52109fddde2a9. - Gateway, sandbox runtime, supervisor, and CLI from that same commit.
- Resolved workload and supervisor identity: UID/GID
1000:1000. - Also reproduced with OpenShell
7e7a8d5610f336f5f7f9f60da0951adbf295475d.
The tested gateway runs in a rootless Podman container with access to the local Podman API socket. Its extracted runtime binaries are stored at a shared path accessible to the Podman host.
Reproduce the CA initialization failure
Prerequisites: a running gateway using the native Podman compute driver, an existing workspace, and an otherwise working sandbox image available in that Podman store. The image must resolve to UID/GID 1000:1000 and contain /bin/sleep.
Set GATEWAY, WORKSPACE, and IMAGE to those resources, then run:
openshell sandbox create \
--gateway-endpoint "$GATEWAY" \
--workspace "$WORKSPACE" \
--name tls-repro \
--from "$IMAGE" \
--no-auto-providers \
--detach -- /bin/sleep 600
# After the supervisor starts:
openshell logs tls-repro \
--gateway-endpoint "$GATEWAY" \
--workspace "$WORKSPACE" \
-n 1000Creation succeeds. The supervisor log contains:
CONFIG:DISABLED [HIGH] Failed to write CA files, TLS termination disabled: Permission denied (os error 13)
This command sequence was tested without attaching a provider or invoking an agent. It assumes an already configured gateway and working image; it is not a clean-host installation recipe.
Cleanup:
openshell sandbox delete tls-repro \
--gateway-endpoint "$GATEWAY" \
--workspace "$WORKSPACE"Effect on provider traffic
In a separate sandbox with a provider profile allowing Python access to a local HTTP inference fixture, this direct request succeeds from the host with HTTP 200 but fails from openshell sandbox exec:
import json
import urllib.request
request = urllib.request.Request(
"http://172.17.0.1:18915/v1/chat/completions",
data=json.dumps({
"model": "fixture",
"messages": [{"role": "user", "content": "Reply FOUR"}],
}).encode(),
headers={"Content-Type": "application/json"},
)
with urllib.request.urlopen(request, timeout=10) as response:
print(response.status, response.read().decode())The endpoint above is the owned test fixture, not a public service. Reproducing this traffic check requires a reachable fixture and an attached provider profile permitting the chosen endpoint and Python binary; the first reproduction does not.
Inside the sandbox, Python raises:
http.client.RemoteDisconnected: Remote end closed connection without response
The supervisor identifies why it denied the request:
TLS termination unavailable (CA initialization failed); refusing to tunnel — credential rewrite would be bypassed
The direct request uses only Python's standard library; the failure does not depend on an agent SDK.
Expected behavior and suspected cause
The supervisor should initialize its TLS CA under a directory writable by its runtime identity, while keeping CA private-key material inaccessible to the workload. Provider-mediated traffic should then be evaluated normally.
The Podman isolation specification runs the supervisor as the resolved workload identity but does not set OPENSHELL_PROXY_TLS_DIR. The network supervisor consequently uses /etc/openshell-tls, which UID 1000 cannot create in the tested supervisor image.
The Docker and Kubernetes drivers set OPENSHELL_PROXY_TLS_DIR=/run/openshell/proxy-tls. Podman already gives its supervisor a writable /run tmpfs. Applying the corresponding driver-owned TLS-directory setting appears to be the minimal fix, but that patch has not yet been tested.
Relevant source at the tested revision:
A regression test should cover both the generated supervisor environment and a non-root Podman sandbox that initializes TLS successfully and completes a provider-mediated request.
Exact tested images
gateway: ghcr.io/nvidia/openshell/gateway@sha256:40b2549de90d1f02227ef95b1dbe9bc620ca73368868e5317b42c431a280569d
supervisor: ghcr.io/nvidia/openshell/supervisor@sha256:906e3b73faf5d641d895db651e84179fef3520cf7d93ba75a5955a7bc35a68d1
sandbox runtime: ghcr.io/nvidia/openshell/sandbox@sha256:1bd7d17474d3cf573417808c1c7678b8280ed0b59d3f0c0162bfeec4fe197e72
Activity
docs: list v1 changes since v0.1.0-rc9 and correct stale example clai…