Skip to content

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:

  1. JSON Schema (app-manifest-v1.json) validation:
    • Required fields (id, name, version, category, compatibility.fynncloud), valid kebab-case id matching the directory name, strict SemVer version, valid permissions from the exact 12 allowed scopes, no :latest image tag, non-zero deploy.user UID.
  2. SDK-vs-compatibility.fynncloud check:
    • CI inspects @fynncloud/app-bridge usage and feature declarations to verify your compatibility.fynncloud SemVer range actually matches the host version required by the capabilities you use.
  3. Monochrome icon.svg validation:
    • apps/<app-id>/icon.svg must be a clean monochrome SVG glyph using fill="currentColor" (no embedded raster images, scripts, or hardcoded multi-color fills) so it adapts to Light/Dark themes and tinted branding tiles.
  4. Hero showcase image & gallery validation:
    • hero.png (or .webp/.jpg) must be at least 1280×720 resolution.
    • Optional gallery/ screenshots (max 10) are validated against manifest.gallery if specified.
  5. OCI Image Digest Pinning & Multi-Arch Verification (resolve-image-digest.js):
    • Resolves the declared deploy.image tag against the container registry, verifies OCI manifest SHA-256 integrity, and checks multi-architecture (linux/amd64 + linux/arm64) coverage matching deploy.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).

Before opening a pull request, run the catalog builder locally:

Terminal window
# Validate manifests, assets, and schemas without requiring already-pushed OCI digests
node scripts/build-catalog.js --dry-run --allow-unresolved-digest
# Full validation including live OCI registry digest & multi-arch resolution
node scripts/build-catalog.js --dry-run

  • Patch (1.0.1): Bug fixes, security patches, dependency updates. Never widens permissions or compatibility.apps.
  • Minor (1.1.0): Backward-compatible features or new optional hooks/permissions.
  • Major (2.0.0): Breaking database/API changes or new compatibility.fynncloud floor.

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