Hi! I’m the publisher of the `roam` snap (https://snapcraft.io/roam), a desktop Kubernetes client (a cluster dashboard with logs, shells, Helm and metrics). It talks to the user’s own clusters directly from their computer; there is no server in between.
Revision 8 was reviewed and the reviewer asked me to request personal-files here. I’d like installation and auto-connection of the `kube-config` plug:
plugs:
kube-config:
interface: personal-files
read:
- $HOME/.kube
Kubeconfig files live in ~/.kube (~/.kube/config by default, the location kubectl, helm and every Kubernetes tool use). The `home` interface doesn’t cover hidden directories, so without this plug the app can’t find the user’s clusters on first launch. Access is read-only and limited to ~/.kube. Roam only reads these files to connect to the clusters they describe; their contents are never sent anywhere.
The same review flagged our session D-Bus name as too generic. The next upload declares a name under our app id instead:
slots:
single-instance:
interface: dbus
bus: session
name: dev.kuberoam.Roam
Roam owns it to keep a single instance: launching Roam again asks the running one to show its window. (dev.kuberoam.Roam is also the app’s Flatpak id and AppStream id; the website is kuberoam.dev.)
Snap: roam
Publisher: richardpham201
Source of the snap: the release tarballs at Releases · kuberoam/kuberoam · GitHub, repackaged with base core24 and the gnome extension.
Thanks!
This request has been added to the queue for review by the @reviewers team.
Update: I’ve narrowed the request after looking at what Roam actually reads.
Roam only opens ~/.kube/config on its own. Any other kubeconfig gets imported by pasting it or choosing it. So the plug now covers that one file instead of the whole ~/.kube directory:
plugs:
kube-config:
interface: personal-files
read:
- $HOME/.kube/config
Access is read-only. Until the plug is connected, the import tells the user to run snap connect roam:kube-config, or to paste the kubeconfig instead.
The snap also plugs password-manager-service, to keep its encryption key in the keyring. I’m not asking for that one to be auto-connected. Without it, Roam keeps the key in a 0600 file in its own data directory. Roam checks the plug with snapctl is-connected, and Settings explains what connecting it allows and gives the snap connect roam:password-manager-service command.
The D-Bus name change from my first post (dev.kuberoam.Roam) is unchanged. The next upload will include both changes.
Thanks!
Hi @richardpham201
Re dbus: I have granted access of dev.kuberoam.Roam dbus interface.
Re password-manager-service: That is the right approach. We do not usually grant auto-connection for password-manager-service and manual connection is the way to go.
Re personal-files: Access to the kubeconfig file is expected for an application that manages Kubernetes cluster. +1 from me to grant read access to $HOME/.kube/configfile using personal-files interface with auto-connection after successful publisher vetting.
What do other reviewers think?
1 Like
Hello @richardpham201 
This is a + from me also, for granting auto-connection of the personal-files interface to the roam snap!
1 Like
Hi @richardpham201
personal-files is a super-privileged interface and before granting the access, we perform publisher vetting to verify our trust in the publisher. When the upstream source code is private, the publisher is vetted through the Verified Accounts process. Kindly let me know once you have completed the vetting process. Thanks!
1 Like