Classic confinement request for RavensPort

name: ravensport

description: RavensPort is a local OAuth2 reverse proxy and MCP funnel. It gives each AI agent its own MCP endpoint, pools the MCP servers the user picks, and exposes only the tools the user allows. OAuth2 is handled for the agent. Credentials, tokens, routes and funnels are stored in the user’s own password manager (1Password or Proton Pass), and RavensPort talks to that password manager on the host.

snapcraft: https://github.com/abishekvupputur/ravensPort/blob/main/snap/snapcraft.yaml

upstream: https://github.com/abishekvupputur/ravensPort

upstream-relation: I am the author and maintainer of the upstream project.

supported-category:

reasoning:

RavensPort keeps no secrets of its own. It brokers access to the user’s password manager, and both supported backends are reached through host-side endpoints that strict confinement blocks:

  1. Proton Pass: it runs the user’s own pass-cli binary from the host. RavensPort starts pass-cli as a child process for each vault operation. Before running it, RavensPort checks where the binary came from, because that binary is what holds the user’s vault session. pass-cli is installed by the user on the host, from Proton’s own package or a tarball, and it is not published as a snap. Under strict confinement the snap only sees the base snap’s /usr, so it cannot find or run the host’s pass-cli. RavensPort can’t bundle pass-cli either: the whole point is to use the user’s own install of the CLI, and it is Proton’s binary to ship, not mine.

  2. 1Password: it uses 1Password’s abstract Unix socket. RavensPort uses the 1Password SDK’s desktop-app integration. The 1Password desktop app listens on the abstract socket @1PASSWORD_SDK_INTERGATIONS. Before loading the SDK library, RavensPort reads /proc/net/unix to check that the socket exists, because loading the library when the app isn’t running has side effects. The library then connects to that socket. The 1Password desktop app is an unconfined host process. I don’t know of an interface that lets a strict snap connect to an arbitrary abstract socket owned by an unconfined peer: AppArmor’s unix mediation denies the connection.

The system keyring access that RavensPort also needs (it keeps the Proton Pass session key there, via libsecret and D-Bus) is covered by password-manager-service, so that part is not a reason for classic.

Classic also keeps the real $HOME, so a snap install and a .deb install of RavensPort share the same settings and vault session.

I understand that strict confinement is generally preferred over classic.

  • I’ve tried the existing interfaces to make the snap work under strict confinement.

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

Hello @abishekvupputur :slight_smile:

Given the reasoning provided, the ravensport snap is not a good candidate for classic confinement for the following reasons:

  1. Running the host’s pass-cli falls under “dependent software only available on host,” which is an unsupported reason for classic confinement.
  2. Sharing $HOME with the .deb package falls under the—also unsupported—“access to dot files in $HOME” category. The strict alternative is using personal-files scoped to your own config/session directory (e.g., ~/.local/share/RavensPort).
  3. Classic confinement is a sensitive matter and is reserved for mature, well-known applications published by mature, well-known entities. As of today, ravensport does not meet these criteria because:
    • The project appears to be very new, according to the upstream repository.
    • The project seems to have little to no community activity according to the upstream repository (contributors, issues, PRs, etc.).
    • I could not find evidence that the project currently has a sufficiently large user base.

Thus, considering these factors, ravensport should not be granted classic confinement at this time.