Repository navigation
feat(app): web-UI app kind — serve an app's own web UI via a spored TLS proxy (#590) - #596
Merged
Merged
Conversation
…LS proxy (#590) Add a 'web' launch kind for apps that serve their own HTTP UI (Jupyter, code-server, OpenRefine): run the container publishing its port on localhost; spored probes the port, starts a built-in TLS reverse proxy on :443 (wildcard cert from spawn-certs), and writes spawn:ready-url=https://<fqdn>/. No DCV; idle uses the generic path. New LaunchConfig AppMode/ReadyPort/ReadyHealthPath + tags, spawn-web SG (:443), CLI poll accepts status=ready (no token) and parses port-less hosts, named web statuses. --web-port/--health-path launch BYO web apps. Unit-tested (buildWebUserData, buildWebReadyURL, ready-tag parse). Refs #590.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…S proxy; regen docs The :443 TLS reverse proxy must bind all interfaces (public web app, gated by the spawn-web SG + app auth) — annotate with a justified nosemgrep. Regenerate docs-gen/app.md for the new --web-port/--health-path flags (drift gate).
This was referenced Sep 15, 2026
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.
Feature B of the approved plan: web-UI applications (Jupyter, code-server, OpenRefine, RStudio Server, ComfyUI…) that serve their own HTTP UI — no DCV/X11. Depends on the
kindschema in libs v0.45.0.Model
kind: web(catalog) or--web-port <n>(ad-hoc, with--image):docker run -p 127.0.0.1:<port>:<port>); no DCV install. The launch drops the wildcard TLS cert (samespawn-certssource as DCV) at/etc/spore/webproxy/.pkg/agent/webready.go): each monitor tick, probehttp://127.0.0.1:<port><health_path>; once it answers, start a built-in TLS reverse proxy on :443 (httputil.ReverseProxy, WebSocket-capable for Jupyter/code-server) and writespawn:ready-url = https://<fqdn>/. Named terminal statusesweb-not-responding/web-proxy-failed.DCVSessionID, so spored's existing generic idle branch (CPU/network/process) applies automatically. TTL is the backstop.ready-status=readyas ready (the web ready-url has no auth token — the app owns its auth), parses port-less hosts, and openshttps://<fqdn>/directly (no DCV session HTML).Plumbing
LaunchConfig.AppMode/ReadyPort/ReadyHealthPath→ tagsspawn:app-mode/spawn:ready-port/spawn:ready-path, read back inprovider.GetConfig.CreateOrGetWebSecurityGroup(spawn-web, opens :443) instead of the DCV :8443 SG.--web-port,--health-path.Tests
buildWebUserData(no DCV, localhost publish, cert drop, spored; + private-ECR login/GPU),buildWebReadyURL,probeHTTPdown-case,extractReadyFromTagsweb URL parse (no token, port-less host),dcvStatusTerminalweb statuses. Fullcmd/pkg/agent/pkg/aws/pkg/providersuites + vet green.Not yet validated end-to-end
Needs a real-instance run (a web app like code-server/Jupyter) — the gated follow-up (TTL + terminate + leak-check): confirm probe → :443 TLS proxy →
ready→ the app serves overhttps://<fqdn>/. Web catalog entries (code-server/jupyter/openrefine) will be seeded in libs after this validates (kept out now to avoid listing not-yet-launchable apps, per #592).Refs #590.