Skip to content

Commit

Permalink
fix: add more disallowed pg functions (#29454)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgaspar authored and eschutho committed Jul 24, 2024
1 parent e86887e commit e9ad6cd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,16 @@ def CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC( # pylint: disable=invalid-name
# unsafe SQL functions in SQL Lab and Charts. The keys of the dictionary are the engine
# names, and the values are sets of disallowed functions.
DISALLOWED_SQL_FUNCTIONS: dict[str, set[str]] = {
"postgresql": {"version", "query_to_xml", "inet_server_addr", "inet_client_addr"},
"postgresql": {
"database_to_xml",
"inet_client_addr",
"inet_server_addr",
"query_to_xml",
"query_to_xml_and_xmlschema",
"table_to_xml",
"table_to_xml_and_xmlschema",
"version",
},
"clickhouse": {"url"},
"mysql": {"version"},
}
Expand Down

0 comments on commit e9ad6cd

Please sign in to comment.