fix(caddyfile): infinite loop on unclosed braces (#7571)

Update coredns/caddy to a version where Dispenser.NextBlock()
checks Next() and stops at EOF. This ensures forward progress
and prevents an infinite loop when a block is missing a closing '}'
under certain conditions.

Added a regression test.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
Ville Vesilehto
2025-09-30 19:36:13 +03:00
committed by GitHub
parent 83ce0baeac
commit 9a57d9693c
3 changed files with 42 additions and 19 deletions

2
go.mod
View File

@@ -16,7 +16,7 @@ require (
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.9
github.com/aws/aws-sdk-go-v2/service/route53 v1.58.4
github.com/aws/aws-sdk-go-v2/service/secretsmanager v1.39.6
github.com/coredns/caddy v1.1.3
github.com/coredns/caddy v1.1.4-0.20250930002214-15135a999495
github.com/dnstap/golang-dnstap v0.4.0
github.com/expr-lang/expr v1.17.6
github.com/farsightsec/golang-framestream v0.3.0