Fixes from the Leantime rehearsal: unhealthy apps, signin links and errors
Deploy now waits while an image's own HEALTHCHECK says "starting" and stops on "unhealthy" with the check and its result, since traefik doesn't route unhealthy containers (it used to say "Updated"); an update rolls back, a first install says it stays installed, and a rollback waits until the old version is routed again. coreapp signin follows a page's one "Core SSO" or "Authelia" link, prints the app's visible error when it doesn't end signed in, and has --help. The skill covers 127.0.0.1 among trusted proxies, the image's HEALTHCHECK, COPY --chmod, $TMPDIR outside the sandbox, patching an app's OIDC code for userinfo claims, and testing a new account's first sign-in. PLAN: ID-token claims for Federated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,6 +67,14 @@ What we learned provisioning (2026-12-02/03):
|
||||
`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)
|
||||
- Authelia 4.39 puts `email`, `name` and `preferred_username` only in
|
||||
userinfo. Apps that read the person only from the ID token (Leantime)
|
||||
fail every sign-in without a patch. A claims policy in
|
||||
`idproviders.yml` (`identity_providers.oidc.claims_policies` with
|
||||
`id_token: [email, email_verified, name, preferred_username,
|
||||
groups]`), named by each client's `claims_policy`, would fix it for
|
||||
all apps. coreapps doesn't add it: it would edit Federated's part of
|
||||
the file, and a client naming a policy that's gone stops Authelia
|
||||
- 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
|
||||
@@ -523,6 +531,30 @@ Steps:
|
||||
- Decided 2026-12-04 (David): apps call the Core's sign-in "Core
|
||||
SSO" or "Authelia" (provider name, button text: "Sign in with Core
|
||||
SSO"). In the skill, sign-in.md, porting.md and the sso examples
|
||||
- Rehearsed 2026-12-04 with Leantime (upstream PHP image; postgres,
|
||||
sso, email; it chose PostgreSQL over MySQL, as the skill says, so
|
||||
`mysql` is still unrehearsed): deployed at
|
||||
`https://leantime.dev.fedcom.net/`, signed in (the test account
|
||||
read-only), admin rule by a trigger on the admin's row, a password
|
||||
reset read with `coreapp inbox`, data kept by `--recreate`. Two
|
||||
patches to Leantime: claims from userinfo (it reads only the ID
|
||||
token) and no sample project for read-only newcomers (its first
|
||||
page was a 403). Fixed from it: deploy waited 30 s and said
|
||||
"Updated" when the image's own HEALTHCHECK failed (Leantime
|
||||
refused 127.0.0.1 after trusted proxies were set) and traefik
|
||||
didn't route it; it now waits while Docker says "starting", stops
|
||||
on "unhealthy" with the check and its last result (an update rolls
|
||||
back; a first install says it stays installed), and a rollback
|
||||
waits until the old version is routed again. `coreapp signin`
|
||||
follows a page's one "Core SSO"/"Authelia" link like a button,
|
||||
prints the app's visible error when it doesn't end signed in, and
|
||||
has `--help`. Skill: 127.0.0.1 among trusted proxies, the image's
|
||||
HEALTHCHECK, `COPY --chmod`, `$TMPDIR` outside the sandbox,
|
||||
`coreapp shell`'s user, patching an app's OIDC code for userinfo
|
||||
claims, testing a new account's first sign-in
|
||||
- [ ] David: sign in to leantime as admin@dev.fedcom.net (owner;
|
||||
a project, a task, an upload); remove it when done
|
||||
- [ ] A MySQL-only app, to rehearse `mysql`
|
||||
- [ ] David: sign in to listmonk-app as admin@dev.fedcom.net
|
||||
(Super Admin, Settings), and send a campaign from
|
||||
`listmonk-app@dev.fedcom.net`; remove it when done
|
||||
|
||||
Reference in New Issue
Block a user