kanidm (Fix): no COOP on sign-in popup pages - unblocks OpenBao UI OIDC (openbao#4524) #1780

Merged
ginjiruu merged 1 commit from kanidm-coop-popup into main 2026-11-21 03:26:06 +00:00
Owner

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.

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.
Sign in to join this conversation.
No description provided.