Fixes from porting Supermarket: sign-in buttons, CORE_DOMAIN, skill gaps
An agent ported Supermarket with only the skill. coreapp signin now presses a sign-in page's button (a form with only hidden fields; --form picks one), every app gets CORE_DOMAIN, and the skill covers apps that also run elsewhere, IMAGE_VERSION instead of build args, deriving keys from APP_SECRET, the first admin, apps with their own client setup, and that the groups claim is empty on today's Cores. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -58,6 +58,12 @@ What we learned provisioning (2026-12-02/03):
|
||||
mail server also has no `SPOOF_PROTECTION`, so any account can send
|
||||
as any address. coreapps gives each app its own sending-only
|
||||
account instead (see Coreapps, step 4)
|
||||
- Authelia's `groups` claim is always empty: its LDAP settings look
|
||||
for `(member={dn})` with names from `gidNumber`, but the Core's
|
||||
groups (`admins`, `everybody`) are `groupOfUniqueNames` with
|
||||
`uniqueMember`. `groups_filter: (uniqueMember={dn})` and
|
||||
`group_name: cn` would give apps `admins`/`everybody` (checked
|
||||
2026-12-03 on dev.fedcom.net's LDAP; not changed there)
|
||||
- On this image, disabling systemd-resolved isn't enough: networkd's
|
||||
`systemd-networkd-resolve-hook.socket` starts it at boot, it takes
|
||||
port 53 and pdns can't start after a reboot. coreapp-dev masks it
|
||||
@@ -381,8 +387,27 @@ Steps:
|
||||
a wrong callback shows Authelia's hint
|
||||
- [ ] Hide the test account from Superpanel's users (HIDDEN_USERS, as
|
||||
`fcore`), if it bothers anyone; it only exists on dev Cores
|
||||
- [ ] Test it with David's candidate app: an agent in that repository
|
||||
uses the skill; what it struggles with becomes fixes
|
||||
- Tested 2026-12-03 with David's candidate app, Supermarket (Go; its
|
||||
server edition already had Postgres, mail, users and Core sign-in), by
|
||||
an agent given only the skill, in a clone (commit 24338c7 there, not
|
||||
in David's repository). Deployed at `https://supermarket.dev.fedcom.net/`
|
||||
with postgres, sso (`[sso] callback = "/auth/core/callback"`,
|
||||
`token_auth = "client_secret_post"`) and email; `coreapp check`,
|
||||
`coreapp signin`, data kept by `--recreate`. Fixed from its findings:
|
||||
`coreapp signin` presses a sign-in page's button (a POST form with only
|
||||
hidden fields, such as a CSRF token; `--form <action>` picks one), so
|
||||
the agent's extra GET route isn't needed; `CORE_DOMAIN` in every app's
|
||||
`.env` (the Core's domain, set only on a Core; updates add it); the
|
||||
skill now says: apps that also run elsewhere choose Core behaviour on
|
||||
`CORE_DOMAIN` without changing the Dockerfile for everyone; no build
|
||||
args (read `IMAGE_VERSION`); `APP_SECRET` isn't key bytes (hash it) and
|
||||
lives only in `.env`; `groups` is empty today (see "Tell Federated");
|
||||
the first admin comes from a setup link in the log, not whoever signs
|
||||
in first; apps with their own client-setup step take `OIDC_*`
|
||||
instead; icons under 80 pixels get a note
|
||||
- [ ] David: the agent's changes, for Supermarket's own repository
|
||||
(and a login CSRF it noticed in the app's sign-in: its OIDC state
|
||||
isn't tied to a browser cookie)
|
||||
6. [ ] The Coreapps screen in Superpanel (Federated's code: needs their
|
||||
agreement). Until then, the installer could run as a small web app behind
|
||||
Authelia, for admins only
|
||||
|
||||
Reference in New Issue
Block a user