diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fb80ba..608f0ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project are documented in this file. The format is b ### Fixed - **Live log subscribers can no longer crash the process**: a client disconnect closes its log channel. The sink now delivers a line while it still holds the subscriber lock, so that close cannot land in the middle of the send. +- **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-21 diff --git a/notify/http.go b/notify/http.go index 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 = nil clone.DialContext = (&net.Dialer{Timeout: 10 * time.Second, Control: blockInternalDial}).DialContext return clone }() diff --git a/notify/transport_test.go b/notify/transport_test.go new file mode 100644 index 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") + } +}