+1. Thanks Madhushree for the clean reference PR, as it really clarifies the 
intent (and utility) of the SIP.

Ville

> On Dec 2, 2026, at 11:30 AM, Madhushree via dev <[email protected]> 
> wrote:
> 
> Hi All,
> 
> I'd like to call a vote on SIP-229: one-time login tokens that let a trusted 
> parent application embed Superset in an iframe without sharing a reusable 
> credential with the browser.
> 
> Discussion thread: 
> https://lists.apache.org/thread.html/x8fr3pol5tng2579h9mzww2xf2z0lh2x
> SIP: https://github.com/apache/superset/issues/44363
> Reference PR: https://github.com/apache/superset/pull/44365
> 
> Summary:
> - Gated behind a new LOGIN_TOKEN feature flag (default off) plus an 
> operator-supplied LOGIN_TOKEN_IDENTITY_RESOLVER. With either unset, the 
> endpoints return 404, so the surface is closed by default.
> - The parent app calls POST /api/v1/security/login-token server-to-server. 
> The resolver is the authentication boundary: it turns the caller's own proof 
> of identity (an OIDC id token, an internal service credential, an existing 
> session) into a Superset identity and returns a single-use token.
> - The browser's iframe navigates to GET /api/v1/security/login-token, which 
> exchanges the token for a normal Superset session cookie and redirects to a 
> site-relative next. The session carries the user's own roles and row-level 
> security.
> - Tokens are single-use, short-TTL (LOGIN_TOKEN_TTL_SECONDS, default 60s), 
> burned before provisioning so a spent token can't be replayed, and never 
> appear in a reusable form. Role assignment stays with the operator: role_keys 
> are resolved only through AUTH_ROLES_MAPPING.
> - The mint endpoint is rate limited (LOGIN_TOKEN_RATE_LIMIT) and lives on its 
> own blueprint so the limit doesn't affect sibling endpoints. The mint request 
> body is excluded from the event log so an upstream credential is never 
> persisted.
> - When the flag is off, nothing changes.
> 
> Following the PR feedback, the identity contract is a single resolver hook 
> (receiving only the request) and the redirect is restricted to site-relative 
> paths. The trust model and its one acknowledged residual are documented in 
> the LOGIN_TOKEN_IDENTITY_RESOLVER config reference and the consume handler: 
> redemption refuses to replace a different signed-in user's session, but 
> because the token isn't bound to the redeeming browser, a user with no 
> existing Superset session who is handed a valid token within its TTL is 
> signed in as the token's user (classic login CSRF). This is noted as an 
> accepted, documented limitation for the initial flag-gated version; a 
> browser-binding mitigation for same-registrable-domain deployments is a 
> possible follow-up.
> 
> The vote is open for 72 hours. Please reply with:
> +1 approve
> 0 no opinion
> -1 disapprove (please include the reason)
> 
> Thanks,
> Madhushree

Reply via email to