Lumirai-lightbox: auto-connect raw-usb, hardware-observe and network-manager; install and auto-connect snap-refresh-observe

Hello,

I’m the publisher of lumirai-lightbox (https://snapcraft.io/lumirai-lightbox) and would like to request auto-connection of raw-usb, hardware-observe and network-manager, and installation and auto-connection of snap-refresh-observe.

The snap runs on unattended kiosks installed by clinic IT, with no desktop session and usually no keyboard, so there is nobody at the device to run snap connect after install. That is why I’m asking for auto-connection rather than manual connection. Our devices currently wait on the startup console screen with the IP address until provisioned using an ssh which is not as polished an experience. While the device would still need provisioning to know room assignment etc, we would like to present our own UI (that displays the IP) before that step.

name: lumirai-lightbox
description: Single-purpose kiosk application for medical exam rooms. It runs
  full screen on Ubuntu Frame on Ubuntu Core (base core24, strict confinement,
  amd64) and displays a patient's imaging studies. The display stays locked
  behind a screensaver until a clinician taps their NFC ID badge on a USB card
  reader.
snapcraft: not publicly available; I can paste any part of it in this thread
upstream: PRIVATE
upstream-relation: The publisher is the upstream. Lumirai develops the
  application and publishes the snap.
plugs:
  raw-usb:
    request-type: auto-connection
    reasoning: The snap bundles its own pcscd (built from pcsc-lite) and the
      CCID driver, which open the USB NFC reader (ACS ACR1552U) used for the
      badge tap. Ubuntu Core has no host pcscd, so there is nothing for the
      pcscd interface to connect to, and the snap has to ship the daemon
      itself. The plug is declared only on the pcscd app, not on the Electron
      application. I'm not aware of a narrower interface that gives a CCID
      driver access to a USB reader; if there is one, I'm happy to switch.
  hardware-observe:
    request-type: auto-connection
    reasoning: Used by the same bundled pcscd to watch udev for the reader
      being plugged in, unplugged or replaced, so a reader swap works without
      a reboot. Declared only on the pcscd app.
  network-manager:
    request-type: auto-connection
    reasoning: The application has a Settings → Network page, behind a staff
      passcode, that lists Wi-Fi networks and joins one using nmcli. On a
      kiosk with no shell access for clinic staff, this is the only way to get
      the device onto the clinic's network or move it to a different one. The
      snap only plugs the interface; on Ubuntu Core the slot is provided by
      the network-manager snap.
  snap-refresh-observe:
    request-type: installation and auto-connection
    reasoning: Each time the application starts, it reports what it is running
      on to the clinic's own Lumirai server, so that support can see what a
      kiosk image contains without shell access to the device. For that it
      reads the list of installed snaps once per start, with GET /v2/snaps on
      /run/snapd-snap.socket, and sends each snap's name, version, revision
      and channel. The use is read-only. The snap does not watch refreshes,
      hold them or change anything in snapd. Without the plug it can only see
      its own version and revision. As far as I know the only other route to
      the list is snapd-control, which is far more than this needs; if there
      is a narrower interface for reading the list of installed snaps, I'm
      happy to use that instead. This is for future support and troubleshooting.

Other details

  • raw-usb, hardware-observe and network-manager are declared in the published revision. They are connected by hand today and the snap works with them connected.
  • snap-refresh-observe is not in the published revision, because we thought an upload that declares it without a grant would be held for review. Once granted, it will be declared on the application’s two apps (lumirai-lightbox and daemon), not on pcscd.
  • The remaining plugs (wayland, x11, opengl, browser-support, network, network-bind, audio-playback, and gpu-2404 from the gpu extension) need nothing special.
  • The software is proprietary and needs a Lumirai subscription to be useful. I can provide any detail about the snap’s contents or behaviour that helps the review.

Thank you, Joseph Maratt, MD Lumirai, www.lumir.ai

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

Hello @joe-lumirai,

Thank you for the detailed request, and apologies for the delay in response.

Given the defined functionality of the snap, this is a +1 from me for granting auto-connect for the raw-usb, hardware-observe, and network-manager interfaces. As for the snap-refresh-observe interface, it is intended for very specific use and provides much broader access than needed here. Due to the interface’s sensitive nature, and provided my understanding is that missing this interface only removes an observability feature of the snap, this is a -1 from me for granting use-of the snap-refresh-observe interface. What do other reviewers think?

Hi @elisehdy,

Thank you for the review.

We can work with that. The first 3 were the important ones for us.

All the best,

Joe

Hi @joe-lumirai

+1 from me as well to grant auto-connection of raw-usb, hardware-observe and network-manager interfaces.

Thank you @shishirsub10.

What happens now? Thank you.

Hello @joe-lumirai,

Apologies for the further delay and thank you for your understanding on snap-refresh-observe. +2 votes for, 0 votes against, granting auto-connect of interfaces raw-usb, hardware-observe, and network-manager to snap lumirai-lightbox. This is now live!

Please let me know if you experience any issues with the auto-connections.