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:
2026-12-04 11:33:52 -07:00
co-authored by Claude Opus 5.5
parent cbdf0e5789
commit f4b869decd
8 changed files with 261 additions and 22 deletions
+24 -3
View File
@@ -249,6 +249,15 @@ The Core's own scripts trace secrets, so their output goes to
Comparison is numeric (`"17.10"` is newer than 17.6); `min_version =
17.4` (a TOML number with a dot) and `">=18"` are refused with a hint;
`[mysql]` has no `extensions`.
5f. An image with its own failing `HEALTHCHECK` (`coreapp new x`, then
`HEALTHCHECK --interval=3s --retries=2 CMD ["false"]` in the
Dockerfile): a new install stops with "Docker says x is unhealthy, so
traefik doesn't route ... (CMD false); its last result: exit code 1"
and "x is installed but not working. Deploying again updates it ...".
With a passing check (`wget -qO /dev/null http://127.0.0.1:8080/`) it
deploys; breaking it again in an update gives the same message with
the wget error, rolls back, and right after "Rolled back" the public
address answers 200 (the rollback waits for traefik).
6. `coreapp status` (address and port), `coreapp logs`, `coreapp shell`
(exit with `exit`), `coreapp shell 'id; echo $APP_URL'` (prints both,
no terminal needed, also when piped), `coreapp list` (all apps installed
@@ -433,9 +442,21 @@ has the `DB_*` variables, `.coreapp` says `needs=postgres`.
`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".
/nope (its forms: /signin, /signin/core)". A page whose only link to
sign-in doesn't name Core SSO (sso-demo deployed before the label,
"Sign in with your Core account" at `/`): "didn't lead to the Core's
sign-in". A page with two hidden-only forms: "several forms ... pick
one with --form".
11b. A sign-in link: Leantime's `/auth/login` (a password form and a link
"Sign in with Core SSO" to `/oidc/login`): `coreapp signin
/auth/login` shows `GET .../oidc/login (the link "Sign in with Core
SSO") -> 302` and signs in. In the module, `pick_link` finds a link by
its text, title or aria-label (Core SSO or Authelia), follows two
links to the same address, and none when two name different ones.
`page_says` gives the text of elements whose class, id or role says
alert, error, notice and the like (`' The page says: "..."'`), and ''
without one; the "Not signed in" messages after the app end with it.
`coreapp signin --help` prints signin's part of `coreapp help`.
11a. A callback that fails quietly: an app whose callback sends the browser
back to its sign-in page (Miniflux with group mapping on, or its sign-in
page replayed through `signin.main` with `follow` replaced): "Not