Docs: agent 1.0 built (changes while building), handover, changelogs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,10 @@ This replaces the old rule "the Hub never deploys" (decisions 10 and 23). The pa
|
||||
stays: **no site depends on the Hub to keep running**, and everything still goes through the
|
||||
`crosscode` script (EVENTS-2.2-PLAN §4), which keeps working by hand over SSH.
|
||||
|
||||
**Built 2026-11-18** (crosscode-platform branch `feat/agent-1.0`, events-hub branch
|
||||
`feat/servers-agent`; not merged or released). Waiting for the VM tests (§13). Where the build
|
||||
differs from this plan, see [Changes while building](#changes-while-building).
|
||||
|
||||
## Contents
|
||||
|
||||
1. [The shape](#1-the-shape)
|
||||
@@ -453,6 +457,30 @@ Central check: both ports are open in frps and only on 127.0.0.1.
|
||||
5. Docs: CHANGELOGs, HANDOVER.md (1d done), `events-hub/deployment.md` (the job-signing key),
|
||||
a server how-to in `apps/agent/README.md`.
|
||||
|
||||
## Changes while building
|
||||
|
||||
Made on 2026-11-18, while building; none changes what Joshua or a church sees.
|
||||
|
||||
1. **Config encryption** is X25519 + HKDF-SHA256 + AES-256-GCM (`x25519-hkdf-sha256-aes-256-gcm`)
|
||||
instead of `x25519-xsalsa20-poly1305`: Node's built-in crypto has no XSalsa20, and this needs no
|
||||
extra library on the servers. Same guarantee: only the server's private key opens it.
|
||||
2. **Deployments, not new Install fields.** An `Install` row only exists once a site registers
|
||||
with its licence, so the Hub keeps a `Deployment` per product per server (short name, domain,
|
||||
ports, status), linked to its Install when the site registers. Installs made from the Hub
|
||||
register by themselves: `HUB_LICENCE_KEY` in their `.env` (Events, on first start).
|
||||
3. **The export key** goes to the Hub in the export job's report, so the Hub can email the link;
|
||||
it's used once and never stored (job rows keep the report without it). The Hub still can't read
|
||||
the stored file.
|
||||
4. **Jobs are signed when the agent picks them up**, not when they're planned, so a scheduled job
|
||||
carries the server configuration as it is at that moment.
|
||||
5. **Uninstall runs as a batch of two** (export, then uninstall), so the uninstall never runs if
|
||||
the export failed.
|
||||
6. **Install behind frp** doesn't use nginx on the church server: frpc tunnels the app's two ports
|
||||
straight to the central server (`crosscode install --frp`). The ports from the Hub are used for
|
||||
`local_port` and `remote_port`.
|
||||
7. **`crosscode install`** refuses a database or role that already exists, so it can never take
|
||||
over (or, on a failed install, drop) another site's database.
|
||||
|
||||
## Decisions
|
||||
|
||||
Agreed with Joshua on 2026-11-12 (ROADMAP-v3 decisions 27–37):
|
||||
|
||||
Reference in New Issue
Block a user