kanidm (Fix): no COOP on sign-in popup pages - unblocks OpenBao UI OIDC (openbao#4524) #1780
No reviewers
Labels
No labels
epic
fleet:hub
fleet:identity
fleet:ingress
fleet:offload
fleet:sveltos
needs-triage
ready-for-agent
ready-for-human
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/clusters!1780
Loading…
Reference in a new issue
No description provided.
Delete branch "kanidm-coop-popup"
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?
OpenBao UI OIDC login fails with "can not access property postMessage, window.opener is null" (reproduced in Helium over CDP: the popup lands on /ui/vault/auth/oidc/oidc/callback with a valid code and window.opener === null). Cause: kanidm 1.12 sends Cross-Origin-Opener-Policy: same-origin; when the popup navigates to kanidm, the browser puts it in a new browsing context group and the opener link is gone for good. Upstream: openbao/openbao#4524 (open, 2026-11-19), kanidm#4704 (kanidm says OpenBao must fix it). The reporter verified stripping the header at a proxy makes login work.
Change: the kanidm HTTPRoute removes Cross-Origin-Opener-Policy only on /ui/oauth2 and /ui/login, the documents a sign-in popup loads; every other kanidm page keeps it. Trade-off: those two pages lose COOP xs-leak isolation; the CSP, frame-ancestors none, CORP and COEP stay. Revert when OpenBao fixes #4524.
Checks: server dry-run OK; gate green.