Add the mysql need: its own database on the Core's MariaDB

needs = ["mysql"] (coreapp new --mysql) makes a user and database
coreapp_<name> on pdnsmysql, with the same DB_* settings as postgres
(so an app has one or the other). Root's password is read inside the
container, so it stays out of installapp's set -x log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 15:15:23 -07:00
co-authored by Claude Opus 5.5
parent 6ab1db839b
commit 8ef2112e3c
12 changed files with 93 additions and 14 deletions
+12 -1
View File
@@ -320,6 +320,17 @@ Steps:
authenticated account (Federated's apps' `fcore` too) can send as any
address. Tell Federated; with it on, an app could only send as its
account's address
- MySQL (2026-12-03): `needs = ["mysql"]` (`coreapp new --mysql`): a
user and database `coreapp_<name>` (utf8mb4) on `pdnsmysql` (MariaDB
12.1, shared with PowerDNS), as Federated's apps do (e.g.
`lib/bookstack.sh`); same `DB_*` names as postgres, so an app has one
or the other. Root's password is read inside the container
(`$MYSQL_ROOT_PASSWORD`), not by the script, so it isn't in the
`set -x` log (Federated's `functions.sh` logs it anyway as
`MYSQL_ROOTPASSWORD=`, for every install: see "Logs"). Tested on
dev.fedcom.net: both needs refused, install, a table made and read from
the core network, no access to `powerdns`, wrong password refused,
remove drops the user and database, reinstall
- [ ] AI needs (findings below; needs Federated), then other services:
PowerDNS records beyond the wildcard, if an app needs other hostnames
5. The skill (moved ahead of 2-4, 2026-12-03): `skills/coreapp/SKILL.md`,
@@ -355,7 +366,7 @@ Their points, and where coreapp-dev stands:
done
- MySQL apps use the `pdnsmysql` container (MariaDB, 192.168.0.10, also
PowerDNS's database), PostgreSQL apps `postgresql`: postgres is done;
[ ] a `mysql` need (its own user and database there)
done (`mysql` need, Coreapps step 4)
- Authelia through `installapp-sso` / `configsso_<app>`: needs a
`lib/<app>.sh`, so not used; the sso need does the same, and keeps the
client copy Federated's apps keep