ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)
Go aiai-agentsautonomous-agentsbug-bountydockergolanglinuxllmmcpnextjspenetration-testingpentestpostgresqlreareactred-teamsecuritysecurity-automationsqlitetypescript
fix(notify): dial notification targets directly
Coff0xcc8b771881efa
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5af6fb6..fa86be7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,6 +6,7 @@ All notable changes to this project are documented in this file. The format is b### Fixed+- **Notification delivery ignores HTTP_PROXY**: the dial guard checks the address it connects to. An environment proxy made that address the proxy, so a link-local target could still be reached. Notification HTTP now connects directly.- **Docker Compose database passwords with URL-special characters**: `docker-compose.yml` no longer pastes `POSTGRES_PASSWORD` into `ARTEX_PG_DSN`. The server builds the URL from `ARTEX_PG_HOST`, `ARTEX_PG_PORT`, `ARTEX_PG_USER`, `ARTEX_PG_PASSWORD`, `ARTEX_PG_DBNAME` and `ARTEX_PG_SSLMODE`, percent-encoding the user and password, so `/`, `?`, `%`, `@`, `:` and spaces connect. An explicit `ARTEX_PG_DSN` still wins and is not rewritten. `ARTEX_PG_PASSWORD` is removed from the environment with the other startup secrets (#450).## [0.7.0] - 2026-11-21diff --git a/notify/http.go b/notify/http.goindex 386ac93..8188af6 100644--- a/notify/http.go+++ b/notify/http.go@@ -104,6 +104,10 @@ var notifyTransport = func() *http.Transport {return &http.Transport{}}clone := t.Clone()+ // Clone keeps ProxyFromEnvironment. The dial would then be to the proxy, so+ // blockInternalDial would see the proxy address and a link-local target+ // could still be reached through it. Notifications go direct.+ clone.Proxy = nilclone.DialContext = (&net.Dialer{Timeout: 10 * time.Second, Control: blockInternalDial}).DialContextreturn clone}()diff --git a/notify/transport_test.go b/notify/transport_test.gonew file mode 100644index 0000000..e85473b--- /dev/null+++ b/notify/transport_test.go@@ -0,0 +1,9 @@+package notify++import "testing"++func TestNotifyTransportIgnoresEnvironmentProxy(t *testing.T) {+ if notifyTransport.Proxy != nil {+ t.Fatal("notification transport must dial the target, not an environment proxy")+ }+}