How to hide queries from superset responses #35711
Replies: 1 comment 6 replies
-
|
Superset does not offer a built-in configuration to hide or remove the SQL query from API responses for authenticated users. By default, the To apply this for all users, you would need to modify the backend code—specifically, update the If you need implementation pointers, look for the section in To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to hide queries from superset responses as it is causing security issues. Information Disclosure / Sensitive Data Exposure (DB tables and queries) this issues is reported by our security team
Is there any way to remove the query or hide it?
in query key actual db query is coming
currently I have removed it for security purposes from response of
api: https://{{url}}/api/v1/chart/data
{
"result": [
{
"cache_key": "fc027ae4bee27fcb671ab56a42183256",
"cached_dttm": null,
"cache_timeout": 86400,
"applied_template_filters": [],
"annotation_data": {},
"error": null,
"is_cached": null,
"query": "",
"status": "success",
"stacktrace": null,
"rowcount": 1,
"sql_rowcount": 1,
"from_dttm": null,
"to_dttm": null,
"label_map": {
"display_name_without_id": [
"display_name_without_id"
]
},
"colnames": [
"display_name_without_id"
],
"indexnames": [
0
],
"coltypes": [
1
],
"data": [
{
"display_name_without_id": "..."
}
],
"result_format": "json",
"applied_filters": [],
"rejected_filters": []
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions