You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 03:03:11 UTC
Re: [D] Is it possible to remove the field "query" in the result json ? [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Is it possible to remove the field "query" in the result json ?
<!-- Greeting -->
Hi @khashashin! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
Superset currently removes the `query` field from the `/chart/data` API response for guest users, but this logic does not apply to other endpoints like the dataset API. In Superset 5.x, the dataset API still exposes the `query` (or `sql`) field to guest token users, and there is no global configuration to hide it automatically. To prevent exposing sensitive information in embedded dashboards, you would need to implement custom backend logic to filter out sensitive fields for guest users in the dataset API, similar to what was done for `/chart/data` in [PR #30858](https://github.com/apache/superset/pull/30858).
Best practices for securing embedded dashboards include restricting guest role permissions, applying Row Level Security (RLS) rules, and validating guest token parameters, but these do not guarantee removal of sensitive fields from all API responses. If you need to fully prevent exposure, endpoint-specific code changes are required in Superset as of 5.x.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=4deff1d2-321c-4a23-a2cc-2d62d2b6e7c6) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/32765#discussioncomment-14687642
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org