Let an installed app drop a need

Taking sso or email out of needs removes the client or mail account once
the new version answers; postgres or mysql need --drop-database (coreapp
deploy asks for the app's name). Their settings leave .env first, so a
postgres -> mysql switch gets mysql's own values; a failed update rolls
back with them intact. The route wait now compares traefik's answer with
the app's own, so an app's 404 isn't taken for a missing route.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 20:02:03 -07:00
co-authored by Claude Opus 5.5
parent f56641bbe1
commit adcd2f9aec
6 changed files with 148 additions and 28 deletions
+11 -1
View File
@@ -512,7 +512,17 @@ Later:
- [ ] Very large databases: a dump on every update may still be too
slow; a btrfs snapshot of the database server's data, or skipping
the copy with the user's agreement, could replace it
- [ ] Uninstalling a need without removing the app (now refused)
- Done 2026-12-03: dropping a need from an installed app. `sso` and
`email` go freely; `postgres`/`mysql` (the app's data) need
`--drop-database` (coreapps install/plan; `coreapp deploy` asks for the
app's name). The dropped needs' settings leave `.env` before the update
(so a switch postgres -> mysql gets mysql's own `DB_*`), and their
teardown, from the service folder kept for the rollback, runs only once
the new version answers; a failed update rolls back with them intact.
Tested on dev.fedcom.net: sso and email dropped, a crashing version
rolled back with them kept, the refusals, postgres -> mysql. Found and
fixed with it: deploy's route wait took an app's own 404 for traefik's
(it now waits for traefik to answer as the app does)
- [ ] `bin/start` / `bin/stop` don't know coreapps' apps (see "Tell
Federated"); `restart: always` covers reboots
- [ ] Trust: a list of reviewed apps, or signed releases, and a warning in