Skip to content

Two podman driver fixes#1077

Open
cgwalters wants to merge 3 commits intoNVIDIA:mainfrom
cgwalters:podman-driver-fix
Open

Two podman driver fixes#1077
cgwalters wants to merge 3 commits intoNVIDIA:mainfrom
cgwalters:podman-driver-fix

Conversation

@cgwalters
Copy link
Copy Markdown

Summary

Two fixes for the podman driver.

Related Issue

None

Changes

Fix the capability dropping, and a fix for the e2e tests.

Testing

  • mise run pre-commit passes (well, almost, the binary hashing fails, but that's an existing bug I'll file separately)
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

cap_drop:ALL removes every capability in Podman's default set — including
CAP_DAC_OVERRIDE, CAP_CHOWN, CAP_FOWNER, CAP_SETUID, CAP_SETGID — and the
original cap_add list failed to re-add them which we need.

We also don't need to add CAP_SETUID and CAP_SETGID - those are defaults.

Signed-off-by: Colin Walters <walters@verbum.org>
Two bugs in the Podman e2e gateway startup:

1. Health check: curl probed /healthz on the main gRPC port, which always
   returns 404 because the health router is only served on --health-port
   (a separate listener, disabled by default). Allocate a second free port
   and pass --health-port to the gateway; health check now probes that port.

2. SSH port: --ssh-gateway-port was not set, so the gateway always told
   clients to connect SSH to port 8080 regardless of the actual port.
   Explicitly pass --ssh-gateway-port ${PORT} to fix sandbox exec/SSH.

Signed-off-by: Colin Walters <walters@verbum.org>
Port 8080 is commonly in use on developer machines and CI hosts, causing
the sandbox_create_keeps_sandbox_with_forwarding test to fail with a bind
error. Probe for a free port via TcpListener::bind("127.0.0.1:0") and
release it before handing it to sandbox_create.

Assisted-by: OpenCode (claude-sonnet-4-6@default)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters requested a review from a team as a code owner April 30, 2026 15:02
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Apr 30, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cgwalters cgwalters changed the title Podman driver fix Two podman driver fixes Apr 30, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

All contributors have signed the DCO ✍️ ✅
Posted by the DCO Assistant Lite bot.

@cgwalters
Copy link
Copy Markdown
Author

I have read the DCO document and I hereby sign the DCO.

recheck

@cgwalters
Copy link
Copy Markdown
Author

recheck

@cgwalters cgwalters closed this Apr 30, 2026
@cgwalters cgwalters reopened this Apr 30, 2026
@cgwalters
Copy link
Copy Markdown
Author

I have read the DCO document and I hereby sign the DCO.

@cgwalters
Copy link
Copy Markdown
Author

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant