Auto-connection request for maat: log-observe, system-observe, mount-observe

Hello store reviewers,

I’d like to request auto-connection of three interfaces for maat (source), a strictly confined MCP server that gives AI agents read-only diagnostics of the machine it runs on. It can’t do anything useful without these interfaces, and today every user has to connect them by hand:

  • log-observe: reads the systemd journal, including AppArmor denials, which is the main evidence for troubleshooting.
  • system-observe: lists systemd units and their states over D-Bus, and reads process information.
  • mount-observe: reads the mount table and filesystem usage for disk diagnostics.

The snap deliberately has no network plug, and no network-observe either, because testing showed it allows outbound TCP. So the snap itself can’t send anything off the machine; what it reads goes only to the MCP client that launched it. It never changes the system: fixes are proposed as plans that a person applies through polkit with a separate, unconfined tool. maat selftest shows the confinement holding on any machine.

Thanks for considering it.

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

Hello @boulesawny :slight_smile:

Thank you for the detailed request. Given the reasoning provided and the snap’s functionality, this makes sense to me, so +1 for granting auto-connection of the log-observe, system-observe, and mount-observe interfaces to the maat snap!

Thank you @yomonokio for the review and the +1. Much appreciated. can you tell me what should I do now?

1 Like

Hello @boulesawny :slight_smile:

In order to proceed with your request, one more vote from another reviewer is required. Once you get 2 positive votes, we can proceed with granting the request!

Hi folks!

I understand that log-observe is a core requirement and fits the application’s functionality. However, this interface grants dac_override and should be treated as sensitive. Thus, I believe that considering auto-connection for log-observe would require publisher vetting.

Looking at the upstream repository, it seems to be a new project with little to no community around it. Thus, I believe the only possible option for now would be to apply for a verified account, provided the requirements are met.

If applying for a verified account is not an option here, I think we should stick to manual connection for the time being. Please note that your application can use snapctl is-connected to check whether an interface is connected at runtime and provide the user with instructions on how to manually connect the interface if needed.

Thanks!

Thanks @yomonokio and @jslarraz. As I understand the Verified Accounts policy, it’s for organisations, and I’m an individual developer. But I’m the upstream author of maat (github.com/bolesawny7/maat), so I’m happy to go through publisher vetting and commit the token to the repository.

If you’d still rather keep manual connection while the project is young, that’s fine with me. Users have to join the systemd-journal group for journal access anyway. Either way, I’ll take the snapctl is-connected suggestion so maat tells users exactly which interfaces to connect.

Hi @boulesawny

Thanks for you understanding. Yes, the verified accounts process is for organizations. I think that sticking to manual connection while the project is young is the right choice here.

Regarding system-observe and mount-observe, +1 from me for granting auto-connection.

Thanks

+2 votes for, 0 against granting auto-connection of system-observe and mount-observe to maat.

Thank you for understanding the restrictions about log-observe :slight_smile:

This is now live!