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>
## Sign-in
`needs = ["sso"]`: people sign in with their Core account, through the
Core's Authelia (OpenID Connect, authorization code flow with PKCE).
- At install, the client `coreapp-{{NAME}}` is registered in Authelia, with
the random `OIDC_CLIENT_SECRET` from `.env`. `coreapp remove` removes it.
- Its redirect URI is `https://{{NAME}}.<domain>/auth/callback`, so the app
has to handle that path.
- Authelia decides whether a second factor is needed (the Core's 2FA
policy).
- `oidc.py` does the whole flow with Python's standard library, and `app.py`
uses it for `/login`, `/auth/callback` and `/logout`. For a real app, use
your framework's OpenID Connect library with `OIDC_ISSUER`,
`OIDC_CLIENT_ID` and `OIDC_CLIENT_SECRET`.