The Core's admin account is always an admin of the app

Every app's .env gets CORE_ADMIN_EMAIL (admin@<domain>, the Core's own
admin, as Federated's apps use). The skill says apps make that account an
admin on each Core sign-in, trusting only Authelia's email, instead of a
setup link; the sso example apps show the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 18:34:36 -07:00
co-authored by Claude Opus 5.5
parent da36a669bf
commit dca8837487
8 changed files with 54 additions and 13 deletions
+8 -2
View File
@@ -192,8 +192,9 @@ The Core's own scripts trace secrets, so their output goes to
`docker-compose.yml.in`, `env.in`, `install`, `uninstall`, `icon.png`,
`coreapp.toml` and `.coreapp` (`needs=`); `/federated/apps/hello/.env`
is root's, mode 600, with `IMAGE_VERSION` equal to `version` and a
random `APP_SECRET`, and `CORE_DOMAIN` the Core's domain (an app
installed before `CORE_DOMAIN` existed gets it on its next update).
random `APP_SECRET`, `CORE_DOMAIN` the Core's domain and
`CORE_ADMIN_EMAIL` `admin@<domain>` (an app installed before they
existed gets them on its next update).
Superpanel's catalog
(`/federated/apps/superpanel/data/catalog.json`) lists `hello`.
3. `coreapp check`: `OK: HTTP 200, valid certificate.` (the first
@@ -354,6 +355,11 @@ has the `DB_*` variables, `.coreapp` says `needs=postgres`.
/nope (its forms: /signin, /signin/core)". sso-demo's `/` (a link, not
a form): "didn't lead to the Core's sign-in". A page with two
hidden-only forms: "several forms ... pick one with --form".
12. The Core's admin: a new `coreapp new --sso` app, deployed, `coreapp
signin --cookies jar`: its page says "Signed in as coreapp.test ...
groups: none." (not admin). With `CORE_ADMIN_EMAIL` in its `.env` set
to the test account's address in other capitals, recreated: "..., the
app's admin." In a browser as `admin@<domain>`: "the app's admin".
### With mysql