Add one-shot federated installer for other cores
release gate / check (push) Failing after 6m37s

deploy/federated/install.sh packages what the 2026-10-26 core install did
by hand, for any operator running their own federated suite with repo
access. Run on the core host as root; it:

- Preflights the suite: installapp/functions.sh//etc/federated, the core
  docker network, Authelia (REQUIRED — the core tier is SSO-only, so an
  install without Authelia would lock everyone out) and the fcore SMTP
  credential source for the notification email channel.
- Refuses when the app dir exists, and checks the fixed core-network IPs
  (.93/.94/.95) against live allocations and other services' INTERNAL_IP;
  SUPERBRAIN_{WEB,APP,MIGRATE}_IP override and rewrite lib + service file.
- Stages the source by git clone (SUPERBRAIN_REPO/SUPERBRAIN_REF) or from
  a local tree (SUPERBRAIN_SRC), same payload as the workstation tar-sync.
- Installs lib/superbrain.sh + services/superbrain/service (backing up
  anything existing), then runs the house flow via
  /federated/bin/installapp superbrain (config/start/configsso/monitors/
  superpanel catalog).
- Verifies containers, the Authelia client AND claims-policy markers (the
  AccessDenied footgun), and the HTTPS login page with a retry loop for
  traefik cert provisioning; prints the operator's first-login steps,
  including that Authelia subjects are opaque UUIDs from
  user_opaque_identifier (not usernames) for offline SEED_SUBJECT links.

Validated: shellcheck clean; preflight chain smoke-tested against the
live core (correct refuse at the already-installed guard). STRATEGY.md
interim-mode section now points at the installer.
This commit is contained in:
Andrew S Erwin
2026-10-26 23:33:50 -05:00
parent f72e4fedb8
commit 2fa3979451
2 changed files with 203 additions and 0 deletions
+8
View File
@@ -44,6 +44,14 @@ probe). Source-on-host builds fight that machinery, so:
**Interim mode (implemented now, 2026-10-25):** until CI publishes images,
`lib/superbrain.sh` builds from source staged at `/federated/tmp/superbrain-src`
(tar-synced from the workstation; the exact command is in the script header).
For OTHER federated cores (any operator with repo access),
`deploy/federated/install.sh` packages the whole flow: preflights the suite
(Authelia required — the core tier is SSO-only — plus the fcore SMTP
credential source), stages the source by `git clone` (or `$SUPERBRAIN_SRC`),
installs `lib/superbrain.sh` + `services/superbrain/service` (with fixed-IP
collision checks and `SUPERBRAIN_*_IP` overrides), runs
`/federated/bin/installapp superbrain`, then verifies containers, the
Authelia client + claims policy, and the HTTPS login page.
Images are tagged `superbrain-app:local` / `superbrain-web:local`, `.env`
carries `IMAGE_VERSION_HOLD=1` so the generic `upgrade` flow skips the app
cleanly, and the service file's `CONTAINER=superbrain-app` matches the first