[docs] Deploy: Ianitor v1.0.0 beside Caddy on .217 (flower, esp32ide); ROADMAP status and handover #19

Manually merged
mnovak merged 1 commits from docs/beside-caddy-217 into main 2026-12-02 21:35:18 +01:00
Owner

The run beside Caddy on the production server .217 (ROADMAP §1.12, phase 4's last Done item), prepared for Aula to deploy; and ROADMAP's Status and Handover after v1.0.0.

What changes

  • docs/deploy/beside-caddy-217.md (new), from .217's config as Aula read it (2026-12-02, read-only):
    • The v1.0.0 bundle: the tag's commit, 4c157b3, to check against.
    • flake.nix: ianitor.url = "git+file:///home/apps/ianitor?ref=refs/tags/v1.0.0", then inputs.ianitor.nixosModules.default and ./modules/ianitor.nix after Aula's module.
    • modules/ianitor.nix:
      • edge on 127.0.0.1:18080/18443, with no firewall opening;
      • the proxy socket for Caddy only, with services = [ "caddy" ];
      • control on 127.0.0.1:7878;
      • the share-link key and the PKI password as root-only files;
      • the Domi root's public certificate.
    • Two caddy.nix lines: reverse_proxy unix//run/ianitor-proxy/edge.sock for flower and esp32ide.
    • The switch, Caddy's group check, the intermediate's CSR, and the two host files.
    • The checks: ss, edge's socket, deploy/test-access.sh, and a daily line. Then the rollback.
  • beside-caddy.md and the README point to it.
  • ROADMAP §9 phase 4 row; §10 a 2026-12-02 entry (what PR 18 changed, its counts, what needs Mark, the next step).

Checks

  • Every option name in modules/ianitor.nix is in deploy/nixos/module.nix. The host fields match core's schema (the staging patch uses the same ones). GET /api/v1/engine answers running and state.
  • Docs only: no code, test or pin change. v1.0.0 stays the tagged 4c157b3.

Adversarial self-review

  • Can the doc break .217? It is never run by itself: Aula or Mark runs each step. nixos-rebuild build comes before switch, and the rollback is two caddy.nix lines.
  • Do secrets show anywhere? No. The two secrets are generated on the server into root-only files. The API token goes from token create into a 0600 header file through a shell variable: never on a command line, never printed.
  • Is anything public that should not be? Edge and control stay on loopback, with no firewall change. Caddy keeps 80/443 and its Let's Encrypt certificates. test-access.sh checks that control's port does not answer from the LAN.
  • Not verified:
    • the module against .217's nixpkgs 24.11 (the VM tests use 26.05; the rebuild's build step is the check);
    • the two vhosts' other caddy.nix lines (only their reverse_proxy lines were read);
    • the 502 window between the switch and the host files, which the doc says how to avoid.
The run beside Caddy on the production server .217 (ROADMAP §1.12, phase 4's last Done item), prepared for Aula to deploy; and ROADMAP's Status and Handover after v1.0.0. ## What changes - `docs/deploy/beside-caddy-217.md` (new), from .217's config as Aula read it (2026-12-02, read-only): - The v1.0.0 bundle: the tag's commit, 4c157b3, to check against. - `flake.nix`: `ianitor.url = "git+file:///home/apps/ianitor?ref=refs/tags/v1.0.0"`, then `inputs.ianitor.nixosModules.default` and `./modules/ianitor.nix` after Aula's module. - `modules/ianitor.nix`: - edge on 127.0.0.1:18080/18443, with no firewall opening; - the proxy socket for Caddy only, with `services = [ "caddy" ]`; - control on 127.0.0.1:7878; - the share-link key and the PKI password as root-only files; - the Domi root's public certificate. - Two `caddy.nix` lines: `reverse_proxy unix//run/ianitor-proxy/edge.sock` for flower and esp32ide. - The switch, Caddy's group check, the intermediate's CSR, and the two host files. - The checks: `ss`, edge's socket, `deploy/test-access.sh`, and a daily line. Then the rollback. - `beside-caddy.md` and the README point to it. - ROADMAP §9 phase 4 row; §10 a 2026-12-02 entry (what PR 18 changed, its counts, what needs Mark, the next step). ## Checks - Every option name in `modules/ianitor.nix` is in deploy/nixos/module.nix. The host fields match core's schema (the staging patch uses the same ones). `GET /api/v1/engine` answers `running` and `state`. - Docs only: no code, test or pin change. v1.0.0 stays the tagged 4c157b3. ## Adversarial self-review - **Can the doc break .217?** It is never run by itself: Aula or Mark runs each step. `nixos-rebuild build` comes before `switch`, and the rollback is two caddy.nix lines. - **Do secrets show anywhere?** No. The two secrets are generated on the server into root-only files. The API token goes from `token create` into a 0600 header file through a shell variable: never on a command line, never printed. - **Is anything public that should not be?** Edge and control stay on loopback, with no firewall change. Caddy keeps 80/443 and its Let's Encrypt certificates. test-access.sh checks that control's port does not answer from the LAN. - **Not verified:** - the module against .217's nixpkgs 24.11 (the VM tests use 26.05; the rebuild's `build` step is the check); - the two vhosts' other caddy.nix lines (only their `reverse_proxy` lines were read); - the 502 window between the switch and the host files, which the doc says how to avoid.
mnovak added 1 commit 2026-12-02 21:35:08 +01:00
mnovak manually merged commit 713485d290 into main 2026-12-02 21:35:18 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ianitor#19