7 Commits

Author SHA1 Message Date
Bryan Frimin
428ccae187 Style
Signed-off-by: Bryan Frimin <bryan@probo.com>
2026-07-27 09:29:40 +02:00
Bryan Frimin
427365b1f2 Allow DNS chain
Signed-off-by: Bryan Frimin <bryan@probo.com>
2026-07-27 09:25:30 +02:00
Cursor Agent
b8c3fb086e Separate deadline append for wsl cuddling
require.True cannot sit directly above the deadlines append
under wsl_v5.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
2026-07-24 23:08:38 +02:00
Cursor Agent
f844933b7d Fix wsl blank lines in DNS check paths
Separate cancel calls, error checks, and declarations so
golangci wsl_v5 accepts the cuddling rules.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
2026-07-24 23:08:38 +02:00
Cursor Agent
fff8319e07 Use SplitSeq for CAA issuer domain labels
go fix on Go 1.26 rewrites strings.Split range loops to
SplitSeq; apply that so lint-go passes.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
2026-07-24 23:08:37 +02:00
Cursor Agent
3948f47354 Apply CAA exchange timeout per label
A single dnsExchangeTimeout around CheckCAA let slow empty
answers at child names consume the budget before parent
policy was queried. Give each label its own exchange timeout
inside the climb instead.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
2026-07-24 23:08:37 +02:00
Cursor Agent
64ef051d18 Harden DNS CAA and TXT verification
Extract shared DNS checks into dnsclient and fail closed on
truncated or non-success CAA responses. Climb past eTLD+1,
validate RFC 8659 issue-value syntax, and map NXDOMAIN TXT
lookups to the pending-verification path.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
2026-07-24 23:08:36 +02:00