fix(auth): address Task 13 deployment review findings

This commit is contained in:
2026-08-17 21:31:25 +02:00
parent 9558eaa508
commit 7e52df2702
22 changed files with 1279 additions and 82 deletions
+4
View File
@@ -13,6 +13,10 @@ node /app/docker/ensure-pi-trust.mjs "${THT_HARNESS_DIR:-/app/harness}"
cmd="${1:-server}"
case "$cmd" in
server)
[[ "${THT_AUTH_STATE_ROOT:-/data/auth}" == /data/auth ]] \
|| { printf '%s\n' 'authentication state root is invalid' >&2; exit 1; }
printf '%s\n' '{"version":1,"operation":"ensure-layout","root":"/data/auth"}' \
| "${THT_AUTH_STORAGE_BIN:-/usr/local/bin/tht-auth-storage}" _auth-storage >/dev/null
exec node /app/backend/dist/server.js
;;
check)