Skip to content

Multipass snap: add a content interface to expose multipass binaries #4401

@Abuelodelanada

Description

@Abuelodelanada

What are you trying to do?

I'm trying to execute multipass info from within another (strictly confined) snap.

What's your proposed solution?

According to @ogra:

"the only proper solution here would be if multipass exported all its binaries through a content interface that another snap could then consume"

As far as I understand, multipass snap should add something like this:

slots:
  multipass_binary:
    interface: content
    content: multipass_binary
    source:
      read: 
        - $SNAP/bin/multipass

Additional context

I have initiated a small project named multipass-exporter to expose Multipass' metrics in Prometheus format.

To create multipass metrics, the tool executes multipass info, but if the tool is packed in a strictly confined snap then it has no access to multipass binary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions