rusackas commented on code in PR #45766:
URL: https://github.com/apache/superset/pull/45766#discussion_r4395535793


##########
superset/reports/notifications/webhook.py:
##########
@@ -291,7 +202,11 @@ def send(self) -> None:
         payload = self._get_req_payload()
         files = self._get_files()
         timeout = current_app.config["ALERT_REPORTS_WEBHOOK_TIMEOUT"]
-        requester = _get_requester()
+        requester = get_ssrf_safe_requester(

Review Comment:
   Added an UPDATING.md note covering the trust_env=False change (proxies, CA 
bundles, .netrc) and the allow-internal flags as the opt-out.



##########
tests/unit_tests/db_engine_specs/test_impala.py:
##########
@@ -62,8 +62,8 @@ def test_get_cancel_query_id() -> None:
 
 
 @patch("superset.db_engine_specs.impala.is_safe_host", return_value=True)
-@patch("requests.post")
-def test_cancel_query(post_mock: Mock, _safe_host: Mock) -> None:  # noqa: 
PT019
+@patch("superset.db_engine_specs.impala.get_ssrf_safe_requester")

Review Comment:
   Good catch. test_cancel_query now asserts the requester is built with 
allow_unsafe_hosts=False.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to