Ubuntu Pro status system-files request for landscape-client

Hello,

I’d like to request auto-connection for the following interface for landscape-client:

plugs:
  var-lib-ubuntu-advantage-status:
    interface: system-files
    read:
      - /var/lib/snapd/hostfs/var/lib/ubuntu-advantage/status.json

Ubuntu Pro is part of the licensing model for Landscape but we can’t run pro status inside a strictly confined snap like landscape-client. This leads to registration failure for clients trying to register their devices under an Ubuntu Pro license/token (see bug report).

The /var/lib/ubuntu-advantage/status.json file provides an alternative mechanism to get Ubuntu Pro infomation on classic devices (see PR).

Thanks!

This is a required functionality for this snap and the use of system-files here is scoped to the bare minimum information required, as such +1 from me for this request. One thing though - you do not specify whether you want this to be auto-connected at install or not - I am assuming this is the case, but if you could please confirm this @st3v3nmw that would be great. Thanks.

Hi yes, autoconnection on installation.

+1also from me for granting landscape-client READ access to /var/lib/snapd/hostfs/var/lib/ubuntu-advantage/status.json via auto-connection of the defined system-files interface

The plug has been configured with auto-connection as the voting criteria has been met. Thanks all!