Hi all, I'm working on a WIP proof-of-concept for Mixed Timeseries charts that optionally run Query B against a second dataset (including across database connections), with each query aggregated in its own database and no cross-DB join:
#46221 <https://github.com/apache/superset/pull/46221> The current PR is frontend/control-panel only and stays in Draft. Before we build the dual chart-data request path, Evan flagged a security issue that I want to get lazy consensus on. The issue Today a chart has one saved datasource (slices.datasource_id / datasource_type). Dashboard RBAC and embedded guest tokens can grant chart-data access when the request datasource matches that saved source ( _datasource_matches in superset/security/manager.py), so viewers often do not need direct Dataset A access. If Query B is sent as its own request against Dataset B, that second request is outside the existing shortcut. Viewers/guests without direct Dataset B access would get Query B blocked, even though they can see the chart on the dashboard. Possible directions (not proposing one yet) 1. Explore-only — dual-dataset works for users with access to both datasets; dashboards do not use a secondary Dataset B (or Query B is disabled there). Security model unchanged. 2. Require direct Dataset B access — Query B only succeeds if the principal already has Dataset B permission. Security model unchanged; weaker for typical dashboard/guest viewers. 3. Declare Dataset B on the chart and extend the grant — persist a trusted secondary datasource on the chart (not only in forgeable form_data), and teach the dashboard/guest shortcut to allow A or that declared B. Scoped security/metadata change. Ask I'd like lazy consensus on: 1. Does this need a SIP before any request-planner / security work lands? 2. If not, is one of the directions above preferred (or another option)? I'll hold the dual-request follow-up until this discussion settles. Happy to file a SIP if that's the preferred next step. Thanks a lot, Alex
