GitHub user dosubot[bot] added a comment to the discussion: Direct dashboards without requiring a username and password from the superset.
<!-- Greeting --> Hi @dataconsulhms! I'm [Dosu](https://go.dosu.dev/dosubot) and Iām helping the superset team. <!-- Answer --> Superset requires its own authentication by default, so passing REMOTE_USER from nginx won't bypass the login screen. To allow direct dashboard access without Superset credentials, you need to make the dashboard public. Set these in your `superset_config.py`: ```python FEATURE_FLAGS = { "DASHBOARD_RBAC": True, } PUBLIC_ROLE_LIKE = "Gamma" ``` Then, assign the "Public" role to your dashboard. This gives anonymous users (not logged in to Superset) permission to view dashboards, similar to the Gamma role. You may also need to grant dataset access to the Public role for the dashboard to load data. If you want to embed the dashboard or link to it from another site, adjust the content security policy (CSP) in `superset_config.py` using `TALISMAN_CONFIG` to allow your domain as a frame ancestor: ```python TALISMAN_CONFIG = { "content_security_policy": { "frame-ancestors": ["*.your-domain.com"], # ... other CSP settings ... }, } ``` Once configured, anyone with the dashboard link can access it without logging in to Superset. Be aware that this exposes your dashboard to anyone with the link, so only use this for non-sensitive data. For more details, see the [official documentation and discussion](https://github.com/apache/superset/discussions/34044) and [embedding guide](https://github.com/apache/superset/pull/30032). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0e69fb27-c01a-488b-8dbe-aab52b94cf01?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0e69fb27-c01a-488b-8dbe-aab52b94cf01?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0e69fb27-c01a-488b-8dbe-aab52b94cf01?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0e69fb27-c01a-488b-8dbe-aab52b94cf01?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0e69fb27-c01a-488b-8dbe-aab52b94cf01?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/0e69fb27-c01a-488b-8dbe-aab52b94cf01?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0e69fb27-c01a-488b-8dbe-aab52b94cf01?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/36009) GitHub link: https://github.com/apache/superset/discussions/36009#discussioncomment-14885065 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
