[repo] NixOS: flake with the release build (test hooks off) and the web UI, services.ianitor module (edge, control, caddy-fallback, engine-select, per-boot UI proof, polkit for exactly two units), four VM tests, deploy/test-access.sh

This commit is contained in:
2026-11-08 00:04:13 +01:00
parent a61dfd854f
commit ca9bf3fdd4
13 changed files with 1375 additions and 4 deletions
+5 -1
View File
@@ -64,7 +64,10 @@ Main screen: host list with health dots, engine chip, intermediate-expiry banner
| API token: ⚙ → API → New token | 3 |
Accepted exceptions [M 2026-11-07]: copying a new API token and installing a device certificate may take a 4th click
(deliberate secret-handling steps).
(deliberate secret-handling steps). A share link on a host with links off takes 4 clicks (⋯ → Share link → Turn on
share links → Copy, after the apply is kept; no `turn_on` API change). Signing the intermediate by hand on the offline
machine (openssl) is outside the 1-click Renew budget while Custos lacks the operation (§8.6). Share links are off
while Caddy serves (v1); a validator Caddy calls through forward_auth comes before v1.1's monthly switch rehearsal.
## 5. Test layers (all run in an Artifex pipeline by phase 4)
1. Differential: the same request corpus against Ianitor and Caddy; status, selected headers and body compared.
@@ -133,6 +136,7 @@ Identity gate, tunnel, Domi templates, ACME server, HTTP/3, migrating public sit
5. Authelia forward-auth endpoint and headers to mirror exactly. (phase 1)
**Answer: `GET /api/authz/forward-auth` (ForwardAuth implementation; legacy `/api/verify` not used).** Edge sends X-Forwarded-Method, -Proto, -Host, -URI (required) and X-Forwarded-For, and always sets them itself. It also forwards the client's headers (Cookie, Authorization) without hop-by-hop headers or body. A 2xx answer copies Remote-User, Remote-Groups, Remote-Email and Remote-Name onto the request (client copies removed). Any other answer (302 portal, 401 + WWW-Authenticate, 403) goes back to the client verbatim. An unreachable, silent (10 s deadline), oversized (>1 MiB), broken or `101` auth answer fails closed with 502; 1xx heads are skipped. Client-sent Remote-* headers are always stripped on forward-auth hosts, whatever copy_headers says. This mirrors `caddy adapt` output for Authelia's documented `forward_auth` snippet; tested against a mock, not a real Authelia. [S authelia.com/reference/guides/proxy-authorization, authelia.com/integration/proxies/caddy]
6. Custos CSR-signing operation with match-code approval. (phase 3)
**Answer: Custos has none (desktop 0.8.0, CustosPublic v0.13.0).** Its `sign` op signs only minisign, SHA256SUMS manifests, Authenticode digests and deploy approvals, refuses any request against `domi-root` (the RSA-3072 Authenticode root), and no path takes a CSR. Its server reach is the factor-service sign mailbox (`POST /api/sign/requests`, Bearer sign token, answers sealed to a one-time X25519 key, 5-minute match-code card on the PC with a push to the phone). So, per §6: the operation is written as a ticket, [custos-ticket.md](custos-ticket.md) (a new key `domi-pki-root`, ECDSA P-256; a sign kind `x509_csr` through the same mailbox that builds the intermediate from a fixed profile and takes only the CSR's key and CN; the match code computed from the CSR on both screens), not filed. Until then the intermediate is signed **by hand on the offline machine with openssl** ([pki.md](pki.md); Mark accepted it as a §4 exception, 2026-11-07) and device certificates are approved on the server with `sudo -u ianitor-control ianitor-control pki approve <code>` (Q5). API tokens: Custos stores them as "Local app credential" items with a `domi-ref`; the intended import is Provisio's `offer` (the server seals the value to the PC's key and Mark accepts a match-code card), or copy and paste in the item editor. [S Custos docs/09_signing.md, 07_domi_identity.md, 10_provisio.md, apps/desktop/src-tauri/src/signing.rs] Configuration_Server findings (domains, Caddy, no Authelia in the repository, sops-nix secrets, the two trial hosts): [deploy/beside-caddy.md](deploy/beside-caddy.md).
7. Red Panda Network donation route for a non-US individual and the receipt they issue. (phase 4, Mark)
## 9. Status