Classic confinement request for rooste-ssh

  • name: rooste-ssh

  • description: Rooste SSH is a graphical SSH client: tabs and split panes, a session manager, an SFTP file panel, port forwarding and jump hosts, and a built-in key generator and SSH agent. It also opens telnet, raw TCP and serial connections.

  • snapcraft: https://github.com/rooste-ssh/rooste-ssh/blob/main/packaging/snap/snapcraft.yaml (classic), and the strict version I tested: https://github.com/rooste-ssh/rooste-ssh/blob/snap-strict/packaging/snap/snapcraft.yaml

  • upstream: https://github.com/rooste-ssh/rooste-ssh

  • upstream-relation: I’m the upstream author and maintainer.

  • supported-category: terminal emulators, multiplexers and shells. It’s a terminal for remote shells over SSH, telnet and serial.

  • reasoning: I built and tested a strictly confined version with home, ssh-keys, network, network-bind, password-manager-service, removable-media and serial-port, using HOME=$SNAP_REAL_HOME so ~/.ssh is reachable through ssh-keys.

    What works when strict: settings, reading ~/.ssh (keys, known_hosts, config), connecting to servers already in known_hosts, saved passwords in the system keyring (password-manager-service), SFTP uploads and downloads (including through the desktop’s file chooser), and the app’s built-in agent.

    What doesn’t work when strict:

    1. The user’s own SSH agent. Connecting to SSH_AUTH_SOCK is denied, so key logins through the agent fail and the user is asked for the key passphrase on every connection. The same login works without a prompt from the non-snap build on the same machine. Denial: apparmor="DENIED" operation="connect" class="file" profile="snap.rooste-ssh.rooste-ssh" name="/run/user/1000/gcr/ssh" comm="rooste-net" requested_mask="wr" The socket path depends on the agent: GNOME’s gcr, ssh-agent under /tmp/ssh-*, gpg-agent, KeePassXC, 1Password and others. I didn’t find an interface that grants connecting to it.

    2. Saving host keys. ssh-keys gives read-only access to ~/.ssh. Accepting a new server’s host key means appending it to ~/.ssh/known_hosts, which is denied, so the app can’t connect to any server that isn’t already in known_hosts: apparmor="DENIED" operation="open" class="file" profile="snap.rooste-ssh.rooste-ssh" name="/home/martin/.ssh/known_hosts" comm="rooste-net" requested_mask="ac" Keeping a separate known_hosts inside the snap would mean host keys the user already trusts with OpenSSH aren’t shared, in either direction.

    3. Serial ports. The serial-port plug has no slot on desktop systems without a gadget or hotplug, so opening /dev/ttyS* / /dev/ttyUSB* fails with “Permission denied”. Serial consoles for routers and switches are a core use of the app.

    If there’s a strict way to reach the user’s agent socket, write ~/.ssh/known_hosts and open serial devices that I’ve missed, I’m happy to use it instead.

[x] I understand that strict confinement is generally preferred over classic.

[x] 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.

Please use teh template from:

(and also read the linked document), to make the life of the reviewers easier …

Sorry about that, I’ve updated the first post to use the template and added test results from a strictly confined build.

Hello @matbcvo :slight_smile:

It is plausible that there are technical reasons why rooste-ssh needs classic to work properly in all scenarios, but please note that classic confinement is a sensitive matter and it is reserved for mature, well-known applications published by mature, well-known entities. As of today, I believe that rooste-ssh doesn’t meet these criteria because of the following reasons:

  • The project seems to be very fresh, according to the upstream repository
  • The projects seems to have little/none community around according to upstream repository (contributors, issues, PRs, etc.)
  • I could not find evidences that the project has a strong enough user base currently

Thus, considering these factors, I think rooste-ssh should not get classic confinement as of now.