Skip to content

fix(delivery): support rootless Podman in volume direct copy#275

Merged
skevetter merged 2 commits into
mainfrom
2a7d-20db-rootless-volume-fix
May 13, 2026
Merged

fix(delivery): support rootless Podman in volume direct copy#275
skevetter merged 2 commits into
mainfrom
2a7d-20db-rootless-volume-fix

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • Add podman unshare fallback in populateVolumeDirectCopy so the direct-copy path works with rootless Podman volumes whose mountpoints are inside a user namespace
  • Detect Podman runtime via filepath.Base(dockerCommand()) and route to populateVolumeViaUnshare which pipes binary data through podman unshare sh -c 'cat > "$1" && chmod 755 "$1"' -- <path>
  • Docker direct-copy path is completely unchanged
  • Uses positional argument passing ($1) to prevent shell injection from volume mountpoint paths

skevetter added 2 commits May 13, 2026 14:55
Rootless Podman volumes have mountpoints inside a user namespace that
the host process cannot write to directly. When the helper-container
path fails and we fall back to populateVolumeDirectCopy, detect Podman
via filepath.Base and pipe the binary through `podman unshare sh -c`
instead of os.WriteFile. Docker behavior is unchanged.
Pass destPath as a positional argument ($1) to sh -c instead of
interpolating it into the script string, preventing shell injection
if the volume mountpoint contains metacharacters.
@netlify

netlify Bot commented May 13, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit a03b1e3
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a04da0d9322500008721f17

@coderabbitai

coderabbitai Bot commented May 13, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 43 minutes and 5 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6bae8354-ae42-41e1-9876-daee7bcb5b5f

📥 Commits

Reviewing files that changed from the base of the PR and between 16a4d5e and a03b1e3.

📒 Files selected for processing (2)
  • pkg/agent/delivery/local_docker.go
  • pkg/agent/delivery/local_docker_test.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@skevetter
skevetter enabled auto-merge (squash) May 13, 2026 20:07
@skevetter
skevetter merged commit f489ccb into main May 13, 2026
56 checks passed
@skevetter
skevetter deleted the 2a7d-20db-rootless-volume-fix branch May 13, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant