Skip to content

Two podman driver fixes - #1077

Merged
maxamillion merged 2 commits into
NVIDIA:mainfrom
cgwalters:podman-driver-fix
May 5, 2026
Merged

Two podman driver fixes#1077
maxamillion merged 2 commits into
NVIDIA:mainfrom
cgwalters:podman-driver-fix

Conversation

@cgwalters

Copy link
Copy Markdown
Contributor

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)

@cgwalters
cgwalters requested a review from a team as a code ownerApril 30, 2026 15:02
@copy-pr-bot

Copy link
Copy Markdown

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.

@cgwalterscgwalters changed the title Podman driver fixTwo podman driver fixesApr 30, 2026
@github-actions

github-actionsBot commented Apr 30, 2026

Copy link
Copy Markdown

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

@cgwalters

Copy link
Copy Markdown
ContributorAuthor

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

recheck

@cgwalters

Copy link
Copy Markdown
ContributorAuthor

recheck

@cgwalterscgwalters reopened this Apr 30, 2026
@cgwalters

Copy link
Copy Markdown
ContributorAuthor

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

@cgwalters

Copy link
Copy Markdown
ContributorAuthor

recheck

maxamillion
maxamillion previously approved these changes May 1, 2026

@maxamillionmaxamillion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

drew
drew previously approved these changes May 1, 2026
@cgwalters
cgwaltersforce-pushed the podman-driver-fix branch 2 times, most recently from 154bb13 to 2223e77CompareMay 4, 2026 17:18
@cgwalters
cgwalters requested a review from maxamillionMay 5, 2026 12:39

@maxamillionmaxamillion left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you for the fixes!

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>
Sign up for freeto 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.

3 participants

@cgwalters@drew@maxamillion