Peridot (strict): D-Bus name declaration and auto-connect for password-manager-service, audio-record

name: peridot
description: Peridot edits, previews and indexes a folder of Markdown notes on your own machine. Strict snap; revision 3, version 1.1.3 is in the manual review queue for the slot below.
snapcraft: not public
upstream: PRIVATE
upstream-relation: the publisher (Noetisphere Innovations Private Limited) is the developer
plugs:
  password-manager-service:
    request-type: auto-connection
    reasoning: Peridot keeps one entry in the user's Secret Service keyring, the device
      key that encrypts its own local sign-in store. Nothing else is read or written.
      Without it, the user has to sign in again at every start.
  audio-record:
    request-type: auto-connection
    reasoning: used only by Dictate, while the user holds the dictate button. Speech is
      turned into text on the device; audio is never saved and never sent anywhere.
slots:
  peridot-si:
    interface: dbus
    attributes:
      bus: session
      name: com.noetisphereai.peridot.SingleInstance
    request-type: manual-connection
    reasoning: tauri-plugin-single-instance owns this session-bus name so that a second
      launch, for example a peridot:// link opened from the browser after a payment or a
      sign-in, hands its URL to the window already open instead of starting a second copy.
      The name is our bundle identifier (com.noetisphereai.peridot) plus ".SingleInstance".
      Revision 3's automated review stops on declaration-snap-v2_slots_connection
      (peridot-si, dbus). Revision 2 (strict, 1.1.1) was removed from the review queue and
      will not be released. Our earlier classic request
      (https://forum.snapcraft.io/t/classic-confinement-request-for-peridot/53722) was
      withdrawn; this snap is strict.

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

Hello @Noetisphereai :slight_smile:

Concerning the DBus slot, I’ve just granted it as it doesn’t require voting and meets the naming criteria.

The password-manager-service interface, we generally discourage auto-connecting this interface, as Its access is broad: once connected, a snap can read and change every secret in the user’s Secret Service / KWallet session, not just its own. Peridot may only ever touch one entry, but the interface can’t enforce that. The reverse also applies: Peridot’s device key can be read by any other app with access to the service, including other snaps that have password-manager-service connected. Hence, this is a -1 from my side, for auto-connecting password-manager-service to the Peridot snap.

Finally, given the reasoning provided, auto-connecting the audio-record interface makes sense to me so this is a +1 , for auto-connecting audio-record` to your snap.

Thank you @yomonokio for granting the D-Bus slot.

password-manager-service: understood, we withdraw the auto-connection request. The store listing now tells users to connect it themselves with:

sudo snap connect peridot:password-manager-service

audio-record: your last sentence says “+1, for auto-connecting password-manager-service”, but the reasoning above it is about audio-record. Could you confirm the +1 is for auto-connecting audio-record?

Hello @Noetisphereai :slight_smile:

My mistake, sorry! To clarify:

  • -1 from my side, for auto-connecting password-manager-service to the Peridot snap.
  • +1 , for auto-connecting audio-record to the Peridot` snap.

(I also updated my reply above)

The right way to manage secrets from confined applications by using the Secret - XDG Desktop Portal. Please check Using the Secret portal - Snap documentation for a working example using the tauri framework.

Thanks

According to the snap description, the dictation functionality enabled by the audio-record interface does not look a core functionality to me. I believe the snap may possibly be completely functional without it being connected.

Additionally, the snap functionality does not make evident for the user that audio-record interface would be connected by default.

I would therefore suggest to stick to manual connection and let the user decide. peridot can use snapctl is-connected to detect whether the interface is connected or not at runtime. Then, the application may provide the user information about how to manually connect it if needed.

-2 votes for the password-manager password and +1/-1 votes for the audio-record one, hence we can not proceed with granting.

Feel free to message, us if you need further assistance :slight_smile: