Skip to content

feat: add Podman sandbox backend for daemonless execution - #1057

Merged
AmitoVrito merged 3 commits into
SynapseKit:mainfrom
ramashishmaurya:feat/podman-sandbox-backend
Oct 2, 2026
Merged

AmitoVrito merged 3 commits into
SynapseKit:mainfrom
ramashishmaurya:feat/podman-sandbox-backend

Conversation

@ramashishmaurya

Copy link
Copy Markdown
Contributor

Summary

This PR introduces a Podman sandbox backend (podman) as a rootless, daemonless alternative to Docker. This allows developers—especially those in enterprise or highly-regulated Linux environments—to securely run AI agents without needing the Docker daemon privileges.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / internal improvement
  • Dependency / tooling update

Changes

  • Created PodmanBackend in src/synapsekit/sandbox/backends/podman.py extending SandboxBackend.
  • Implemented probe(), start(), exec(), and close() using the native podman CLI commands, matching the functionality and networking policies of the Docker backend.
  • Registered the new "podman" backend inside src/synapsekit/sandbox/backends/base.py's build_backend factory.

Testing

  • All existing tests pass (uv run pytest tests/ -q)
  • New tests added for new behaviour
  • No API keys or secrets in the code

Documentation

  • Docstrings updated (if public API changed)
  • synapsekit-docs updated (if new feature)
  • CHANGELOG.md updated

Notes for reviewer

  • The implementation intentionally mirrors the DockerBackend since the CLI flags for docker run and podman run are nearly identical for these use cases.
  • We might want to add dedicated tests for Podman environments in the CI pipeline if one isn't already available. Let me know if you'd like me to add those!

ramashishmaurya and others added 2 commits September 28, 2026 12:15
PodmanBackend mirrored DockerBackend's hardening flags but shipped with
no test coverage. Mirror the existing Docker backend test pattern
(monkeypatched run_process, no mocks) to cover start()'s restrictive
defaults, exec()/close() command construction, probe() failure
reporting, and build_backend("podman") registration.

Co-authored-by: ramashishmaurya <[email protected]>
@AmitoVrito
AmitoVrito merged commit 30f1cda into SynapseKit:main Oct 2, 2026
19 checks passed
@AmitoVrito

Copy link
Copy Markdown
Collaborator

Thanks for this, @ramashishmaurya! Merged. I added a bit of test coverage mirroring the existing Docker backend tests since the implementation itself was solid as-is.

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.

2 participants