Skip to content

feat(identity): Dex lets Superset request the olf-cli audience (#968 slice 4.1) #985

Closed

Description

@malon64

Slice 4.1 of #968 (tracker #960). No dependency — wave 1. Inert until slice 4.3 uses it.

Scope (from spike #962)

  • infra/terraform/environments/local/main.tf (trusted_peers, around line 419): olf-cli = ["perimeter", "superset"], so a token Superset requests with audience:server:client_id:olf-cli carries aud ["olf-cli","superset"], which Trino (required-audience=olf-cli) and Polaris (quarkus.oidc.token.audience=olf-cli) already accept. No audience change in Trino or Polaris.
  • contracts.tf identity_consumer_redirects.superset: add https://superset-<stage>.<base_domain>/api/v1/database/oauth2/ (or http:// with issuer: none) per analytics stage; Dex matches redirect URIs exactly.
  • ADR 0014: the Dex client table notes superset as a trusted peer of olf-cli and why.

Acceptance

  • Terraform test asserts the trusted peer and the redirect per analytics stage.
  • Verify on kind that a token minted for superset with the audience scope is accepted by Trino and Polaris (multi-valued aud, not checked by the spike) — record the result in the PR; if refused, stop and report.

Activity

  1. added
    roadmap
    on Nov 7, 2026
  2. added
    priority: P1
    track: identity
    on Nov 7, 2026
  3. malon64 commented on Nov 7, 2026

    @malon64
    CollaboratorAuthor

    PR: #1001 (ready for review, CI all green including Deploy slim kind smoke).

    Summary: olf-cli trusted peers are now perimeter and superset. Superset's database OAuth2 redirect is registered per analytics stage. A small client_redirect_uris output on the Dex module lets the wiring test assert it. ADR 0014 notes the peer and why. 6 files, +28/-9.

    Gates: Terraform tests pass (wiring 8/8, dex module), ruff and mypy clean, pytest 3347 passed at 86.74% coverage. olf check all stops at the project-code step only because this sandbox has Python 3.13 (needs 3.12); unrelated to the change.

    Owed on kind (coordinator): mint a token as superset with scope ... federated:id audience:server:client_id:olf-cli, confirm aud contains both olf-cli and superset, then call Trino /v1/statement and Polaris with it and expect 2xx. Exact commands are in the PR body. If either refuses the multi-valued aud, stop and report here.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: P1roadmaptrack: identitytype: feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions