Files
coredns/plugin
Ville Vesilehto 6676e6185d fix(sign): reject invalid UTF‑8 dbfile token (#7589)
The coredns/caddy lexer replaces invalid UTF‑8 bytes in tokens with
U+FFFD. When that lossy-decoded value is used as `dbfile` in the sign
plugin, the source zone file path never exists. On startup/refresh,
the `resign()` function sees the signed file missing and triggers
signing. Consequently `Sign()` then fails opening the bogus path,
the signed file is never created, and the cycle repeats across all
expanded origins (e.g., reverse CIDRs), causing unbounded churn/OOM.

Validate `dbfile` in setup and error if it contains U+FFFD. Add a
regression test.

Note: Unicode paths are supported; only U+FFFD (replacement-rune) is rejected.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-10-06 00:06:28 -07:00
..
2025-09-10 13:08:27 -07:00
2025-09-10 13:08:27 -07:00
2025-09-10 13:08:27 -07:00
2025-09-10 13:08:27 -07:00
2025-09-10 13:08:27 -07:00
2025-09-12 14:43:56 -07:00
2025-09-01 18:05:15 -07:00
2025-09-21 08:17:35 -07:00
2020-11-05 15:02:07 +01:00
2025-09-10 13:08:27 -07:00
2024-11-13 09:40:25 -08:00
2025-09-21 08:17:35 -07:00
2025-09-21 08:17:35 -07:00
2024-03-07 14:24:38 -05:00
2019-08-24 18:14:25 +00:00
2018-07-19 16:23:06 +01:00
2020-09-24 18:14:41 +02:00