Publishing & Catalog CI
The official FynnCloud App Store catalog (apps.fynncloud.ch) is generated from the FynnCloudProject/apps repository using scripts/build-catalog.js and scripts/resolve-image-digest.js.
Submission Checklist & Automated CI Validation
Section titled “Submission Checklist & Automated CI Validation”Every PR adding or updating apps/<app-id>/ runs strict automated checks before publishing:
- JSON Schema (
app-manifest-v1.json) validation:- Required fields (
id,name,version,category,compatibility.fynncloud), valid kebab-caseidmatching the directory name, strict SemVerversion, valid permissions from the exact 12 allowed scopes, no:latestimage tag, non-zerodeploy.userUID.
- Required fields (
- SDK-vs-
compatibility.fynncloudcheck:- CI inspects
@fynncloud/app-bridgeusage and feature declarations to verify yourcompatibility.fynncloudSemVer range actually matches the host version required by the capabilities you use.
- CI inspects
- Monochrome
icon.svgvalidation:apps/<app-id>/icon.svgmust be a clean monochrome SVG glyph usingfill="currentColor"(no embedded raster images, scripts, or hardcoded multi-color fills) so it adapts to Light/Dark themes and tinted branding tiles.
- Hero showcase image & gallery validation:
hero.png(or.webp/.jpg) must be at least1280×720resolution.- Optional
gallery/screenshots (max 10) are validated againstmanifest.galleryif specified.
- OCI Image Digest Pinning & Multi-Arch Verification (
resolve-image-digest.js):- Resolves the declared
deploy.imagetag against the container registry, verifies OCI manifest SHA-256 integrity, and checks multi-architecture (linux/amd64+linux/arm64) coverage matchingdeploy.architectures. - PR tag-drift protection: CI fails pull requests if an already-published tag’s digest changed upstream without bumping
version(preventing silent mutable tag swaps).
- Resolves the declared
Local Dry-Run Verification
Section titled “Local Dry-Run Verification”Before opening a pull request, run the catalog builder locally:
# Validate manifests, assets, and schemas without requiring already-pushed OCI digestsnode scripts/build-catalog.js --dry-run --allow-unresolved-digest
# Full validation including live OCI registry digest & multi-arch resolutionnode scripts/build-catalog.js --dry-runVersioning & Upgrade Lifecycle
Section titled “Versioning & Upgrade Lifecycle”SemVer Discipline
Section titled “SemVer Discipline”- Patch (
1.0.1): Bug fixes, security patches, dependency updates. Never widenspermissionsorcompatibility.apps. - Minor (
1.1.0): Backward-compatible features or new optional hooks/permissions. - Major (
2.0.0): Breaking database/API changes or newcompatibility.fynncloudfloor.
Admin App Lifecycle REST Endpoints
Section titled “Admin App Lifecycle REST Endpoints”Instance administrators (and the Admin UI at /admin/apps) manage installed apps through these endpoints:
| Method & Path | Purpose |
|---|---|
GET /api/apps |
List installed apps, runtime status, health, and compatibility state |
POST /api/apps/install |
Install an app from the catalog (or dev endpoint); provisions isolated network, database schema, volume, and FYNNCLOUD_APP_SECRET |
PUT /api/apps/:id/update |
Upgrade an installed app to a new manifest/image. Returns 409 Conflict if new permissions or wider compatibility.apps require explicit admin re-consent |
POST /api/apps/:id/enable / disable |
Start or stop the app container without removing its database or volume |
POST /api/apps/:id/restart |
Restart the app container |
DELETE /api/apps/:id |
Uninstall the app, tear down container/network, and optionally purge provisioned DB schema & data volume |
GET /api/apps/:id/logs |
Fetch recent container logs for troubleshooting |