Open WebUI rehearsal: coreapp shell sources /coreapp/env.sh

Settings an upstream image's entrypoint builds from the Core's (a
database URL) go in /coreapp/env.sh, which the entrypoint sources and
coreapp shell now sources too, for one command and interactively.

Skill: that file; apps that migrate only inside the server; a pending
role isn't read-only; a never-shown password when an app insists on one;
keep the admin trigger when sso is dropped; $TMPDIR differs for any
command outside the sandbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-04 13:32:43 -07:00
co-authored by Claude Opus 5.5
parent 114b364cef
commit b855fd53f4
6 changed files with 53 additions and 12 deletions
+10 -4
View File
@@ -94,13 +94,18 @@ else gets the lowest role that can look around. How:
- If the app has its own first-run setup (an owner to create, a setup
link), skip it on a Core: the Core's admin is the owner. If the app
can't run without an owner (its pages say "not set up" until there is
one), make `CORE_ADMIN_EMAIL` the owner at startup, without a password.
one), make `CORE_ADMIN_EMAIL` the owner at startup, without a password
(or, if the app insists on one, a random one that is never shown or
saved).
- That account signs in only with the Core: turn off the app's password
sign-in and password reset for it, or its forgot-password page could
give it a local password.
- Other Core accounts join on their first Core sign-in, without an
invitation, as read-only members (a viewer: they see what members see,
change nothing). Not "nothing until an admin grants access".
change nothing). Not "nothing until an admin grants access": a
"pending" or "awaiting approval" role isn't read-only, it's locked out.
If the app has no viewer role, use its regular user role and say so in
your report.
- The example app (`coreapp new --sso`) shows the admin check in `oidc.py`.
- In an upstream image you can't change, use what it offers, in this
order: a setting that names admins by email; its CLI or API at startup
@@ -108,8 +113,9 @@ else gets the lowest role that can look around. How:
rule has to hold on every sign-in and the app has no hook for it, a
database trigger on its users table that touches only the
`CORE_ADMIN_EMAIL` row (role, enabled, no password), made at startup by
the entrypoint and explained in a comment. Say in your report which you
used.
the entrypoint and explained in a comment. Keep it if `sso` is dropped
later: the admin rule holds without sign-in too. Say in your report
which you used.
## Testing sign-in: coreapp signin