Skip to content

feat(superset): per-user data access through Polaris (phase 4 of #960) #968

Closed
3 of 3 issues completed
Closed

Description

@malon64

Part of #960. Gated on S2 (#962). Closes the Superset part of #367.

Scope

  • Superset sends the signed-in user's Dex token to the stage's Trino as the token extra credential (mechanism from S2), so a viewer's dashboard returns only what the viewer's role reaches in Polaris (ADR 0019 matrix).
  • Token audience accepted by Polaris (Dex trustedPeers or a second audience), refreshed before each query.
  • per_user_caching (or CACHE_QUERY_BY_USER) on, so no user's cached result is served to another.
  • Cache warm-up, alerts/reports and thumbnails: disabled, or run as an olf-<stage>-reports principal with Gold read only — decision recorded in ADR 0019.
  • The shared stage principal of Superset is removed.
  • Superset's own role checks (ADR 0014 schema_access) stay as a UX layer; Polaris is the enforcement.

Acceptance

  • e2e: a viewer opens a PROD dashboard and gets rows; the same chart against DEV Gold is refused; an analyst sees DEV and PROD Gold, never Silver.
  • Two users with different roles never see each other's cached results.

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

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

    @malon64
    CollaboratorAuthor

    Closing: #985, #986 and #987 are merged, and since #1046 the acceptance runs in the full e2e.

    A viewer gets PROD rows and is refused DEV Gold; an analyst sees DEV and PROD Gold and never Silver.

    • e2e/_superset_person.py signs a person in through the perimeter and Superset:
      • The viewer reads a PROD chart's rows.
      • The analyst reads the DEV chart's rows. The viewer then asks for the same DEV chart and gets no rows, from a Polaris refusal and not a lost sign-in token.
    • e2e/_person_access.py checks every role's Silver and Gold reads on both stages. Analysts are refused Silver.

    Two users with different roles never see each other's cached results: the viewer's request comes right after the analyst's, on the same chart and dataset, so a result cached across users would have answered it.

    All of this ran in run 42717608960, success on every step.

    AWS and Azure keep a shared coordinator, so their reports get no per-user connection until their cloud milestone (ADR 0019 section 9 point 4).


    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