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>
needs = ["email"] (coreapp new --email) makes an LDAP account
coreapp-<name> (not a person, no mailbox) and adds SMTP_* settings.
Teardown removes it only if it's the app's; the installer warns about
an entry it left alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An app's repository now has only coreapp.toml, its Dockerfile, its code
and an icon: no install scripts or compose file, so installing an app
from someone else's repository can't run their code as root on a Core.
core/coreapps runs on the Core (coreapp deploy puts it in /opt/coreapps).
It checks the manifest, refuses Federated's app names and the Core's
hostnames, picks a free address on that Core, writes the generic app
format from its own templates, sets up the needs (postgres, sso) and
installs through installapp. Updates keep the address, secrets and data,
add settings for new needs and delete old images; dropping a need is
refused. remove rebuilds Superpanel's catalog afterwards.
PLAN.md: the Coreapps direction and steps, and what the Core offers apps
(Superpanel's AI features, mcpserver, hermes, email, PowerDNS).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apps are folders in Federated Core's generic services format (service,
docker-compose.yml.in, env.in, install, uninstall, icon.png) plus their
own Dockerfile. coreapp new scaffolds one from templates/app with an
address in 192.168.200.x; deploy builds the image, copies it to the Core
over SSH, installs it with installapp (and starts it, since the Core's
start only knows its own apps) or updates it keeping .env; check, status,
logs, shell and remove work on the Core.
Apps in development aren't registered with Federated's monitoring: deploy
drops MONITOR from the Core's copy of service. installapp/uninstallapp
traces go to private logs, not the terminal.
update.sh installs docker and docker-buildx and links coreapp into
~/.local/bin. PLAN.md: how the Core runs apps, and corrected evidence for
the Core's timers running their jobs at every boot.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>