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
+8 -2
View File
@@ -25,8 +25,10 @@
# coreapp signin [path] sign in to it with the Core's test account, as a
# browser would, starting at path (default /login;
# a page whose button starts sign-in is pressed,
# --form <action> picks the form); --cookies <file>
# keeps the app's cookies
# --form <action> picks the form, or its one
# "Core SSO" link followed; if it fails, the app's
# error is shown); --cookies <file> keeps the
# app's cookies
# coreapp signin --code for sign-in started in the browser's JavaScript:
# get a code for the app's callback from Authelia
# coreapp signin --remove-account
@@ -394,6 +396,10 @@ cmd_signin() {
--form)
[[ $# -ge 2 ]] || die "--form needs the form's action: coreapp signin --form /signin/core /signin"
form="$2"; shift ;;
-h|--help)
sed -n '/^# coreapp signin \[path\]/,/^# coreapp signin --remove-account/{s/^# \{0,1\}//;p}' "${BASH_SOURCE[0]}"
echo " remove the test account from the Core"
return ;;
--remove-account)
init_core; sync_installer
core "$REMOTE_INSTALLER/coreapps test-account --remove"