Add UI Service deployment, auth, and operations profiles #1154
Notifications
Due Date
No due date set.
Blocks
Depends on
Reference: sam/archie#1154
Reference in new issue
Block a user
Update deployments, Taskfile, CI/release artifacts, and operator documentation for the standalone UI Service serving ui/dist with remote Gateway and State Store endpoints. Define service ordering, endpoint/auth configuration, health checks, generated asset handling, and local development commands without relying on shared in-process state.
Notes
Auth gap found by cloud review of 7a6f4e4 (2026-09-09): archie-ui resolves GATEWAY_TOKEN / STATE_STORE_TOKEN from the process environment only (withEnvTokens in internal/app/archieui/config.go), while the daemon resolves the same two names through a secret.Registry, which registers bws by default and can load sops/Vault engines via Yaegi. A deployment holding these tokens in a secret manager authenticates archied and does NOT authenticate archie-ui.
Deliberate, not an oversight: ui-service-boundary.md's deletion gate forbids a secret runtime package in the UI process, so threading a Registry is the wrong direction. The deployment profile this bead writes must therefore say that whatever starts archie-ui (systemd unit, compose file) is responsible for exporting those tokens into its environment, and show it. Revisit only if that proves unworkable.
Landed 2026-09-10 (a613b1f). task dev runs archie-ui (dev:dashboard) on :8484 and dev:mobile starts archie-ui with -token-file instead of a mobile archied overlay. dev.toml documents the archie-ui projection and the gateway target. systemd-user-service.md records the auth posture (no secret registry in the UI process; the starter exports GATEWAY_TOKEN/STATE_STORE_TOKEN via EnvironmentFile; /healthz is the token-free liveness probe). INSTRUCTIONS.md ships archie-ui. release.sh folds cmd/archie-ui + internal/app/archieui into archied's component closure (archieui-only commits previously landed in neither changelog); RELEASING.md documents the fold. task check green; archie-ui smoke-started against deployments/dev.toml.
Close reason
Closed
Imported from beads
archie-core-8cda.5.5· GitHub #765 · type task · priority P3 · created 2026-09-06 · closed 2026-09-09