Hub 2.8.0: an install's .env on its page, changed with a restart

- Settings (.env) panel on an Events or Accounts install: reads the .env through an env-read job
  (addresses first; secrets only as set or not), and changes plain values with an env-set job
  (restart, or rebuild for the frontend's file; the server puts the file back if the site doesn't
  start). After a change the file is read again. One change per install at a time.
- Contracts 1.12.0 vendored (env jobs need agent 1.3.0).
- env-read / env-set in the Jobs type filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-20 12:14:13 +02:00
co-authored by Claude Opus 5.5
parent 3fbe8708e8
commit 98db54aad2
13 changed files with 422 additions and 12 deletions
+20
View File
@@ -5,6 +5,26 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
## [2.8.0] - 2026-11-20
Needs `@crosscode/contracts` 1.12.0 (vendored) and, on each server, agent 1.3.0.
### Added
- **An install's .env on its page** (Servers → Installs → an Events or Accounts install, "Settings
(.env)"). "Read from the server" queues an `env-read` job; the values show when the agent has
answered (the panel checks every few seconds), with the addresses first (`FRONTEND_URL`,
`APP_BASE_URL`, `BACKEND_URL`, `NEXT_PUBLIC_API_URL`; `ACCOUNTS_URL`, `ACCOUNTS_API_URL`).
Secrets never reach the Hub: only whether they're set.
- **Changing values and restarting.** Edit, add or remove plain values in one file and "Save and
restart" (an `env-set` job). The backend's file restarts the backend (or not, if you untick it);
the frontend's file rebuilds and restarts the frontend. The server keeps a copy of the file and
puts it back if the site doesn't answer afterwards; the panel then says so. After a change the
file is read again by itself. Secrets, values the server generates and values the apps can't
start with (TRUST_PROXY=TRUE) are refused. One change per install at a time (`ALREADY_PLANNED`).
The audit log records the names changed, not the values.
- `env-read` and `env-set` in the Jobs page's type filter.
## [2.7.1] - 2026-11-19
### Fixed