Files
summercms/.planning/phases/20-demo-instance-with-every-shared-plugin/20-05-PLAN.md
2026-10-28 18:39:49 +01:00

32 KiB
Raw Blame History

phase, plan, type, wave, depends_on, files_modified, autonomous, requirements, estimate, must_haves
phase plan type wave depends_on files_modified autonomous requirements estimate must_haves
20-demo-instance-with-every-shared-plugin 05 execute 5
20-02
20-03
20-04
../sm-demo-app/deploy/nginx/demo.summercms.io.conf
../sm-demo-app/deploy/supervisor/summercms-demo-livekit.conf
../sm-demo-app/deploy/livekit.yaml.example
../sm-demo-app/deploy/env.example
../sm-demo-app/config/env/production/golem15.chatvideo.yaml
../sm-demo-app/scripts/check-deploy.sh
../sm-demo-app/scripts/check-live.sh
../sm-demo-app/DEPLOY.md
../sm-demo-app/README.md
../sm-demo-app/vue-demo-app
false
SC-2
SC-3
D-10
D-12
D-16
D-20
D-21
tokens raw_tokens tasks confidence
240000 240000 6 low
truths artifacts key_links prohibitions
D-10: rome runs the demo's own LiveKit 1.13.1 under supervisor as summercms-demo-livekit (user summercms-demo, config /srv/summercms-demo/livekit.yaml, 0640 root:summercms-demo, own key pair also in /srv/summercms-demo/.env), signal on 127.0.0.1:7890 behind nginx location /livekit/, ICE TCP 7891 and UDP mux 7892 on the public address; it does not touch WavePath's LiveKit (7880, 7881, 50000-60000) or its keys.
D-10: Vuurmuur on rome allows TCP 7891 and UDP 7892 from the internet to the firewall through a rule the user approved; DEPLOY.md documents the service, the rule, how to verify it and how to remove it.
D-12: the deployed LiveKit has room max_participants 4, empty_timeout 120 and departure_timeout 20; production chatvideo config keeps max_duration 900 and max_participants 4; the chatvideo reconcile job runs every 5 minutes inside serve.
D-16: rome's .env holds herald VAPID keys generated on rome with herald:vapid-generate; /_herald is not routed by nginx.
SC-3: after the release https://demo.summercms.io serves /chat, /forum, /friends and /call/{id} with the banner and the backend call to action; /backend and /backend/x answer 404; anonymous /chat and /forum show the register prompt (D-04, D-21); the admin stays at /smbackend as decided in 19.4.1.
SC-2: on the live demo the chat-family APIs answer 401 without a JWT under /_chat, /_chatchannels, /_chatbots, /_chatvideo, /_forum and /_userfriends, /livekit/rtc/validate reaches LiveKit, /ws upgrades to Centrifugo, and the Centrifugo config on rome has the chat, user and video namespaces.
scripts/check-deploy.sh proves locally that nginx, supervisor, livekit.yaml.example and the production chatvideo config agree on ports (7890, 7891, 7892) and caps, that each chat-family prefix goes to the Go port and that /_herald is not routed; scripts/check-live.sh https://demo.summercms.io prints check-live: ok after the release.
vue-demo-app's master is pushed before sm-demo-app's pointer bump commit; sm-demo-app is pushed with the go-ahead; robots.txt on the live site disallows the new API prefixes.
path provides contains
../sm-demo-app/deploy/supervisor/summercms-demo-livekit.conf supervisor program summercms-demo-livekit program:summercms-demo-livekit
path provides contains
../sm-demo-app/deploy/nginx/demo.summercms.io.conf Go locations for the chat family and the /livekit/ WebSocket location location ^~ /livekit/
path provides contains
../sm-demo-app/config/env/production/golem15.chatvideo.yaml production livekit_url and livekit_admin_url wss://demo.summercms.io/livekit
path provides contains
../sm-demo-app/DEPLOY.md LiveKit, firewall, chat family release, verify and rollback summercms-demo-livekit
from to via pattern
../sm-demo-app/deploy/nginx/demo.summercms.io.conf ../sm-demo-app/deploy/livekit.yaml.example proxy_pass http://127.0.0.1:7890/ equals LiveKit port 7890 (check-deploy compares) 127.0.0.1:7890
from to via pattern
../sm-demo-app/config/env/production/golem15.chatvideo.yaml ../sm-demo-app/deploy/supervisor/summercms-demo-livekit.conf livekit_admin_url http://127.0.0.1:7890 is the program's signal port livekit_admin_url
from to via pattern
../sm-demo-app/scripts/check-live.sh ../sm-demo-app/deploy/nginx/demo.summercms.io.conf live 401s under the chat-family prefixes and LiveKit's answer on /livekit/rtc/validate /livekit/rtc/validate
statement status verification
No change to WavePath's LiveKit program, its config /etc/livekit/livekit.yaml or its ports, and no second key on its server. unresolved judgment
statement status verification
No secret value (LiveKit, VAPID, Centrifugo) appears in a committed file, the SUMMARY, a log line or a command line; values are generated on rome. unresolved judgment
statement status verification
No push, rome change or firewall change happens before its checkpoint is answered; raw iptables is never used (Vuurmuur manages rome's INPUT chain). unresolved judgment

Phase Goal

ROADMAP Goal (not in user-story format; no story is invented here): the demo is deployed publicly with the chat family, the frontend open, /backend unreachable and the backend call to action shown.

This plan's slice (plan 5 of 6, wave 5, per D-20): the rome deploy of everything plans 01 to 04 built. That means the demo's own LiveKit under supervisor, the Vuurmuur rule for its media ports (a checkpoint, shared production host), nginx locations, .env keys (LiveKit, VAPID), the Centrifugo namespaces, the release, DEPLOY.md, and the check-deploy and check-live extensions.

Decisions taken in this plan (Claude's discretion, recorded)

  • Media path (D-10 discretion): ICE over the UDP mux port 7892 with ICE-TCP 7891 as fallback, and no embedded TURN. nginx stream with ssl_preread would restructure every 443 vhost on a shared host (RESEARCH Alternatives). If NAT'd browsers fail in plan 06's live check, the fallback recorded in DEPLOY.md is LiveKit's embedded TURN on UDP 3478 and TLS 5349 with a DNS-only host name, which needs a new checkpoint.
  • Signal path: same origin under /livekit (livekit_url: wss://demo.summercms.io/livekit). livekit-client appends /rtc, so nginx location ^~ /livekit/ proxies to http://127.0.0.1:7890/ with the WebSocket upgrade headers, proxy_read_timeout 7d and proxy_buffering off, as lk.wavepath.org does. Go talks to the RoomService on loopback (livekit_admin_url: http://127.0.0.1:7890).
  • ICE reveals rome's public address despite Cloudflare. This is accepted, because rome already exposes services on that address (RESEARCH Security Domain). DEPLOY.md says so.
  • Admin stays at /smbackend (19.4.1's decision change of 2026-10-20, RESEARCH Open Question 1). /backend stays 404. The deploy checkpoint restates it.
  • Robots: the new prefixes go into SEO › robots.txt on rome (the DEPLOY.md "SEO" procedure). /_herald stays unrouted and so needs no line.
  • spec-less probe fallback skipped: phase has no requirement IDs to probe (visible skip).

Artifacts this phase produces (this plan)

  • Supervisor program summercms-demo-livekit (deploy/supervisor/summercms-demo-livekit.conf); rome files /srv/summercms-demo/livekit.yaml and /etc/supervisor/conf.d/summercms-demo-livekit.conf.
  • nginx locations ^~ /_chat/, ^~ /_chatchannels/, ^~ /_chatbots/, ^~ /_chatvideo/, ^~ /_forum/, ^~ /_userfriends/ (Go, 127.0.0.1:8098) and ^~ /livekit/ (LiveKit, 127.0.0.1:7890).
  • config/env/production/golem15.chatvideo.yaml (livekit_url, livekit_admin_url).
  • env keys on rome: SUMMER_GOLEM15__CHATVIDEO__LIVEKIT_API_KEY, SUMMER_GOLEM15__CHATVIDEO__LIVEKIT_API_SECRET, SUMMER_GOLEM15__HERALD__VAPID__PUBLIC_KEY, __PRIVATE_KEY, __SUBJECT (names only in git).
  • Vuurmuur service summercms-demo-livekit and its rule (rome).
  • check-deploy.sh LiveKit and chat-family checks; check-live.sh chat-family checks; DEPLOY.md sections "LiveKit (the demo's own)", "Firewall (Vuurmuur)", "Chat family"; the sm-demo-app pointer bump of vue-demo-app.
Deploy the chat family to the live demo on rome: LiveKit, firewall, nginx, keys, Centrifugo namespaces and the release, with the checks and the runbook to keep it repeatable.

Purpose: SC-3 (deployed publicly, /backend unreachable, call to action) and the live half of SC-2, D-10, D-12 and D-16 on rome. Output: commits in ../sm-demo-app, pushes of vue-demo-app and sm-demo-app, and changes on rome, all after the go-ahead.

<execution_context> @/.claude/msd-core/workflows/execute-plan.md @/.claude/msd-core/templates/summary.md </execution_context>

@.planning/phases/20-demo-instance-with-every-shared-plugin/20-CONTEXT.md @.planning/phases/20-demo-instance-with-every-shared-plugin/20-RESEARCH.md @.planning/phases/20-demo-instance-with-every-shared-plugin/20-02-SUMMARY.md @.planning/phases/20-demo-instance-with-every-shared-plugin/20-04-SUMMARY.md

Repo: ../sm-demo-app (deploy files, scripts, DEPLOY.md), its submodule vue-demo-app (push only). Host: rome over ssh -p 2222 debian@10.8.3.118 (passwordless sudo; the rome alias does not resolve here), with the variables $RSH and $ROME used in DEPLOY.md. Read-only on rome: WavePath's /etc/livekit/livekit.yaml and wavepath-livekit program, /etc/vuurmuur/services, /etc/vuurmuur/rules/rules.conf.

Rules: no co-author tags; stage by explicit path; push vue-demo-app first, then commit and push the pointer bump in sm-demo-app (core-plugins-own-repos note); secrets are generated on rome with openssl rand or herald:vapid-generate and written by remote commands that never echo values; follow DEPLOY.md's Build, Upload and Release sections; nothing changes on rome and nothing is pushed before Task 3's answer; the firewall changes only after Task 5's answer.

sm-demo-app deploy today: deploy/nginx/demo.summercms.io.conf (one `location ^~ /_/` per Go prefix with proxy_pass http://127.0.0.1:8098, `location = /ws` to Centrifugo 8010 with Upgrade headers, `location ^~ /backend { return 404; }`, `/smbackend` to Go), deploy/supervisor/summercms-demo-centrifugo.conf (program shape), deploy/centrifugo.json.example (namespaces from plan 02), deploy/livekit.yaml.example (plan 02), scripts/check-deploy.sh (nginx -t in a temp prefix, supervisor parse, port agreement, prints "check-deploy: ok"), scripts/check-live.sh (bad, get, header, ws_upgrade helpers; prints "check-live: ok"), DEPLOY.md (Overview, Launch checklist, One-time server setup, Realtime, MCP endpoint, SEO, Build, Upload, Release, Verify, Rollback, Reset, Secrets). RESEARCH facts: rome LiveKit 1.13.1 at /usr/local/bin/livekit-server; WavePath's program uses 7880, 7881/tcp and 50000-60000/udp; ports 7890-7892 were free on 2026-10-28 (re-check with `ss -ltnup`); rome's INPUT policy is DROP under Vuurmuur (vrmr NFLOG prefixes); a Vuurmuur service Livekit exists but no rule uses it. LiveKit validate endpoint: GET /rtc/validate answers 401 without a token and 200 with a valid one. Task 1: Tracer: the deploy files carry one chat-family release end to end, proven locally by check-deploy before rome is touched The plan 04 SUMMARY records the three layer tags pinned in vue-demo-app; `git -C ../sm-demo-app status --porcelain` and `git -C ../sm-demo-app/vue-demo-app status --porcelain` list no foreign edit in the files of this task. ../sm-demo-app/deploy/nginx/demo.summercms.io.conf, ../sm-demo-app/deploy/supervisor/summercms-demo-livekit.conf, ../sm-demo-app/deploy/livekit.yaml.example, ../sm-demo-app/deploy/env.example, ../sm-demo-app/config/env/production/golem15.chatvideo.yaml, ../sm-demo-app/scripts/check-deploy.sh, ../sm-demo-app/scripts/check-live.sh, ../sm-demo-app/DEPLOY.md, ../sm-demo-app/README.md ../sm-demo-app/deploy/nginx/demo.summercms.io.conf (whole file), deploy/supervisor/summercms-demo-centrifugo.conf, deploy/livekit.yaml.example, deploy/env.example, config/env/production/*.yaml, scripts/check-deploy.sh (whole file), scripts/check-live.sh (whole file), DEPLOY.md (whole file), 20-RESEARCH.md (Pitfalls 6, 7, 8, 11; Supervisor program and LiveKit config blocks) Per D-10, D-12, D-16, SC-2, SC-3. - nginx: add `location ^~ /_chat/`, `/_chatchannels/`, `/_chatbots/`, `/_chatvideo/`, `/_forum/` and `/_userfriends/` with the exact /_demo/ block, and `client_max_body_size 2m` on /_chat/ for attachments (chat's 1 MiB upload limit plus multipart overhead). Add `location ^~ /livekit/` with proxy_pass `http://127.0.0.1:7890/`, `proxy_http_version 1.1`, the Upgrade and Connection headers, Host and X-Forwarded headers, `proxy_read_timeout 7d`, `proxy_send_timeout 7d` and `proxy_buffering off`, and a comment that media bypasses nginx. Update the `/api/realtime/token` comment: every demo member now gets a token (demo.realtime-access). Add nothing for /_herald. - deploy/supervisor/summercms-demo-livekit.conf: RESEARCH's program block, with a header comment in the Centrifugo file's style (ports, config path and mode, binary, that WavePath's instance is separate). - deploy/livekit.yaml.example: confirm or adjust the plan 02 file so production uses `use_external_ip: true`, and comment the rome install command. - config/env/production/golem15.chatvideo.yaml: `livekit_url: "wss://demo.summercms.io/livekit"`, `livekit_admin_url: "http://127.0.0.1:7890"`. - deploy/env.example: the herald subject key with its comment, if plan 04 left it out. - check-deploy.sh, new checks with header lines: - summercms-demo-livekit.conf parses and declares its program with the user summercms-demo; - LiveKit ports agree: the example's `port` equals the nginx /livekit/ proxy_pass port and the production livekit_admin_url port; `rtc.tcp_port` 7891 and `rtc.udp_port` 7892 are set, no port_range key is set, and bind_addresses is 127.0.0.1; - room.max_participants equals config/golem15.chatvideo.yaml max_participants (D-12, D-23); - each of the six chat-family prefixes is a location proxied to the Go port; - no location routes /_herald; - the example holds placeholder keys only. Parse YAML with python3 as the script already does for JSON, and fail with one line per mismatch. - check-live.sh, new checks with header lines: - /chat, /forum and /friends answer 200 with the banner and a register link (D-04, D-21); - GET /_chatchannels/api/v1/contexts/demo/1/channels, /_forum/api/v1/contexts/demo/1/categories, /_userfriends/api/v1/friends, /_chatbots/api/v1/commands and /_chatvideo/api/v1/conversations/1/video/status answer 401; - GET /livekit/rtc/validate answers 401 (or 400) from LiveKit, not Nuxt's HTML 404 (the body is not text/html); - GET /_herald/api/v1/push/vapid-public-key does not answer JSON from Go; - robots.txt holds `Disallow: /_chat` and `Disallow: /_forum`. - DEPLOY.md: - Overview: ports 7890-7892, the new program; - One-time server setup "LiveKit (the demo's own)": install the config with generated keys, the supervisor program, verify with curl on 127.0.0.1:7890; - "Firewall (Vuurmuur)": the service definition (TCP 7891, UDP 7892), the rule from any to the firewall, `vuurmuur_script` apply and reload, verification with `ss -lunp` and `iptables -S | grep 789`, and removal; - "Chat family": the .env keys, the Centrifugo namespaces and when to restart Centrifugo, the VAPID keys, the robots.txt lines to add; - Verify: the new check-live items; - Rollback: stopping summercms-demo-livekit turns calls off only; - Reset: the chat family is included. README links to the new sections.

Commit feat: deploy files for the chat family and the demo's LiveKit. ../sm-demo-app/scripts/check-deploy.sh 2>&1 | tail -1 | grep -qx 'check-deploy: ok' && bash -n ../sm-demo-app/scripts/check-live.sh <fails_when>The last line is not "check-deploy: ok" (nginx -t fails with the new locations, a port or cap mismatch, a missing prefix, a routed /_herald, or a supervisor parse error), or check-live.sh has a syntax error.</fails_when> <acceptance_criteria> - grep -c 'location ^~ /livekit/' ../sm-demo-app/deploy/nginx/demo.summercms.io.conf prints 1. - grep -cE 'location \^~ /_(chat|chatchannels|chatbots|chatvideo|forum|userfriends)/' ../sm-demo-app/deploy/nginx/demo.summercms.io.conf prints 6. - grep -c '\[program:summercms-demo-livekit\]' ../sm-demo-app/deploy/supervisor/summercms-demo-livekit.conf prints 1. - grep -c 'Vuurmuur' ../sm-demo-app/DEPLOY.md prints at least 2. </acceptance_criteria> The repository holds every file the rome release needs, and the local check proves they agree.

Task 2: Read rome's current state and prepare the release build without changing rome ../sm-demo-app/DEPLOY.md ../sm-demo-app/DEPLOY.md (Build, Upload, Release, Secrets), ../sm-demo-app/scripts/build.sh, .planning/phases/19.4.1-early-public-demo-on-demo-summercms-io/19.4.1-02-SUMMARY.md (first deploy notes) Per D-10 and SC-3. Read-only on rome: - `ss -ltnup` filtered on 7890, 7891 and 7892 (free?); - `supervisorctl status`; - `grep -c` for each new key name in /srv/summercms-demo/.env (counts only, never values); - whether /srv/summercms-demo/centrifugo.json lists the chat namespace (`grep -c '"chat"'`); - `ls /etc/vuurmuur/services` and `grep -n Livekit /etc/vuurmuur/rules/rules.conf` (no edit); - `/usr/local/bin/livekit-server --version`. Locally: - `scripts/check-pins.sh`, `scripts/build.sh release` (refuses a dirty tree or off-tag submodules) and `scripts/smoke.sh` against the release build as DEPLOY.md's Build section says; - `git -C vue-demo-app status` (the commits from plans 03 and 04 are local only) and `git log origin/master..master` in both repositories. Record everything in a deploy table for the Task 3 question. If a port is taken, pick the next free trio and update the deploy files and check-deploy in a commit before asking. If DEPLOY.md's Build steps no longer match the scripts, fix them in DEPLOY.md. ../sm-demo-app/scripts/check-pins.sh && ../sm-demo-app/scripts/build.sh release && ../sm-demo-app/scripts/smoke.sh Non-zero exit: a submodule off its go.mod tag, the release build refuses (dirty tree, stale ROADMAP snapshot) or fails to compile without go.work, or smoke.sh reports a missing banner, an admin path or a credential on a rendered page. - The SUMMARY's deploy table lists rome's listeners on 7890-7892 (or the chosen trio), the supervisor programs, which env keys exist (counts only), whether centrifugo.json has the chat namespace, the LiveKit version and the unpushed commits per repository. - No file on rome changed (no sudo write command was run). The release build is ready and the go-ahead question rests on rome's actual state. Task 3: Go-ahead to push the demo and deploy the chat family to rome The Task 2 deploy table; ../sm-demo-app/DEPLOY.md sections "LiveKit (the demo's own)", "Chat family" and "Release" - The user chose one option and it is recorded in the SUMMARY. Push vue-demo-app and sm-demo-app and release the chat family on rome now (LiveKit program, keys, nginx, Centrifugo namespaces, binary and site)? The release changes a shared production host: a new supervisor program (summercms-demo-livekit on 127.0.0.1:7890), new .env keys generated on rome (LiveKit and VAPID), an nginx reload for the demo vhost, a Centrifugo restart for the demo's own instance, a migration of the chat-family tables and demo:seed. WavePath's LiveKit and keys are not touched. The admin stays at /smbackend with login (19.4.1's decision) and /backend stays 404. Media ports stay closed until the separate firewall question (Task 5), so calls connect only after that. Rollback is in DEPLOY.md (previous binary and site; stop the LiveKit program). Push and deploy Chat, forum and friends go live; calls follow after the firewall rule. Changes rome; the new tables are migrated (not reversed on rollback). Push the repositories, deploy later Code is on origin and reviewed; rome is unchanged. SC-3 stays open; plan 06's live verification waits. Hold Nothing leaves this machine. The phase cannot verify live. Reply "deploy", "push-only" or "hold". Task 4: Release: push, install LiveKit and keys on rome, roll out the binary and site, and check the live demo Task 3 answered "deploy" (or "push-only", which runs steps 1 and 2 only). ../sm-demo-app/vue-demo-app, ../sm-demo-app/DEPLOY.md ../sm-demo-app/DEPLOY.md (whole runbook), the Task 2 deploy table Per D-10, D-12, D-16, SC-2, SC-3. 1. Push vue-demo-app master, then in sm-demo-app commit the pointer bump `chore: bump vue-demo-app (chat, forum, friends, calls)` and push sm-demo-app. 2. Confirm both remotes equal local HEAD (`git ls-remote`). 3. On rome, following DEPLOY.md. Never echo or log a value; write secrets with remote heredocs fed from `openssl rand` inside the remote shell. - Generate a LiveKit key and secret. - Install /srv/summercms-demo/livekit.yaml (0640 root:summercms-demo) from the example with them, and append the same values to .env as the SUMMER_GOLEM15__CHATVIDEO__ keys. - Run `herald:vapid-generate --json -q` with the new binary on rome and append the VAPID keys. Set the subject to the demo's contact address from ~/.config/summercms/demo-secrets.env, sent over SSH stdin. - Update /srv/summercms-demo/centrifugo.json: merge the chat, user and video namespaces from the example while keeping its secrets, run `centrifugo checkconfig`, and restart summercms-demo-centrifugo. - Install and start summercms-demo-livekit (reread, update, status RUNNING) and check that `curl -s http://127.0.0.1:7890/` answers OK on rome. - Upload and release the build per DEPLOY.md (migrate, demo:seed, swap, restart), then install the nginx file and reload. - Add the robots.txt lines for the six prefixes through SEO › robots.txt (DEPLOY.md "SEO"; through an SSH tunnel to the admin with the credentials in /root/summercms-demo-admin.txt, or the seo MCP tools with the administrator's connector). If neither path works unattended, list it for the user in Task 6. 4. Run `scripts/check-live.sh https://demo.summercms.io`. The /livekit/rtc/validate check passes without the firewall rule, because signalling goes through nginx. 5. Record in DEPLOY.md any step that differed from the runbook. [ "$(git -C ../sm-demo-app ls-remote origin refs/heads/master | cut -f1)" = "$(git -C ../sm-demo-app rev-parse HEAD)" ] && ../sm-demo-app/scripts/check-live.sh https://demo.summercms.io 2>&1 | tail -1 | grep -qx 'check-live: ok' sm-demo-app's remote master differs from HEAD (not pushed), or check-live's last line is not "check-live: ok" (a chat-family prefix not 401, /livekit not reaching LiveKit, /backend not 404, missing banner or call to action, robots lines missing, or /ws not 101). - `ssh -p 2222 debian@10.8.3.118 sudo supervisorctl status summercms-demo-livekit` shows RUNNING. - `ssh -p 2222 debian@10.8.3.118 'sudo grep -c "^SUMMER_GOLEM15__CHATVIDEO__LIVEKIT_API_SECRET=." /srv/summercms-demo/.env'` prints 1 (count only). - `ssh -p 2222 debian@10.8.3.118 sudo supervisorctl status wavepath-livekit` shows the same uptime it showed in Task 2 (not restarted). - The SUMMARY holds no secret value. The chat family is live on demo.summercms.io: chat, forum, friends and the call signalling path answer, with WavePath's services untouched. Task 5: Go-ahead for the Vuurmuur rule that opens LiveKit's media ports on rome DEPLOY.md "Firewall (Vuurmuur)"; the read-only output Claude prints: the proposed service file content (TCP 7891, UDP 7892), the proposed rule line, the current rules.conf lines around the Livekit service, and `iptables -S | grep -c vrmr` before the change - The user chose one option and it is recorded in the SUMMARY. Open TCP 7891 and UDP 7892 on rome for the demo's LiveKit through Vuurmuur? rome's INPUT chain is managed by Vuurmuur with policy DROP; raw iptables rules would be overwritten. Without this rule calls signal but never connect media. The rule only admits traffic to the demo's LiveKit ports (the program binds media on the public address; signalling stays on loopback behind nginx). It is reversible: removing the rule and reloading Vuurmuur closes the ports. WavePath's own Livekit service definition stays unused and unchanged. Claude applies the rule Done now, with the verification commands from DEPLOY.md. A change to the shared host's firewall made by the agent. I apply it myself You make the firewall change on the shared host. Calls stay disconnected until you reply that it is done. Hold The firewall stays as it is. Video calls do not connect on the live demo (D-10 open); plan 06's call check is skipped. For "user-applies": follow DEPLOY.md "Firewall (Vuurmuur)" and reply "firewall done". Reply "claude-applies", "firewall done" or "hold". Task 6: Apply and verify the media ports, and hand the live demo to plan 06 Task 5 answered "claude-applies" or "firewall done". ../sm-demo-app/DEPLOY.md DEPLOY.md "Firewall (Vuurmuur)", the Task 5 answer Per D-10. - For "claude-applies": on rome, add the service file /etc/vuurmuur/services/summercms-demo-livekit (TCP 7891, UDP 7892) and the rule line from DEPLOY.md, apply with Vuurmuur's own tooling (`vuurmuur_script` apply and reload, never raw iptables), and back up rules.conf first to rules.conf.bak-. - Either way, verify: - `sudo iptables -S | grep -E '7891|7892'` shows ACCEPT rules with the vrmr prefix; - `ss -lunp | grep 7892` shows livekit-server; - from this machine, `nc -zv -w 3 7891` connects (UDP is verified by the live call in plan 06). - Note in DEPLOY.md the date applied and the backup path. - If robots.txt could not be updated unattended in Task 4, list the exact lines for the user in the SUMMARY. Commit any DEPLOY.md change (`docs: record the LiveKit firewall rule`), then push sm-demo-app. ssh -p 2222 debian@10.8.3.118 "sudo iptables -S | grep -cE 'dport (7891|7892)'" | grep -qvx 0 && nc -zv -w 3 54.36.173.176 7891 The iptables count is 0 (Vuurmuur did not apply the rule), or the TCP connect to 7891 on the public address times out or is refused. - `ssh -p 2222 debian@10.8.3.118 test -f /etc/vuurmuur/services/summercms-demo-livekit` exits 0. - `../sm-demo-app/scripts/check-live.sh https://demo.summercms.io` still prints `check-live: ok`. - The SUMMARY states whether robots.txt was updated and lists any item left for the user. LiveKit's media ports are reachable from the internet through Vuurmuur and the live demo passes its checks.

<threat_model>

Trust Boundaries

Boundary Description
internet to nginx (Cloudflare) on demo.summercms.io untrusted HTTP and WebSocket, now including /livekit/ and six API prefixes
internet to rome's public address on 7891/tcp and 7892/udp WebRTC media straight to LiveKit, bypassing Cloudflare
build machine to rome over SSH secrets generated on rome, never transferred
demo services to WavePath services on the same host must stay isolated

STRIDE Threat Register

Threat ID Category Component Severity Disposition Mitigation Plan
T-20-27 Elevation of privilege LiveKit co-tenancy with WavePath high mitigate own instance, own key pair, own ports and config file (D-10); no key added to /etc/livekit/livekit.yaml; Task 4 asserts wavepath-livekit was not restarted
T-20-28 Information disclosure LiveKit, VAPID and Centrifugo secrets high mitigate generated on rome inside the remote shell, written to 0640 root:summercms-demo files, never echoed; repository files hold names and placeholders; check-deploy fails on non-placeholder keys in the example
T-20-29 Denial of service open media ports medium mitigate only TCP 7891 and UDP 7892 via a Vuurmuur rule the user approved; room max_participants 4, empty_timeout 120, departure_timeout 20, max_duration 900 with reconcile (D-12)
T-20-30 Information disclosure origin IP through ICE candidates low accept rome already exposes services on its public address; recorded in DEPLOY.md
T-20-31 Elevation of privilege unintended Go routes medium mitigate nginx allow-list gains exactly six prefixes and /livekit/; /_herald stays unrouted; check-deploy asserts both; /backend 404 unchanged
T-20-32 Tampering firewall drift medium mitigate changes only through Vuurmuur with a dated backup of rules.conf; DEPLOY.md documents removal
T-20-33 Denial of service release breaking the live demo medium mitigate release build and smoke before the go-ahead (Task 2); DEPLOY.md rollback keeps bin/demo.prev and site/.output.prev; check-live after release
T-20-34 Spoofing signalling WebSocket low mitigate LiveKit validates every join token (HS256, token_ttl 900) minted only for conversation participants by chatvideo
T-20-SC Tampering npm/pip/cargo installs high mitigate no new package: the release installs vue-demo-app's frozen lockfile (layers pinned by tag, livekit-client approved in plan 04) and Go modules by tag with go.sum
</threat_model>
- Task 1: check-deploy ok with the new locations, program and port agreement. - Task 2: check-pins, release build and smoke; rome read-only table. - Task 3: go-ahead recorded. - Task 4: remotes pushed; check-live ok on https://demo.summercms.io; LiveKit running; WavePath untouched. - Task 5: firewall decision recorded. - Task 6: iptables shows the Vuurmuur rule; TCP 7891 reachable; check-live still ok.

<success_criteria> The chat family runs on the public demo with its own LiveKit and open media ports, /backend refused and the call to action shown (SC-3), with a runbook and checks that make the next release routine. </success_criteria>

Create `.planning/phases/20-demo-instance-with-every-shared-plugin/20-05-SUMMARY.md` when done: the deploy table (no secret values), ports used, the commits pushed, what changed on rome, both checkpoint answers, the robots.txt state, and anything left for the user.