Fixes from the listmonk rehearsal; porting checklist in its own file
A rehearsal porting listmonk (postgres, sso, email) deployed it, signed in, and read its opt-in mail with coreapp inbox. The name refusal said the Core "already has" listmonk when it's Federated's uninstalled app; it now says so, and coreapp core lists the names apps can't use. The porting checklist moves to references/porting.md, adding settings kept in the app's database, upstream entrypoints that assume root, and min_version from the app's documented minimum. sign-in.md: the admin rule in an upstream image, and when --form isn't needed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -92,6 +92,14 @@ else gets the lowest role that can look around. How:
|
||||
invitation, as read-only members (a viewer: they see what members see,
|
||||
change nothing). Not "nothing until an admin grants access".
|
||||
- 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
|
||||
(making `CORE_ADMIN_EMAIL` an admin before anyone signs in); and if the
|
||||
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.
|
||||
|
||||
## Testing sign-in: coreapp signin
|
||||
|
||||
@@ -112,8 +120,10 @@ jar=$(mktemp) && coreapp signin --cookies "$jar" /login && curl -b "$jar" https:
|
||||
```
|
||||
|
||||
- A page with a sign-in button (a form with only hidden fields, such as a
|
||||
CSRF token) is submitted as a person pressing it would; with several such
|
||||
forms, pick one with `--form <action>`. Don't add routes to the app just
|
||||
CSRF token) is submitted as a person pressing it would. Forms with fields
|
||||
to fill (a password form beside the button) are ignored, so a page with
|
||||
one button and a password form needs nothing more; only with several
|
||||
buttons, pick one with `--form <action>`. Don't add routes to the app just
|
||||
for the test.
|
||||
- With `--cookies`, check what the test account may do: it should land as
|
||||
a read-only member. Keep the jar's path in one command, as above
|
||||
|
||||
Reference in New Issue
Block a user