GitHub user dosubot[bot] added a comment to the discussion: How to hide queries from superset responses
<!-- Answer --> There isn't a supported or practical way to hide or redact SQL queries from the request body in Superset. The backend requires the query information in the request body to function—removing or redacting it before processing would break chart rendering, SQL Lab, and other core features. Middleware or config options for intercepting and modifying request bodies are not available, and attempting to do so would likely cause errors or failed requests ([example](https://github.com/apache/superset/blob/master/tests/integration_tests/charts/data/api_tests.py)). If you need to prevent sensitive queries from being sent, you'll need to address this at the client/UI level or restrict API access via authentication and permissions. Let me know if you want to discuss specific endpoints or security hardening strategies. <!-- 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/a77483c0-626b-4f16-af34-943e426c21d9?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/a77483c0-626b-4f16-af34-943e426c21d9?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/a77483c0-626b-4f16-af34-943e426c21d9?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/a77483c0-626b-4f16-af34-943e426c21d9?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a77483c0-626b-4f16-af34-943e426c21d9?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/a77483c0-626b-4f16-af34-943e426c21d9?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a77483c0-626b-4f16-af34-943e426c21d9?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/35711) GitHub link: https://github.com/apache/superset/discussions/35711#discussioncomment-14746688 ---- 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]
