fix(svos-front): kernel app origin admits the seat host's task reports (POST /tasks/start|progress|checking|exit); every task launch had failed start_unreported on a Caddy 404

This commit is contained in:
vh
2026-10-19 01:15:11 -07:00
parent ee6036a172
commit d5e41d8cad
2 changed files with 27 additions and 2 deletions
@@ -0,0 +1,22 @@
# nh3-svos: the kernel app origin (svos-kernel.phasefinal.com) admits the seat host's U15 task reports, POST
# /tasks/start /tasks/progress /tasks/checking /tasks/exit. Missing since v0.0.11, every task launch failed
# start_unreported: Caddy 404'd the start report, and the helper printed "seat launch failed" (diagnosed 2026-10-19 for
# svos-dev, thread 01M59KF34NBQ9F0XZB2JJRVTJY). Validate before swap; backup Caddyfile.pre-task-reports; reload, not restart.
steps:
- {name: stage the new Caddyfile, upload: {src: configs/svos-front/Caddyfile, dest: /etc/caddy/Caddyfile.new, mode: "0644"}, sudo: true}
- name: Validate, back up, swap, reload
sudo: true
shell: |
set -e
cd /etc/caddy
set -a; . /etc/caddy/env; set +a
/usr/local/bin/caddy validate --config Caddyfile.new --adapter caddyfile 2>&1 | tail -2
cp -p Caddyfile Caddyfile.pre-task-reports
chown --reference=Caddyfile Caddyfile.new; chmod --reference=Caddyfile Caddyfile.new
mv Caddyfile.new Caddyfile
systemctl reload caddy-svos; sleep 2; systemctl is-active caddy-svos
verify:
- name: Front door inventory still current
sudo: true
shell: /usr/local/sbin/svos-front-inventory --check
changed_when: "false"