GitHub user asishPatnaik2000 created a discussion: How to hide queries from 
superset responses

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": []
        }
    ]
}

GitHub link: https://github.com/apache/superset/discussions/35711

----
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]

Reply via email to