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:
2026-12-03 18:22:42 -07:00
co-authored by Claude Opus 5.5
parent da767e2139
commit dcc72fe5da
7 changed files with 196 additions and 24 deletions
+11 -1
View File
@@ -192,7 +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`. Superpanel's catalog
random `APP_SECRET`, and `CORE_DOMAIN` the Core's domain (an app
installed before `CORE_DOMAIN` existed gets it 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
certificate can take a minute).
@@ -344,6 +346,14 @@ has the `DB_*` variables, `.coreapp` says `needs=postgres`.
bans after three). `coreapp signin --remove-account`: "Removed", then
"There's no test account"; `coreapp signin` makes it again.
`coreapps test-account` with less than 16 characters on stdin: refused.
11. A sign-in page with a button (Supermarket's `/signin`: a password
form, and a POST form to `/signin/core` with only hidden fields):
`coreapp signin /signin` shows `POST .../signin/core (the form's button
"Sign in with ...") -> 303`, then signs in. `--form /signin/core
/signin`: the same. `--form /nope /signin`: "has no form with action
/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".
### With mysql