idip: Listmonk (newsletters) signs in through the bridge, keyed on the AID-derived email #1920
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Depends on
Reference
Matou/idss#1920
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#1915
What to build
Listmonk's IDIP render branch: bridge issuer, users matched/created by the AID-derived email claim, name from
name, steward → admin. The newsletters port resolves the same derived email on IDIP.Acceptance criteria
Blocked by
Blocked — a design ruling is needed on how Listmonk keys on the AID-derived email
This slice cannot be implemented as a straight render-branch mirror of #1918/#1924, because of a genuine incompatibility between the parent-spec claim design and Listmonk's OIDC capability:
derived_email, and its locked acceptance + a passing test require the standardemailclaim to carry only a real address on record (internal/idp/storage.go:596-660,internal/idp/claims_1917_seam_test.go). So on IDIP an email-less member'semailclaim is empty.emailclaim and has no claim-mapping setting (confirmed ininternal/newslettersvc/newslettersvc.go:73-78,273-276,422-437and the theming research doc) — it cannot be told to readderived_email. So as things stand the derived email never reaches Listmonk and an email-less member cannot sign in.sub(the AID); Jitsi (#1924) onname. Listmonk is the first true email-keyed consumer of the bridge, so it is the first slice to hit this gap.The decision needed (a human's call — it reinterprets the human-locked #1917 invariant on a security-relevant account-keying surface)
Option A (I recommend): a per-client bridge exception — for the newsletters (Listmonk) client only, emit the derived email in the standard
emailclaim when the member has no real address on record (realizing parent-spec User Story 10, "an AID-derived address used when I have none on record"). The blanket #1917 invariant stays intact for every other client (its gate-client test still passes). The render then points Listmonk at the bare bridge issuer + the shared client secret +auto_create_users+ the Members role (the #1918/#1924 shape); the newsletters reconciler'sEmailOfresolves the same derived email on IDIP (mirroringgristEmailsincontrol-plane/cmd/control-plane/main.go). Fully revertible, provable by seam/render tests; the live proof (AC3) deferred like #1918/#1924.Option B: keep #1917 blanket-intact and introduce another mechanism (e.g. a claim-remapping proxy in front of Listmonk) — heavier, none exists today.
Option C: something else.
I asked in Mattermost (question
cssir48rd7bddx3m1u6p4dpcge) but got no reply within the wait window, so I'm parking the ticket rather than guessing. A late reply in that thread is not lost — the next ask resumes it.Why human
Resolving this reinterprets a human-locked parent-spec decision (#1917: "the AID-derived email … never in
email", with a passing test) on the security-relevant question of what keys a member's Listmonk account. The correctness of any choice ultimately rests on the deferred live proof and on product intent, not on a test I can run this iteration, so it is not mine to rule.To re-arm
Pick Option A (or an alternative) and re-add
ready-for-agent. With Option A confirmed, the implementation is: (1) per-clientemail-claim branch in the bridge for the newsletters client; (2)renderNewslettersOIDCBridge+NewslettersConfig.BridgeIDP; (3) thenewslettersentry incatalogueBridgeClients(idssidp.go) with a sharednewsletters-oidc-secretclan var; (4) threadBridgeIDPthroughnewsletters_attach.go/portroute.go(deploy.goalready threadso.bridgeIDP); (5)EmailOfIDIP branch for newsletters inmain.go; (6) dropnewslettersfromnotYetIDIPReady(assess.go); (7) tests + STATUS.md.