Repository navigation
feat(spawn): shared extensions (build.shared) and org.flatpark.Spawn, with a CI allow-list for apps that use it - #1566
Merged
Conversation
… with a CI allow-list for apps that use it flatpark-spawn (flatpark/flatpark-spawn, v0.1.0) is a Flatpak extension shared by every app that declares it, on any runtime. It is FlatPark's first extension with no parent app; this teaches the pipeline that kind of extension, lists it, and gates the apps that may use it (empty allow-list for now). Refs #1565.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
flatpark-spawn (flatpark/flatpark-spawn, v0.1.0) is a Flatpak extension shared by every app that declares it, on any runtime: an app holding
--talk-name=org.freedesktop.Flatpakruns the commands its tools call on the host. It is FlatPark's first extension with no parent app; this PR teaches the pipeline that kind of extension and lists it.Shared extensions (
build.shared: true, exclusive withbuild.extends)registry/<id>/<id>.BuildParent.yml, whichinstall-parent-skeleton.sh --manifestinstalls for the build and removes; it is never exported to the published repo.check-apply-extra.shunpacks on the stand-in's runtime (the extension's[ExtensionOf] runtime=).mkdir, sdk version, runtime), plus the usual extension payload rules.IsRuntime=true; the site files it under Extensions with no parent, no permissions of its own, and lists the apps that use it; those apps link back to it.Apps that use flatpark-spawn (SPEC §2.2)
config/flatpark-spawn.ymlis the allow-list; adding an id grants that app a way out of the sandbox. It is empty: VS Code moves to flatpark-spawn in its own PR.org.flatpark.Spawn(or references flatpark-spawn) unless it usesversion: '1',directory: lib/flatpark-spawn, noautodelete: trueorno-autodownload: true, creates the mount point, has the talk-name, declares it indangerous_permissions, declareshost-command, and is on the allow-list. A change to the allow-list audits the whole catalog.org.flatpark.Spawn: manifest, apply_extra and metainfo as in flatpark-spawn's
packaging/(v0.1.0, x86_64 + aarch64); resolver reads the release's SHA256SUMS and SIZES.Docs: extensions.md (shared extensions, using one, how it builds), permissions.md (running commands on the host: flatpark-spawn, what it costs, the audit, the allow-list, turning it off), system-services, review runbook, users/override.
Tested:
tests/run-tests.sh(newtest_shared_extensions.sh, cases intest_check_apply_extra.shandtest_registry.sh); full-catalog audit identical to main apart from the new entry; built withbuild-app.sh,check-apply-extra.shpasses, installed withpublish.sh --verify(flatpark-spawn -version→ 0.1.0, no stand-in ref in the repo); mounted into a throwaway fd 26.08 app and forwarded a command to the host; site built with a fixture app using it.Part of #1565.
Decided: pages of apps that use flatpark-spawn show the talk-name permission as a red warning (it leaves the sandbox on purpose and for good, not for one call).
catalog.upstream_approvedis not set: the approvals table is for third-party upstreams, and a general marker for FlatPark's own infrastructure (flatpark-spawn, cellar) is a separate change. The extension's page doesn't mention that apply_extra runs on freedesktop 26.08; extensions.md does.Follow-ups
upstream_approved.