diff --git a/CHANGELOG.md b/CHANGELOG.md index 814ca07..e390c1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,41 @@ versions follow [Semantic Versioning](https://semver.org/). ## [Unreleased] +Planned as 2.1.0 (crosscode-platform `docs/AGENT-1.0-PLAN.md`, phase 1d). **Before deploying, see +`deployment.md` → "Upgrading to 2.1"** (a new job-signing key). + +### Added + +- **Servers**: Add server gives a one-time join command (valid an hour) for the server agent. Each + server's page shows CPU and RAM over 24 hours, 7 days and 90 days with spikes marked, disks, + versions, PM2 processes, its sites, jobs and alerts, and its configuration (database, TRUST_PROXY; + stored encrypted and sent only sealed to that server's key). Stats are kept per minute for 7 days + and per hour for 90 days. +- **Agent API** (`/api/agent/v1`): join, poll, stats, report and export upload, signed with each + server's Ed25519 key. Jobs are signed with a separate job key and built when the agent picks them + up; each server gets one job at a time; a job not picked up in its window is **missed** and never + runs late. +- **New install**: customer, short name, domain, site admin and server (with its free RAM, CPU and + sites); the Hub makes the licence, picks two ports from the port list, checks the server's + configuration against the release's env template, and the agent installs. The report and the + FASTPANEL steps come by email; **Proxy done** checks the public addresses and sends the church its + welcome email. +- **Updates**: scheduled at least 4 hours ahead, or as an emergency (15 minutes, a reason, 2FA), + for one install or a batch that runs one at a time and stops at the first failure. Churches get an + email with what's new, a banner, a reminder an hour before, and the outcome. +- **Link existing** installs, and move 2.1.x ones onto the monorepo (an `adopt` job). +- **Uninstall** (2FA and the short name): the church's data is exported first, encrypted on the + server with a key that only travels in the emailed link (the Hub passes it on once and doesn't + store it), then the site is removed; the final backup is purged after 30 days (put off once). +- **Server alerts**: agent silent, disk over 85%, RAM over 90% for 5 minutes, a process restarting, + frpc down, and on the central server frps down or `proxy_bind_addr` missing. +- Pages: Servers, Installs, Updates, Jobs (each job's steps and log), Ports & defaults, and the + public download page that decrypts an export in the browser. + +### Changed + +- `@crosscode/contracts` 1.3.0 (agent jobs, reports, stats, env templates, church export). + ## [2.0.1] - 2026-11-17 ### Added