You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(superset): per-user data access through Polaris (phase 4 of #960) #968
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.
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.
Activity
olf-cliaudience (#968 slice 4.1) #985malon64 commentedon Nov 10, 2026
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.pysigns a person in through the perimeter and Superset:e2e/_person_access.pychecks 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
feat(superset): import the per-user Trino database and reuse the sign…