Classic Confinement request: openapi-oathkeeper

To make the review of your request easier, please use the following template to provide all the required details and also include any other information that may be relevant.


I understand that strict confinement is generally preferred over classic.

I’ve tried the existing interfaces to make the snap to work under strict confinement.

Hey @cerberauth

I don’t think openapi-oathkeeper fits in the tools for local, non-root user driven configuration of/switching to development workspaces/environments category. Moreover, the reasoning matches the unsupported reason: access to arbitrary files on the system due to developer/user inertia.

I think a strictly confined snap with home interface + manually connected removable-media makes more sense in this case.

Thanks!

Hi @jslarraz ,

Thank you for the clarification. I will proceed with strict confinement.

I do want to flag one situation that this approach does not fully cover. In many development environments openapi spec files are stored under system paths that fit developer workspace such as /var/ rather than under a user’s home directory.

With strict confinement and no straightforward workaround other the solution would be that the developer copy their openapi file into $HOME before running the CLI. That is not a great developer experience, and I am not sure it is a sustainable expectation for a tool primarily aimed at developers.

I understand the security rationale behind these rules but it does not offer a good developer experience. As a workaround, I will document this limitation clearly and direct affected users to the binary release as an alternative.

Thanks for your understanding

A usual approach is publishing the strictly confined snap to the store, which usually covers most scenarios. Distribute a classic snap directly from Github Releases for the rest of the users.

Of course this is up to you, but this way can still benefit from the snap dependencies model compared with directly distributing the binary artifact

Thanks!

1 Like

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