Privileged interface request for `openshell` (podman and kvm)

name: openshell
description: Safe, sandboxed runtimes for autonomous AI agents
snapcraft: https://github.com/jslarraz/foo/snapcraft.yaml
upstream: https://github.com/jslarraz/foo
upstream-relation: contributor working with upstream to improve the snap
plugs:
  podman:
    request-type: manual-connection and auto-connection
    reasoning: OpenShell auto-selects its compute driver based on what daemons it can reach, choosing either docker, podman, or vm. Other packaging formats (.deb, .rpm) support podman, so if the user prefers podman, they should be able to use it for the OpenShell snap as well.
  kvm:
    request-type: auto-connection
    reasoning: kvm is required for the built-in VM compute driver to function, which allows the snap to work out of the box without relying on preinstalled Docker or Podman. We want to avoid requiring manual steps by the user to get this to work, so auto-connecting the kvm interface makes the OpenShell snap Just Work and provide secure MicroVM sandboxes by default.

The kvm interface is being added in a currently-open PR (feat(snap): ship the VM driver in the snap and use it by default by olivercalder · Pull Request #4627 · NVIDIA/OpenShell · GitHub), so is not yet in the upstream snapcraft.yaml. The VM driver is the built-in driver for OpenShell which doesn’t require any external prerequisites (like Docker or Podman), so auto-connecting the kvm interface ensures that the OpenShell snap works out-of-the-box without additional manual intervention required by the user.

The podman interface is similarly planned to be added in a PR, but since the podman base declaration (snapd/interfaces/builtin/podman.go at master · canonical/snapd · GitHub) has both deny-connection: true and deny-auto-connection: true, I don’t even want to open the PR yet because there’s no way to test it except manually downloading the snap and then installing with --dangerous, which is not how testing works for the OpenShell snap. So if we can add an assertion to allow (auto-)connection for the podman interface, we can test and land support for podman in the snap upstream.

1 Like

This request has been added to the queue for review by the @reviewers team.

Hello @oac,

Based on the expected functionality, this is a +1 from me for granting auto-connection for both the podman and kvm interfaces. What do other reviewers think?

1 Like

Hey folks!

I think both interfaces are reasonable considering openshell functionality.

podman, similar to docker grants a very high level of privilege and auto-connection is not granted in most cases. However, I can see that this snap is publish by NVIDIA, which is a very well-known and mature entity. Additionally the snap its published under their verified account.

Thus, +1 from me for granting openshell auto-connection to kvm and podman interfaces.

Thanks

1 Like

+2 for, 0 against granting openshell auto-connection to kvm and podman interfaces. This is now live.

1 Like