Skip to content

app catalog: support web-UI applications (HTTP-served) — a 'port-ready' launch kind (Jupyter, OpenRefine, code-server, …) #590

Closed

Description

@scttfrdmn

Problem

spawn app launch only supports the single Linux X11 GUI app → DCV virtual session → browser model. A large share of what people actually want to launch serves its own web UI on a port and never touches DCV/X11: Jupyter/JupyterLab, OpenRefine, RStudio Server, VS Code (code-server), ComfyUI, Automatic1111, TensorBoard, Streamlit/Gradio/Dash/Shiny, MLflow, Label Studio, Ollama+OpenWebUI.

Today the readiness signal is DCV-specific (spored polls dcv list-sessions, writes a DCV spawn:ready-url). There is no path for a plain web app.

Proposal (net-new; design plan to follow)

Add a second app 'kind' to the catalog:

  • readiness = TCP/HTTP health on a port (not a DCV session);
  • spawn:ready-url points at that port (served through the wildcard TLS cert / a small reverse proxy for TLS);
  • skip the DCV install entirely (no dcvserver, no nice-xdcv/gl).

Schema: an alternative to dcv: true — e.g. kind: web with port:/health_path:, or serves_http: true. Reuses the existing container pull + BYO/overlay/--image machinery unchanged. spored already runs an HTTP server and writes tags, so the port-ready path is a scoped extension of the existing handshake, not a rewrite.

This roughly doubles the addressable app set and is arguably higher-demand than X11 viz for the research/ML audience.

Refs the app-catalog work (#290/#392). Highest-value follow-on to the #286/#389 base-AMI/DCV change (spawn v0.106.0).

Activity

  1. scttfrdmn commented on Sep 15, 2026

    @scttfrdmn
    ContributorAuthor

    Capability shipped + validated (spawn v0.107.0)

    The web launch kind is implemented, merged (#596/#597), and real-instance validated: spored probes the app's HTTP port, brings up a built-in :443 TLS reverse proxy (wildcard cert), and writes spawn:ready-url=https://<fqdn>/. Validated with nginx (HTTP 200 over TLS at the FQDN, ready tag written); instance terminated + leak-checked clean. Usable today via spawn app launch <name> --image <ref> --web-port <n> or a kind: web overlay entry. Docs: docs/catalog-schema.md (#593).

    Remaining (tracked here): seed built-in web catalog entries

    Shipping built-in code-server/jupyter/openrefine entries needs a small design first — they don't work as bare docker run <image>:

    • code-server binds container-localhost + password auth by default → needs --bind-addr 0.0.0.0:<port> (and an auth choice). jupyter needs a token or --IdentityProvider.token=''. So the catalog needs a command/args field threaded into buildWebUserData's docker run.
    • Security: a tokenless app on the world-open spawn-web SG (:443, 0.0.0.0/0) is a concern. Options to decide: keep the app's own auth (surface the token), restrict the SG to the launcher's IP, or add a proxy-level auth token to spored's :443 proxy (mirroring the DCV authToken) so web apps are gated regardless of the app.

    Leaving open to track the args-field + proxy-auth design + seeding (per #592: prefer existing upstream images).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions