Back
Open Source

CoreDNS proxyproto: an unset allow list was an accept-all policy

CoreDNS #8822 fixed a security bug: proxyproto accepted PROXY headers from any source when allow was unset. Here is the failure, the fallback and the test.

JB
Josué Barros
••3 min read

The PROXY protocol carries the original client address in front of a TCP connection. CoreDNS uses that address for policy: acl, view and transfer can all make decisions from it. proxyproto is the plugin that reads the header.

This is one of the pull requests behind Six merged PRs in 72 hours. The series looks at the failure, the fix and the review evidence, one merge at a time.

The change: +99 / -23 across 4 files. PR 8822.

The bug

Without an allow list, the plugin accepted a PROXY header from every source. That is not a cosmetic default. Any client that could reach the listener could claim to be another address, and the plugins downstream would see the claim as the client address.

The existing configuration had an allow option, but no allow list meant accept-all rather than a safe default. That is the kind of default that looks convenient in a lab and becomes a spoofing path in production.

Why it mattered

A DNS server is often reachable from networks you do not fully control. A spoofed source address can bypass an IP-based ACL, change which view answers a query, or alter zone-transfer policy. The bug was not in the PROXY parser itself; it was in the policy applied when the operator did not write one.

The fix

The fix makes an unset allow list fall back to the configured default policy. The default remains ignore, so headers are ignored unless the operator explicitly sets default use. A bare allow with no CIDRs follows the same safe path. The PR also documents the explicit escape hatch.

The evidence

The change adds regression coverage for the empty and implicit cases and runs go test ./plugin/proxyproto. The important review detail is the compatibility statement: configurations that relied on implicit accept-all behavior must now set default use. A security fix that silently changes behavior is a future incident.

What I would repeat

A security default should be the safe behavior when the operator says nothing. If the old behavior was permissive, say so in the PR, the release notes and the documentation. Do not make the reviewer infer a breaking change from a condition.

Sources

If this was useful, connect with me on LinkedIn; I write about the bugs behind merged pull requests and the evidence that gets them accepted.

FAQ

What did CoreDNS #8822 change?
It stopped proxyproto from accepting PROXY headers from every source when allow was unset. The plugin now falls back to the default policy, which ignores headers unless the operator sets default use.
Was this a breaking change?
Yes, for configurations that relied on the implicit accept-all behavior. Those deployments must now set default use explicitly.
How was it tested?
With regression tests for the empty allow list and the safe fallback, plus go test ./plugin/proxyproto.
#coredns#proxy-protocol#security#dns#open-source

Join the Newsletter

Subscribe to get my latest content by email.

We won't send you spam. Unsubscribe at any time.