Shorten the skill into reference files; fixes from the Miniflux rehearsal

SKILL.md keeps what every app needs; sign-in details and publishing move
to references/sign-in.md and references/publishing.md, read when it says.
A Miniflux rehearsal found coreapp signin calling a quiet callback failure
"Signed in": it now checks the app's page doesn't offer sign-in again.
Every app gets CORE_PROXY (traefik's address). The skill says groups is
null (don't map roles from it), claims come from userinfo, and to wait
for Authelia's discovery and the database at startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 20:14:06 -07:00
co-authored by Claude Opus 5.5
parent adcd2f9aec
commit a7cd4e325c
9 changed files with 319 additions and 176 deletions
+23 -1
View File
@@ -58,7 +58,10 @@ 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
- Authelia's `groups` claim is `null` (not even `[]`, which breaks
apps that expect a list: Miniflux refuses every sign-in with group
mapping on), and the ID token carries no email or name (only
userinfo has them). The groups: 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
@@ -467,6 +470,25 @@ Steps:
- [ ] A mailbox for the test account (`coreapp.test`), so mail to
it is delivered and `coreapp mail` could read it; needs the
Core's mailbox conventions (uidNumber, homeDirectory)
- Skill shortened 2026-12-03 (577 -> ~450 lines): sign-in details in
`references/sign-in.md`, publishing in `references/publishing.md`,
read when SKILL.md says. Rehearsed with Miniflux (upstream image,
postgres, sso; a new agent, an empty repository): deployed, signed
in, data kept, and it used the reference file. Fixed from it:
`coreapp signin` called a quiet callback failure "Signed in" (the
app sent the browser back to its sign-in page); it now says "Not
signed in ... offers sign-in again". Every app's `.env` has
`CORE_PROXY` (traefik's address, to trust for `X-Forwarded-*`). The
skill: `groups` is `null` (don't turn on group mapping), claims
only in userinfo, `preferred_username` is the email; apps that can
make admins only from groups can't follow the admin rule yet
(Miniflux: no admin until groups work); wait in the entrypoint for
Authelia's discovery and the database; chain to the upstream
image's entrypoint; secure-cookie settings; a regular user is the
lowest role where people have only private things; the cookie jar
in one command
- [ ] David: Miniflux runs without an admin until the Core's
groups work (then map `admins`)
- [ ] `[postgres] extensions = ["vector"]`: the installer enables
extensions an app can't (when an app needs one)
- [ ] PostgreSQL 18 on the Core (Federated's), or a minimum version