Skip to content

Commit 287176b

Browse files
myleshortonAdam Fiskclaude
authored
Bump radiance to ca14a8c — fix x-lantern-client-country header leak (#8727)
Picks up radiance #456: revert config/fetcher.go's x-lantern-client-country read source from settings.GetString(settings.CountryCodeKey) back to env.GetString(env.Country). PR #370's LocalBackend refactor inadvertently widened the header from a dev-only env knob to an auto-populated setting, causing every production client to send the header on every /config-new after their first response — which short-circuits server-side MaxMind ASN lookup and breaks per-ASN bandit learning. SigNoz showed ~21.6% of /config-new responses had bandit.asn=0 in the last 24h (~82% caused by this header), CN at ~100% impact, rate rising 6x week-over-week. Refs engineering #3398. Co-authored-by: Adam Fisk <afisk@mini.local> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bcc8973 commit 287176b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ replace github.com/quic-go/qpack => github.com/quic-go/qpack v0.5.1
2525
require (
2626
github.com/alecthomas/assert/v2 v2.3.0
2727
github.com/getlantern/lantern-server-provisioner v0.0.0-20251031121934-8ea031fccfa9
28-
github.com/getlantern/radiance v0.0.0-20260501225237-861cb6dc5656
28+
github.com/getlantern/radiance v0.0.0-20260504173044-ca14a8ca3299
2929
github.com/sagernet/sing-box v1.12.22
3030
golang.org/x/mobile v0.0.0-20250711185624-d5bb5ecc55c0
3131
golang.org/x/sys v0.41.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ github.com/getlantern/pluriconfig v0.0.0-20251126214241-8cc8bc561535 h1:rtDmW8YL
261261
github.com/getlantern/pluriconfig v0.0.0-20251126214241-8cc8bc561535/go.mod h1:WKJEdjMOD4IuTRYwjQHjT4bmqDl5J82RShMLxPAvi0Q=
262262
github.com/getlantern/publicip v0.0.0-20260328175246-2c460fe80c6b h1:gMYJzEhLrmIqQ+JnjiYNm+UyUDalK3WUmVyecFwmV5g=
263263
github.com/getlantern/publicip v0.0.0-20260328175246-2c460fe80c6b/go.mod h1:NpfXdK4ldEKkjQ4P1R+DBF4ua5VFOlxmgHROTnYrApg=
264-
github.com/getlantern/radiance v0.0.0-20260501225237-861cb6dc5656 h1:vMfyNBYGnpi+3nFDVtzmsCQ7YTqzkzYw8Sk7cQgVxY0=
265-
github.com/getlantern/radiance v0.0.0-20260501225237-861cb6dc5656/go.mod h1:7n9EA++kf14Qon02cjpkxM96H497HUfzm7KQQN5H8gA=
264+
github.com/getlantern/radiance v0.0.0-20260504173044-ca14a8ca3299 h1:LNfQHFdj2hyJpG8ULAQXC2c9U3Htf33YLn5gU1/NmsM=
265+
github.com/getlantern/radiance v0.0.0-20260504173044-ca14a8ca3299/go.mod h1:7n9EA++kf14Qon02cjpkxM96H497HUfzm7KQQN5H8gA=
266266
github.com/getlantern/samizdat v0.0.3-0.20260327203406-ef7323341974 h1:k+/qNo5YNO+8M8LVUp6G5Evm1OQdEs3Z4ye8top4AhI=
267267
github.com/getlantern/samizdat v0.0.3-0.20260327203406-ef7323341974/go.mod h1:uEeykQSW2/6rTjfPlj3MTTo59poSHXfAHTGgzYDkbr0=
268268
github.com/getlantern/semconv v0.0.0-20260327040646-21845dda05cb h1:c5YM7b3a4r2J8Eh89KkI6M/iTFe6Bi+b8AJlfkKdFq4=

0 commit comments

Comments
 (0)