stable

Clone or download

Read-only

Display warnings in the siteadministration when an outbound HTTP request is filtered

A warning is displayed on the siteadministration homepage and on the system check events (which make possible to receive notifications for it) when an outbound HTTP request is filtered. Also to make it easier to find the information the filtered URLs are also logged in Tuleap logfiles. To test, even if right now nothing is filtered, you can try to contact an endpoint returning you a 407 HTTp status code. On instances where site administrators cannot control this, the notifications can be disabled with `tuleap config-set http_outbound_requests_filtered_alert never`. Part of request #31580: Filter outbound HTTP requests Change-Id: Ic984bd1f481c0dfc72a26d8a846a63d9b09b92c1

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +11 −0 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +7 −0 Go to diff View file
M src/common/Config/GetConfigKeys.php +4 −2 Go to diff View file
A src/common/Http/Client/FilteredOutboundHTTPResponseAlerter.php +71 −0 Go to diff View file
A src/common/Http/Client/FilteredOutboundHTTPResponseAlerterDAO.php +61 −0 Go to diff View file
A src/common/Http/Client/OutboundHTTPRequestProxy.php +54 −0 Go to diff View file
M src/common/Http/Client/OutboundHTTPRequestSettings.php +2 −0 Go to diff View file
M src/common/Http/HttpClientFactory.php +5 −6 Go to diff View file
M src/common/admin/SiteAdminWarnings.php +14 −2 Go to diff View file
M src/common/system_event/include/SystemEvent_SYSTEM_CHECK.class.php +13 −0 Go to diff View file
M src/db/mysql/database_structure.sql +5 −0 Go to diff View file
A src/db/mysql/updates/2023/202304211630_create_filter_outbound_request_table.php +40 −0 Go to diff View file
M src/www/admin/index.php +2 −0 Go to diff View file
A tests/unit/common/Http/Client/FilteredOutboundHTTPResponseAlerterTest.php +82 −0 Go to diff View file
A tests/unit/common/Http/Client/OutboundHTTPRequestProxyTest.php +39 −0 Go to diff View file