]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
2 months agofix: usr: Fix a 'deny-answer-aliases' configuration bypass issue
Arаm Sаrgsyаn [Mon, 15 Jun 2026 11:35:12 +0000 (11:35 +0000)] 
fix: usr: Fix a 'deny-answer-aliases' configuration bypass issue

It was possible to use a maliciously crafted authoritative
zone to make :iscman:`named` resolver synthesize a ``DNAME``
"alias" that should have been rejected by the configured
:any:`deny-answer-aliases` option. This has been fixed.

Closes #5930

Merge branch '5930-deny-answer-aliases-and-cached-dname-buf-fix' into 'main'

See merge request isc-projects/bind9!12044

2 months agoFix a 'deny-answer-aliases' bug when using a cached DNAME
Aram Sargsyan [Mon, 18 May 2026 09:17:51 +0000 (09:17 +0000)] 
Fix a 'deny-answer-aliases' bug when using a cached DNAME

When using a cached DNAME to resolve a name, make sure to consult
the denied answers lists, otherwise it is possible to consutruct
a restricted alias by caching a DNAME that is a parent of the
denied alias. See the comments in the tests case from the previous
commit an example.

2 months agoAdd a new 'deny-answer-aliases' check in 'resolver' system test
Aram Sargsyan [Mon, 18 May 2026 09:14:27 +0000 (09:14 +0000)] 
Add a new 'deny-answer-aliases' check in 'resolver' system test

This new check exercises an attack against guarantees given by the
'deny-answer-aliases' configuration option by caching a DNAME
that is a parent of the restricted alias, and then "constructing"
the restricted alias from the cache.

2 months agofix: nil: Remove isc_mem_strndup()
Ondřej Surý [Fri, 12 Jun 2026 15:40:20 +0000 (17:40 +0200)] 
fix: nil: Remove isc_mem_strndup()

The isc_mem_strndup() function had a single caller, the HTTP/2
request-path handling, which now uses isc_mem_allocate() and strlcpy()
directly.  Remove the function from the libisc API.

Closes #6087

Merge branch '6087-remove-isc_mem_strndup' into 'main'

See merge request isc-projects/bind9!12240

2 months agoRemove isc_mem_strndup()
Ondřej Surý [Fri, 12 Jun 2026 14:17:46 +0000 (16:17 +0200)] 
Remove isc_mem_strndup()

The function had a single caller, the HTTP/2 request-path handling in
the network manager, and its semantics (strlen() of the source clamped
to the requested size) amounted to an obscured bounded string copy.
Replace the only use with a plain allocation and strlcpy(), and drop the
function.

2 months agofix: usr: Fix a zone transfer over TLS (XoT) issue when using the opportunistic TLS...
Arаm Sаrgsyаn [Fri, 12 Jun 2026 15:36:57 +0000 (15:36 +0000)] 
fix: usr: Fix a zone transfer over TLS (XoT) issue when using the opportunistic TLS mode

The :iscman:`named` process, running as secondary DNS server,
configured to transfer a zone from a primary server using an
encrypted XoT transport in opportunistic TLS mode (i.e. without
peer certificate/hostname validation) could terminate unexpectedly
when the TLS ALPN negotiation with primary server was unsuccessful.
This has been fixed.

Closes #5957

Merge branch '5957-xot-xfrin_connect_done-bug-fix' into 'main'

See merge request isc-projects/bind9!12081

2 months agoFix a bug in xfrin.c:xfrin_connect_done()
Aram Sargsyan [Fri, 22 May 2026 11:31:37 +0000 (11:31 +0000)] 
Fix a bug in xfrin.c:xfrin_connect_done()

When the connect callback's result is ISC_R_SUCCESS and the callback
changes the result because of some condition, the 'xfr' should not
be detached, because it now belongs to the receive callback.

Detach the reference only if the callback's result is non-success.

2 months agoAdd a check for the "doth" system test
Aram Sargsyan [Fri, 22 May 2026 11:27:54 +0000 (11:27 +0000)] 
Add a check for the "doth" system test

Configure a zone transfer using XoT (with opportunistic TLS) from
a non-DoT port, which does not provide ALPN "dot" (in this case
it will try to connect to a DoH port). This is expected to fail,
but the client should handle the error gracefully and not to crash.

2 months agofix: dev: Fix delegdb dump buffer overflow
Colin Vidal [Fri, 12 Jun 2026 14:50:23 +0000 (16:50 +0200)] 
fix: dev: Fix delegdb dump buffer overflow

A buffer used to dump a DNS name in the delegdb dump flow was using the
wrong size: it was using `DNS_NAME_MAXWIRE` which is the actual max
length of a DNS name on the wire instead of using `DNS_NAME_FORMATSIZE`
which is the maximum length of a textual representation of a DNS name
(which can be way longer than `DNS_NAME_MAXWIRE` if using the master
file escape sequence format) plus 1 (end of string byte). This could
lead to a buffer overflow. This is now fixed.

Closes #6132

Merge branch '6132-delegdb-dump-overflow' into 'main'

See merge request isc-projects/bind9!12195

2 months agoFix delegdb dump buffer overflow
Colin Vidal [Fri, 5 Jun 2026 09:58:02 +0000 (11:58 +0200)] 
Fix delegdb dump buffer overflow

A buffer used to dump a DNS name in the delegdb dump flow was using the
wrong size: it was using `DNS_NAME_MAXWIRE` which is the actual max
length of a DNS name on the wire instead of using `DNS_NAME_FORMATSIZE`
which is the maximum length of a textual representation of a DNS name
(which can be way longer than `DNS_NAME_MAXWIRE` if using the master
file escape sequence format) plus 1 (end of string byte). This could
lead to a buffer overflow. This is now fixed.

2 months agoAdd test for delegdb dump with very long name
Colin Vidal [Fri, 5 Jun 2026 09:55:07 +0000 (11:55 +0200)] 
Add test for delegdb dump with very long name

Add a delegdb test which dump a database which contains a very long name
(using DNS master file format with escape sequence as defined per RFC
1035). This ensure that the delegdb uses large enough internal buffers
to load the names in DB and generate the dump. If this is not the case,
the test crashes on a build with address sanatizer enabled.

2 months agonew: test: Add a system test cookbook
Nicki Křížek [Fri, 12 Jun 2026 12:37:21 +0000 (14:37 +0200)] 
new: test: Add a system test cookbook

The README documents what the framework is; the cookbook documents how
to get common tasks done with it: iterating on a single test, adding a
new test directory, writing a regression reproducer, mocking a
misbehaving server with isctest.asyncserver, signing zones in
bootstrap(), and driving named via the NamedInstance fixtures. All
recipes are distilled from existing tests (cyclic_glue, dnssec_py,
dispatch) so they reflect the current canonical patterns.

Assisted-by: Claude:claude-fable-5
Merge branch 'nicki/systest-cookbook' into 'main'

See merge request isc-projects/bind9!12234

2 months agoAdd a system test cookbook
Nicki Křížek [Thu, 11 Jun 2026 09:11:18 +0000 (09:11 +0000)] 
Add a system test cookbook

The README documents what the framework is; the cookbook documents how
to get common tasks done with it: iterating on a single test, adding a
new test directory, writing a regression reproducer, mocking a
misbehaving server with isctest.asyncserver, signing zones in
bootstrap(), and driving named via the NamedInstance fixtures. All
recipes are distilled from existing tests (cyclic_glue, dnssec_py,
dispatch) so they reflect the current canonical patterns.

Assisted-by: Claude:claude-fable-5
2 months agonew: ci: Enforce AI commit-trailer rules in danger checks
Michal Nowak [Fri, 12 Jun 2026 10:02:45 +0000 (12:02 +0200)] 
new: ci: Enforce AI commit-trailer rules in danger checks

`CONTRIBUTING.md` documents several rules around how AI coding assistants should (and should not) be attributed in commit messages.  Teach `dangerfile.py` to enforce them so that violations are caught at MR time.

Merge branch 'mnowak/danger-ai-trailer-checks' into 'main'

See merge request isc-projects/bind9!11969

2 months agoValidate Assisted-by trailer format and tool list
Michal Nowak [Tue, 5 May 2026 18:50:10 +0000 (20:50 +0200)] 
Validate Assisted-by trailer format and tool list

CONTRIBUTING.md documents the Assisted-by trailer format as

Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]
and excludes basic development tools (git, compilers, meson,
ninja, editors, clang-format, black, ruff) from the optional
tool list.

Walk every `Assisted-by:` line in each commit message and emit a
`warn()` when:

  - the line does not match the documented `AGENT:VERSION` shape;
  - the optional tool list contains basic-tool names.

The basic-tool list extends the CONTRIBUTING.md examples with
other formatters, generic linters, and build/test runners
commonly invoked from `.gitlab-ci.yml`.  Specialized analysis
tools (coccinelle, clang-tidy, AFL, Coverity, cppcheck,
valgrind, sanitizers) are intentionally absent so they remain
allowed in the trailer.

Use `warn()` rather than `fail()` because the format is
human-written and overly strict matching would produce false
positives on edge cases.

Assisted-by: Claude:claude-opus-4-7
2 months agoReject Signed-off-by trailers from AI tools in danger check
Michal Nowak [Tue, 5 May 2026 17:43:35 +0000 (19:43 +0200)] 
Reject Signed-off-by trailers from AI tools in danger check

CONTRIBUTING.md states that AI agents must not add Signed-off-by
tags, since only humans can legally certify the Developer
Certificate of Origin.  Mirror the existing LLM Co-Authored-By
check against the Signed-off-by trailer line so danger fails on
commits that violate the rule.

The shared alternation of known LLM agent names is factored out
into LLM_AGENT_NAMES_RE so adding a new tool only requires one
edit.

Assisted-by: Claude:claude-opus-4-7
2 months agoDetect Co-Authored-By trailers and reject AI co-authors
Michal Nowak [Tue, 5 May 2026 17:05:49 +0000 (19:05 +0200)] 
Detect Co-Authored-By trailers and reject AI co-authors

CONTRIBUTING.md states that AI agents must not be listed as
co-authors and that contributors should use the `Assisted-by:`
trailer instead.  Teach `dangerfile.py` to fail merge requests
whose commit messages include a `Co-Authored-By:` trailer naming
a known LLM (Claude, Codex, Mistral, Copilot, Gemini, Cursor,
Devin, Aider, Sourcegraph, CodeWhisperer).

For any other `Co-Authored-By:` trailer, emit an info-level
`message()` that includes the full trailer line so reviewers can
confirm the named co-author is a human contributor and not an
unrecognised AI tool.

Assisted-by: Claude:claude-opus-4-7
2 months agofix: usr: Fix a bug in GeoIP2 string matching
Arаm Sаrgsyаn [Thu, 11 Jun 2026 14:38:23 +0000 (14:38 +0000)] 
fix: usr: Fix a bug in GeoIP2 string matching

When using GeoIP2 ACLs (see :any:`acl`), :iscman:`named` could
incorrectly match a name using a sub-string instead of the full
name match. This has been fixed.

Closes #6019

Merge branch '6019-geoip2-string-match-buf-fix' into 'main'

See merge request isc-projects/bind9!12092

2 months agoFix 'geoip' ACL matching bug
Aram Sargsyan [Mon, 25 May 2026 14:19:53 +0000 (14:19 +0000)] 
Fix 'geoip' ACL matching bug

The geoip2.c:match_string() function can incorrectly return 'true'
when matching strings of different lengths (i.e. it matches a
substring). Return 'false' when the lengths of the matched strings
are different.

2 months agoAdd a new check for the 'geoip2' system test
Aram Sargsyan [Mon, 25 May 2026 14:17:26 +0000 (14:17 +0000)] 
Add a new check for the 'geoip2' system test

Check that an ACL can't be matched by a substring in the
GeoIP database, instead of the full string comparision.

2 months agochg: nil: Update the system test README for the pytest-native workflow
Nicki Křížek [Thu, 11 Jun 2026 13:22:49 +0000 (15:22 +0200)] 
chg: nil: Update the system test README for the pytest-native workflow

The README predated the meson migration and most of the pytest runner
features. Document building the test dependencies with meson and drop
the make-based instructions, the Makefile.am registration step, and the
stale -T flag list. Describe the jinja2 templating, bootstrap(), the
conftest fixtures, the pytest marks, and recommend node IDs and
parametrization over -k matching. Fix the directory naming rule, which
switched from hyphens to underscores.

Also declare pytest and pytest-xdist as required dependencies: the
runner's pytest.ini uses --dist=loadscope unconditionally, so pytest
without pytest-xdist cannot even start.

Related #3810

Assisted-by: Claude:claude-fable-5
Merge branch 'nicki/systest-readme-refresh' into 'main'

See merge request isc-projects/bind9!12232

2 months agoUpdate the system test README for the pytest-native workflow
Nicki Křížek [Thu, 11 Jun 2026 09:07:08 +0000 (09:07 +0000)] 
Update the system test README for the pytest-native workflow

The README predated the meson migration and most of the pytest runner
features. Document building the test dependencies with meson and drop
the make-based instructions, the Makefile.am registration step, and the
stale -T flag list. Describe the jinja2 templating, bootstrap(), the
conftest fixtures, the pytest marks, and recommend node IDs and
parametrization over -k matching. Fix the directory naming rule, which
switched from hyphens to underscores.

Also declare pytest and pytest-xdist as required dependencies: the
runner's pytest.ini uses --dist=loadscope unconditionally, so pytest
without pytest-xdist cannot even start.

Related #3810

Assisted-by: Claude:claude-fable-5
2 months agofix: usr: Fix DNS-over-HTTPS (DoH) quota configuration issue
Arаm Sаrgsyаn [Thu, 11 Jun 2026 11:33:05 +0000 (11:33 +0000)] 
fix: usr: Fix DNS-over-HTTPS (DoH) quota configuration issue

The :any:`http-listener-clients` and :any:`http-streams-per-connection`
configuration options could be truncated to smaller values (or to ``0``,
which means unlimited) when very big configuration values were used, which
exceeded ``65535``. As a note - it is very unlikely that such big values
are used in production, and the default values for the affected options
are ``300`` and ``100``, correspondingly. This has been fixed.

Closes #6021

Merge branch '6021-doh-quota-type-truncation-fix' into 'main'

See merge request isc-projects/bind9!12085

2 months agoFix DoH quota global variables type
Aram Sargsyan [Mon, 25 May 2026 12:11:30 +0000 (12:11 +0000)] 
Fix DoH quota global variables type

The 'named_g_http_listener_clients' and 'named_g_http_streams_per_conn'
global variables are defined as 'in_port_t', which is usually 16 bits,
but both the readers and the writers of those variables use 'uint32_t'
as the target/source, which can result in truncation.

Use correct types.

2 months agofix: usr: Ignore updates removing DNSKEY RRset with class ANY
Matthijs Mekking [Thu, 11 Jun 2026 11:27:41 +0000 (11:27 +0000)] 
fix: usr: Ignore updates removing DNSKEY RRset with class ANY

When a Dynamic Update is received that removes the ``DNSKEY`` (or ``CDNSKEY``,
or ``CDS``) RRset, remove all records except the ones that are in use
for signing for the zone.

Closes #6045

Merge branch '6045-dns-update-delete-in-use-dnskey-any' into 'main'

See merge request isc-projects/bind9!12166

2 months agoISC_ATTR_UNUSED in favor of UNUSED()
Matthijs Mekking [Thu, 4 Jun 2026 06:54:23 +0000 (08:54 +0200)] 
ISC_ATTR_UNUSED in favor of UNUSED()

2 months agoKeep our key on update removing DNSKEY RRset
Matthijs Mekking [Tue, 2 Jun 2026 09:43:26 +0000 (11:43 +0200)] 
Keep our key on update removing DNSKEY RRset

When a Dynamic Update is received that removes the DNSKEY (or CDNSKEY,
or CDS) RRset, remove all records except the ones that are in use
for signing for the zone (with dnssec-policy).

2 months agoTest removing DNSKEY records with class ANY
Matthijs Mekking [Tue, 2 Jun 2026 09:41:13 +0000 (11:41 +0200)] 
Test removing DNSKEY records with class ANY

The update should ignore DNSKEY, CDNSKEY and CDS records
for keys that are used for signing.

2 months agochg: doc: CVE template suggestions
Petr Špaček [Thu, 11 Jun 2026 10:51:39 +0000 (10:51 +0000)] 
chg: doc: CVE template suggestions

Suggested changes to the CVE checklist, submitted for your approval (or rejection).  Commits in order of decreasing priority:

81bd4025c0e4ac407d5a8c7e0c414e2ed20f543f: Update Zulip link for new bind-incidents channel
65caa4912b25058cdeaef35094985424f2b2478f: Explicit sub-steps for assessing -S and EOL
1dc0d656edc1f6b5586da3ec1d416e5223c5504a: Clearer separation between CVE and CVSS+CWE steps
5ebb9ac33fda59adec6b9019bd211e96edebca49: EVN texts: Clarify what is done, when, and using which tool
29a79c21cbfe3477cd706861eeb12b53c98e2091: Use reference links for Earliest Notification and printing-press, to make the table less cumbersome to edit
fd1b6d98c3cef2f6d212a5988b3726d933c84d27: Add TOC and sections for better (?) navigation
803b1d2aff04cf88ab860b42e3463c57fbf17f6d: Remove a few words to make the table narrower
e68a1c84bd41a769ea8d96b7542cd7c062dd4af1: Clearer links to instructions, at top (bikeshed-y)
e75b65072fe6eb271667659eac79817da1dd6515: Typo fix to the above

Merge branch 'bscott-cve-quicklist-tweaks' into 'main'

See merge request isc-projects/bind9!12221

2 months agoClarify EVN steps
Ben Scott [Wed, 10 Jun 2026 20:09:24 +0000 (16:09 -0400)] 
Clarify EVN steps

Support has to prepare and send EVN/Advisory texts.  Clarify what is done,
when, and using which tool.

2 months agoFix typo
Ben Scott [Wed, 10 Jun 2026 19:58:35 +0000 (15:58 -0400)] 
Fix typo

Learn to spell, Ben.

2 months agoExplicit sub-steps for assessing -S and EOL
Ben Scott [Wed, 10 Jun 2026 19:56:00 +0000 (15:56 -0400)] 
Explicit sub-steps for assessing -S and EOL

For the step where we assess which product versions/branches are
vulnerable to the flaw, add explicit subordinate steps for assessing
Special Subscriber -S Preview edition, and end-of-life versions that
are still received paid fixes.

While we have GitLab labels to indicate affected versions, there is no
satisfactory mechanism in place to indicate that assessment of all
versions is complete, and thus anything not labeled as affected can be
considered immune.  Explicit checklist steps will allow others to see
when assessment is complete.

Per the following discussions:

https://zulip.isc.org/#narrow/channel/4-bind9/topic/Unaffected.20labels.20for.20vulnerability.20issues/near/25643

https://zulip.isc.org/#narrow/channel/4-bind9/topic/CVE.20checklist.20updates/near/26307

2 months agoCVE and CVSS+CWE as separate steps
Ben Scott [Wed, 10 Jun 2026 17:08:32 +0000 (13:08 -0400)] 
CVE and CVSS+CWE as separate steps

"Assigning CVE" and "Assigning CVSS+CWE" are really two different
steps.  CVE is bookeeping; we just request the ID and type it in.
CVSS and CWE require a judgement determination, and often involve
discussion.  At the same time, sometimes we forget to put the CVE ID
in right away.  Since we already have a separate step for CVE
assignment, let's put "update the issue with the CVE ID" in that step,
too.  Then the second step can be entirely about CVSS+CWE.  Same
number of steps, just clearer separation of what the steps are about.

2 months agoAdd TOC and section headings
Ben Scott [Tue, 9 Jun 2026 19:31:44 +0000 (15:31 -0400)] 
Add TOC and section headings

These can make navigation much easier,
when the original report is large.

2 months agoClearer links to instructions, at top
Ben Scott [Tue, 9 Jun 2026 19:30:10 +0000 (15:30 -0400)] 
Clearer links to instructions, at top

I think this gets lost as part of the table header.
Maybe that's just me.

2 months agoMake table narrower
Ben Scott [Tue, 9 Jun 2026 19:27:53 +0000 (15:27 -0400)] 
Make table narrower

Drop some unneccesary words to make it narrower.
Makes it a little easier to  work with, and
a little easier to read quickly.

2 months agoZulip URL to bind-incidents channel
Ben Scott [Tue, 9 Jun 2026 18:17:28 +0000 (14:17 -0400)] 
Zulip URL to bind-incidents channel

2 months agoUse reference links for e-n-d and p-p
Ben Scott [Tue, 9 Jun 2026 17:57:55 +0000 (13:57 -0400)] 
Use reference links for e-n-d and p-p

2 months agofix: test: Various system test stability fixes for CI
Michal Nowak [Wed, 10 Jun 2026 19:49:10 +0000 (21:49 +0200)] 
fix: test: Various system test stability fixes for CI

Doubling system-test parallelism and removing the `@pytest.mark.flaky` markers exposed a set of timing-sensitive failures across CI. This branch keeps only the fixes for failures that are test-robustness bugs. Other - frequent - failures often guarded by `@pytest.mark.flaky` have their separate MRs already.

Merge branch 'mnowak/system-test-stability-fixes' into 'main'

See merge request isc-projects/bind9!12171

2 months agoRetry the SOA serial check in the rpz test
Michal Nowak [Wed, 3 Jun 2026 16:39:56 +0000 (16:39 +0000)] 
Retry the SOA serial check in the rpz test

While a response-policy zone is being (re)loaded it can briefly answer
with no SOA (SERVFAIL/REFUSED), which `dig +short` renders as empty
output.  get_sn() aborted the whole tests.sh on the first such miss,
defeating the retry_quiet() loop in ck_soa() that is meant to wait for
the reload to settle.  Return failure instead so the check is retried.

Assisted-by: Claude:claude-opus-4-8
2 months agoKeep probing for the send timeout under load
Michal Nowak [Tue, 2 Jun 2026 15:46:29 +0000 (15:46 +0000)] 
Keep probing for the send timeout under load

One shot raced named; keep sending until it closes the connection.

Assisted-by: Claude:claude-opus-4-8
2 months agoGive the retransfer-force watchers a 60s timeout
Michal Nowak [Tue, 2 Jun 2026 15:46:29 +0000 (15:46 +0000)] 
Give the retransfer-force watchers a 60s timeout

The shutting-down and success transfers can exceed 30s on slow
instrumented builds.

Assisted-by: Claude:claude-opus-4-8
2 months agoCount distinct destinations in selfpointedglue dnstap checks
Michal Nowak [Tue, 2 Jun 2026 14:53:25 +0000 (14:53 +0000)] 
Count distinct destinations in selfpointedglue dnstap checks

Tolerates retransmissions, which would inflate a raw line count.

Assisted-by: Claude:claude-opus-4-8
2 months agoRe-fetch traffic counters until they converge
Michal Nowak [Tue, 2 Jun 2026 14:53:25 +0000 (14:53 +0000)] 
Re-fetch traffic counters until they converge

The counters update asynchronously, so a single snapshot can lag.

Assisted-by: Claude:claude-opus-4-8
2 months agoBump the next-key-event check timeout to 30s
Michal Nowak [Tue, 2 Jun 2026 14:53:25 +0000 (14:53 +0000)] 
Bump the next-key-event check timeout to 30s

5s was shorter than the inner watch_log timeout, so it got one try.

Assisted-by: Claude:claude-opus-4-8
2 months agoRetry the key-state check in test_ksr_fast
Michal Nowak [Tue, 2 Jun 2026 14:53:25 +0000 (14:53 +0000)] 
Retry the key-state check in test_ksr_fast

named updates the state file asynchronously; one read can race it.

Assisted-by: Claude:claude-opus-4-8
2 months agoRetry transient DNS timeouts in retry_with_timeout()
Michal Nowak [Tue, 2 Jun 2026 14:53:25 +0000 (14:53 +0000)] 
Retry transient DNS timeouts in retry_with_timeout()

A transient query timeout should retry, not fail the test.

Assisted-by: Claude:claude-opus-4-8
2 months agofix: test: Fix flaky per-domain limit check in fetchlimit test
Michal Nowak [Wed, 10 Jun 2026 18:04:27 +0000 (20:04 +0200)] 
fix: test: Fix flaky per-domain limit check in fetchlimit test

Merge branch 'mnowak/fix-fetchlimit-per-domain-flaky' into 'main'

See merge request isc-projects/bind9!12124

2 months agoDrop flaky marker from the fetchlimit system test
Michal Nowak [Thu, 28 May 2026 13:38:37 +0000 (13:38 +0000)] 
Drop flaky marker from the fetchlimit system test

With the per-domain limit and clients-per-query spill checks no longer
sensitive to fetch-counter timing, the test no longer needs the
flaky-retry workaround.

Assisted-by: Claude:claude-opus-4-7
2 months agoAccept a clients-per-query spill range in the fetchlimit test
Michal Nowak [Wed, 10 Jun 2026 17:22:50 +0000 (17:22 +0000)] 
Accept a clients-per-query spill range in the fetchlimit test

The clients-per-query spill steps required exactly 55 spills, but the
auto-tuning ramp-up lags under load and spills more.  Accept the 55..75
range; the ramp-up is already verified by the "clients-per-query
increased to 10" log wait.

Assisted-by: Claude:claude-opus-4-7
2 months agoMake the fetchlimit per-domain limit check robust under load
Michal Nowak [Wed, 10 Jun 2026 17:22:44 +0000 (17:22 +0000)] 
Make the fetchlimit per-domain limit check robust under load

The per-domain limit step required the active fetch count for
lamesub.example to read exactly 40 on a single sample.  It parsed the
cumulative "allowed" field (6) rather than the active count (field 3),
and even the active count can briefly dip below 40 between bursts.
Sample the active count with retry_quiet, flag only a count above 40,
and require the limit to be reached at least once.

Assisted-by: Claude:claude-opus-4-7
2 months agonew: test: Add active truncated DNSKEY test to dnssec_py
Nicki Křížek [Tue, 9 Jun 2026 12:23:23 +0000 (14:23 +0200)] 
new: test: Add active truncated DNSKEY test to dnssec_py

Forward-port active truncated DNSKEY test from a812bc52 which has only
been merged to the stable branches.

Assisted-by: Claude:claude-opus-4-8
Related !11957

Merge branch 'nicki/add-active-truncated-dnskey-test' into 'main'

See merge request isc-projects/bind9!12216

2 months agoAdd active truncated DNSKEY test to dnssec_py
Nicki Křížek [Tue, 9 Jun 2026 09:44:28 +0000 (09:44 +0000)] 
Add active truncated DNSKEY test to dnssec_py

Forward-port active truncated DNSKEY test from a812bc52 which has only
been merged to the stable branches.

Assisted-by: Claude:claude-opus-4-8
2 months agofix: test: Register orphaned diff and skr unit tests in meson build
Michal Nowak [Tue, 9 Jun 2026 11:22:56 +0000 (13:22 +0200)] 
fix: test: Register orphaned diff and skr unit tests in meson build

Both test files existed on disk but were never added to the meson test
list when the build system switched from autoconf.

skr_test.c also had a spurious #include <dns/tls.h> for a header that
never existed in this repo -- no symbols from it were used. Removing
the include is the only fix needed; the test itself is correct and
passes.

Assisted-by: Claude:claude-opus-4-7
Merge branch 'mnowak/fix-orphaned-unit-tests' into 'main'

See merge request isc-projects/bind9!12091

2 months agoAdd build-time check for unregistered unit test files
Michal Nowak [Sun, 24 May 2026 18:12:53 +0000 (18:12 +0000)] 
Add build-time check for unregistered unit test files

Fail at meson configure time if a *_test.c file exists in a test
directory but is not listed in the corresponding test array. This
prevents test files from being silently orphaned when added without
updating meson.build, as happened with diff_test.c and skr_test.c.

Assisted-by: Claude:claude-opus-4-7
2 months agoRegister orphaned diff and skr unit tests in meson build
Michal Nowak [Mon, 25 May 2026 08:17:02 +0000 (08:17 +0000)] 
Register orphaned diff and skr unit tests in meson build

Both test files existed on disk but were never added to the meson test
list when the build system switched from autoconf.

skr_test.c also had a spurious #include <dns/tls.h> for a header that
never existed in this repo -- no symbols from it were used. Removing
the include is the only fix needed; the test itself is correct and
passes.

Assisted-by: Claude:claude-opus-4-7
2 months agochg: test: Add NSEC3 answer correctness test to dnssec_py
Nicki Křížek [Tue, 9 Jun 2026 10:34:25 +0000 (12:34 +0200)] 
chg: test: Add NSEC3 answer correctness test to dnssec_py

Rewrite nsec3_answer/tests_nsec3.py as dnssec_py/tests_nsec3_answer.py
using the isctest.zone helpers for zone setup. ns1 (auth) and ns2
(resolver) were renumbered to ns2 and ns9 respectively to fit the
existing dnssec_py server infrastructure.

Assisted-by: Claude:claude-opus-4-8
Merge branch 'nicki/pytest-dnssec-py-nsec3-answer' into 'main'

See merge request isc-projects/bind9!12209

2 months agoAdd NSEC3 answer correctness test to dnssec_py
Nicki Křížek [Mon, 8 Jun 2026 15:26:02 +0000 (15:26 +0000)] 
Add NSEC3 answer correctness test to dnssec_py

Rewrite nsec3_answer/tests_nsec3.py as dnssec_py/tests_nsec3_answer.py
using the isctest.zone helpers for zone setup. ns1 (auth) and ns2
(resolver) were renumbered to ns2 and ns9 respectively to fit the
existing dnssec_py server infrastructure.

Assisted-by: Claude:claude-opus-4-8
2 months agochg: test: Add malformed ECDSA DNSKEY tests to dnssec_py
Nicki Křížek [Tue, 9 Jun 2026 09:16:12 +0000 (11:16 +0200)] 
chg: test: Add malformed ECDSA DNSKEY tests to dnssec_py

Merge branch 'nicki/pytest-dnssec-py-dnskey-malformed' into 'main'

See merge request isc-projects/bind9!12210

2 months agoAdd revoked truncated self-signed DNSKEY test to dnssec_py
Nicki Křížek [Mon, 8 Jun 2026 15:34:35 +0000 (15:34 +0000)] 
Add revoked truncated self-signed DNSKEY test to dnssec_py

Port test_truncated_dnskey from dnssec_malformed_dnskey into the shared
dnssec_py fixture harness, completing the migration and deleting the
remaining dnssec_malformed_dnskey files.

Assisted-by: Claude:claude-opus-4-8
2 months agoAdd malformed ECDSA DNSKEY tests to dnssec_py
Nicki Křížek [Mon, 8 Jun 2026 15:33:59 +0000 (15:33 +0000)] 
Add malformed ECDSA DNSKEY tests to dnssec_py

Port test_malformed_ecdsa and test_multiple_rrsigs from the standalone
dnssec_malformed_dnskey directory into the shared dnssec_py fixture
harness. The zone is renamed from example. to dnskey-malformed., the
resolver fixture changes from a dedicated ns3 to the shared ns9, and
trust anchors are wired in via bootstrap() rather than per-directory
config files.

Assisted-by: Claude:claude-opus-4-8
2 months agochg: test: Add mixed DS test to dnssec_py
Nicki Křížek [Tue, 9 Jun 2026 08:34:32 +0000 (10:34 +0200)] 
chg: test: Add mixed DS test to dnssec_py

Rewrite dnssec_unsupported_ds/tests_mixed_ds.py as
dnssec_py/tests_mixed_ds.py using the isctest.zone helpers for zone
setup.

The test verifies that a zone whose DS RRset contains only an
unsupported algorithm DS and a bogus DS record is treated as insecure
by a validating resolver, resulting in SERVFAIL for queries to that
zone. The DS set for child.mixed-ds. is deliberately corrupted after
signing to contain a DS record with an unsupported algorithm (12) and
a DS record with an invalid digest, exercising the mixed-DS insecurity
proof path.

Assisted-by: Claude:claude-opus-4-8
Merge branch 'nicki/pytest-dnssec-py-mixed-ds' into 'main'

See merge request isc-projects/bind9!12206

2 months agoAdd mixed DS test to dnssec_py
Nicki Křížek [Mon, 8 Jun 2026 15:19:22 +0000 (15:19 +0000)] 
Add mixed DS test to dnssec_py

Rewrite dnssec_unsupported_ds/tests_mixed_ds.py as
dnssec_py/tests_mixed_ds.py using the isctest.zone helpers for zone
setup.

The test verifies that a zone whose DS RRset contains only an
unsupported algorithm DS and a bogus DS record is treated as insecure
by a validating resolver, resulting in SERVFAIL for queries to that
zone. The DS set for child.mixed-ds. is deliberately corrupted after
signing to contain a DS record with an unsupported algorithm (12) and
a DS record with an invalid digest, exercising the mixed-DS insecurity
proof path.

Assisted-by: Claude:claude-opus-4-8
2 months agofix: nil: Ignore explict memory ordering in lib/isc/rwlock.c
Ondřej Surý [Mon, 8 Jun 2026 17:46:01 +0000 (19:46 +0200)] 
fix: nil: Ignore explict memory ordering in lib/isc/rwlock.c

Merge branch 'ondrej/update-checklibs.out-for-isc_rwlock' into 'main'

See merge request isc-projects/bind9!12211

2 months agoIgnore explict memory ordering in lib/isc/rwlock.c
Ondřej Surý [Mon, 8 Jun 2026 17:42:03 +0000 (19:42 +0200)] 
Ignore explict memory ordering in lib/isc/rwlock.c

2 months agofix: usr: Reject unsupported RSA DNSKEY shapes during DNSSEC validation
Ondřej Surý [Mon, 8 Jun 2026 16:01:03 +0000 (18:01 +0200)] 
fix: usr: Reject unsupported RSA DNSKEY shapes during DNSSEC validation

An authoritative server publishing an RSA DNSKEY with an unusually
large modulus or an exotic public exponent could make each DNSSEC
signature check on a validating recursive resolver noticeably more
expensive than for a normally sized key.  Such DNSKEYs are now
treated as invalid.

Closes #6008

Merge branch '6008-reject-oversized-rsa-dnskeys' into 'main'

See merge request isc-projects/bind9!12054

2 months agoEnforce strict RSA DNSKEY shape during DNSSEC validation
Ondřej Surý [Tue, 19 May 2026 15:52:22 +0000 (17:52 +0200)] 
Enforce strict RSA DNSKEY shape during DNSSEC validation

A resolver that validated DNSSEC accepted RSA DNSKEYs of any modulus
size up to OpenSSL's compile-time ceiling, and accepted any public
exponent the wire format could carry.  RSA verification cost grows
sharply with the modulus length, so an authoritative server could
publish an oversized DNSKEY to make each signature check on the
resolver many times more expensive than for a normally sized key.

The intended verify-time cap had no effect because the helper it called
returned the public-exponent bit length rather than the modulus bit
length, so the test was always satisfied.  Replace it with an honest
modulus-range check and a stricter exponent check that accepts only odd
exponents in the closed range [3, 2^32 + 1] (covering every Fermat
prime up to F5 and the odd intermediate values seen in deployed keys),
reject anything outside those bounds at every RSA key load path so an
invalid key never reaches the verifier, and keep the same checks at the
verifier as a backstop against future load paths.

2 months agofix: dev: Fix the memory ordering in the adaptive read-write lock
Ondřej Surý [Mon, 8 Jun 2026 15:55:37 +0000 (17:55 +0200)] 
fix: dev: Fix the memory ordering in the adaptive read-write lock

On hardware with a weak memory model, the internal read-write lock could
briefly admit a reader and a writer at the same time, risking sporadic
crashes or incorrect data. The reader/writer handshake now uses
sequentially consistent ordering so the two can no longer overlap.

Closes #6060

Merge branch '6060-rwlock-seq-cst-handshake' into 'main'

See merge request isc-projects/bind9!12162

2 months agoUse sequentially consistent ordering in the adaptive rwlock handshake
Ondřej Surý [Tue, 2 Jun 2026 04:32:20 +0000 (06:32 +0200)] 
Use sequentially consistent ordering in the adaptive rwlock handshake

The adaptive isc_rwlock (the modified C-RW-WP variant) synchronizes a
reader against a writer through a store-buffer handshake across two
independent atomic objects: the reader publishes its arrival in
readers_ingress and then reads writers_lock, while the writer publishes
its lock in writers_lock and then reads the reader indicator. With the
acquire/release ordering introduced by the 2021 simplification, neither
side is forced to observe the other's publish store before its own check
load, so on weak-memory targets a reader could see writers_lock unlocked
while the writer sees the indicator empty, and both would enter their
critical sections at once.

Restore the sequentially consistent ordering the original algorithm
specifies on the handshake atomics. The single total order over the
seq_cst operations is what forbids the overlap; targeting individual
fences is both more fragile and, on x86, more expensive. On x86 this
ordering is free (seq_cst loads remain plain loads and the RMWs remain
lock-prefixed); the added cost falls only on the weak-memory targets that
actually need it.

2 months agorem: usr: Restrict views to the Internet (IN) class
Ondřej Surý [Mon, 8 Jun 2026 15:50:38 +0000 (17:50 +0200)] 
rem: usr: Restrict views to the Internet (IN) class

Views could previously be declared in classes other than Internet (IN),
but that support was inconsistent — ``named-checkconf`` accepted configurations
that ``named`` then refused to load.  Views are now restricted to class IN, and
both tools reject any other class.  Configurations declaring a non-IN view
must drop the class to keep working.

Merge branch '5784-improve-class-handling' into 'main'

See merge request isc-projects/bind9!12163

2 months agoDisallow configuration of user-defined non-IN class views
Ondřej Surý [Wed, 4 Mar 2026 12:24:53 +0000 (13:24 +0100)] 
Disallow configuration of user-defined non-IN class views

Only class IN is allowed for user-defined views; the internally
generated `_bind` view stays in the CH class. Both `named` and the
shared checker in `lib/isccfg/check.c` now reject non-IN views, so a
config can no longer pass `named-checkconf` yet fail to start in
`named`.

Tests, configs, and catalog zones using CH or arbitrary classes
(e.g. `class10`) are removed accordingly.

2 months agoDrop support for the HS class
Ondřej Surý [Wed, 4 Mar 2026 09:46:58 +0000 (10:46 +0100)] 
Drop support for the HS class

HS (Hesiod) class is no longer supported and is treated same as
any other unknown class.

2 months agochg: dev: Use a single allocation per delegation database entry
Ondřej Surý [Mon, 8 Jun 2026 15:49:15 +0000 (17:49 +0200)] 
chg: dev: Use a single allocation per delegation database entry

The node and its zone-cut name are now stored in one variable-sized
allocation instead of two.

Merge branch 'ondrej/delegdb-fixed-zonecut' into 'main'

See merge request isc-projects/bind9!12187

2 months agoUse variable size struct for zonecut ndata to avoid allocation
Ondřej Surý [Thu, 4 Jun 2026 08:25:42 +0000 (10:25 +0200)] 
Use variable size struct for zonecut ndata to avoid allocation

Previously, the node_deleg_t would do double allocation, one for the
struct itself and one for the zonecut.  This has been changed to use
variable sized struct with the zonecut .ndata buffer attached to the end
of node_deleg_t structure.

2 months agoUpdate BIND version for release alessio/perflab-96-baseline v9.21.23
Nicki Křížek [Mon, 8 Jun 2026 13:42:12 +0000 (15:42 +0200)] 
Update BIND version for release

2 months agonew: doc: Prepare documentation for BIND 9.21.23
Nicki Křížek [Mon, 8 Jun 2026 13:40:14 +0000 (15:40 +0200)] 
new: doc: Prepare documentation for BIND 9.21.23

Merge branch 'nicki/prepare-documentation-for-bind-9.21.23' into 'v9.21.23-release'

See merge request isc-private/bind9!1052

2 months agofix: ci: Escape literal dots in branch-name match regexes
Michal Nowak [Mon, 8 Jun 2026 13:23:27 +0000 (15:23 +0200)] 
fix: ci: Escape literal dots in branch-name match regexes

The backports and merged-metadata rules used unescaped dots in their
branch-name regexes, causing them to over-match. Escape the dots so the
patterns match the intended version branch names exactly.

Assisted-by: Claude:claude-opus-4-8
Merge branch 'mnowak/ci-fix-regex-escaping' into 'main'

See merge request isc-projects/bind9!12172

2 months agoEscape literal dots in branch-name match regexes
Michal Nowak [Wed, 3 Jun 2026 11:56:17 +0000 (11:56 +0000)] 
Escape literal dots in branch-name match regexes

The backports and merged-metadata rules used unescaped dots in their
branch-name regexes, causing them to over-match. Escape the dots so the
patterns match the intended version branch names exactly.

Assisted-by: Claude:claude-opus-4-8
2 months agofix: dev: Preserve the request message across async SIG(0) processing
Michal Nowak [Mon, 8 Jun 2026 11:44:10 +0000 (13:44 +0200)] 
fix: dev: Preserve the request message across async SIG(0) processing

For SIG(0)-signed requests, view matching is offloaded and the request
is finished asynchronously from ns_client_request_continue(), which
passes client->inner.buffer to dns_dt_send().  That buffer aliases the
network manager's receive buffer, only valid during the read callback,
so it may already be freed and reused, producing garbage dnstap frames
(e.g. the "upforwd" sig0-over-DoT test fails with UQ=0).

Copy the request message when entering async mode and reference the
copy, freeing it in ns__client_reset_cb().

Assisted-by: Claude:claude-opus-4-8
Closes #6139

Merge branch '6139-dnstap-sig0-request-buffer-uaf' into 'main'

See merge request isc-projects/bind9!12189

2 months agoPreserve the request buffer across async SIG(0) processing
Michal Nowak [Thu, 4 Jun 2026 12:09:26 +0000 (12:09 +0000)] 
Preserve the request buffer across async SIG(0) processing

For SIG(0)-signed requests, view matching is offloaded and the request
is finished asynchronously from ns_client_request_continue(), which
passes client->inner.buffer to dns_dt_send().  That buffer aliases the
network manager's receive buffer, only valid during the read callback,
so it may already be freed and reused, producing garbage dnstap frames
(e.g. the "upforwd" sig0-over-DoT test fails with UQ=0).

When the request is offloaded (ns_client_setup_view() returns
DNS_R_WAIT) and dnstap is enabled, copy the request buffer and point
client->inner.buffer at the copy so it survives the asynchronous hop;
free it in ns__client_reset_cb().  When dnstap is disabled there is no
async consumer of the buffer, so detach it from the receive buffer
instead.

Assisted-by: Claude:claude-opus-4-8
2 months agofix: dev: Build the fuzzers without the libbindtest test library
Michal Nowak [Mon, 8 Jun 2026 10:09:24 +0000 (12:09 +0200)] 
fix: dev: Build the fuzzers without the libbindtest test library

Every fuzz target depended on libtest_dep, which forces building the
libbindtest shared library.  In a static build (as used by OSS-Fuzz)
that link fails: libbindtest's netmgr wrappers multiply-define symbols
that also live in the static libisc/libns archives, and the static
system libraries are not position independent.

Only fuzz_dns_qp actually uses the qp test helpers, so give it just
tests/libtest/qp.c via the new libtest_qp_dep and drop libtest_dep
from the fuzzers.

Assisted-by: Claude:claude-opus-4-8
Merge branch 'mnowak/fuzz-drop-libbindtest' into 'main'

See merge request isc-projects/bind9!12194

2 months agoBuild the fuzzers without the libbindtest test library
Michal Nowak [Fri, 5 Jun 2026 10:08:03 +0000 (10:08 +0000)] 
Build the fuzzers without the libbindtest test library

Every fuzz target depended on libtest_dep, which forces building the
libbindtest shared library.  In a static build (as used by OSS-Fuzz)
that link fails: libbindtest's netmgr wrappers multiply-define symbols
that also live in the static libisc/libns archives, and the static
system libraries are not position independent.

Only fuzz_dns_qp actually uses the qp test helpers, so give it just
tests/libtest/qp.c via the new libtest_qp_dep and drop libtest_dep
from the fuzzers.

Assisted-by: Claude:claude-opus-4-8
2 months agochg: nil: CVE checklist updates
Ondřej Surý [Sat, 6 Jun 2026 05:52:57 +0000 (07:52 +0200)] 
chg: nil: CVE checklist updates

Merge branch 'ondrej/checklist-affected-version' into 'main'

See merge request isc-projects/bind9!12198

2 months agoMake it clear that affected versions also include EOL versions
Ondřej Surý [Sat, 6 Jun 2026 05:48:38 +0000 (07:48 +0200)] 
Make it clear that affected versions also include EOL versions

This is a major hassle for Support and the issue and MR need to
be properly tagged with appropriate Affected <version> labels.

2 months agochg: ci: Build unit tests in the unit test job
Michal Nowak [Fri, 5 Jun 2026 14:33:17 +0000 (16:33 +0200)] 
chg: ci: Build unit tests in the unit test job

Building the unit tests in the build job ships them in the CI artifact
(+200 MB) and transfers them over the network.  Build them in the unit
test job instead.

Git checks the sources out newer than the build tree restored from the
artifact, which would make meson rebuild all of BIND 9 in the unit test
job.  Age the sources so the build is treated as up to date and only the
unit tests get compiled.

Assisted-by: Claude:claude-opus-4-8
Merge branch 'mnowak/build-unit-tests-in-unit-job' into 'main'

See merge request isc-projects/bind9!12180

2 months agoTweak and reword release notes
Nicki Křížek [Thu, 4 Jun 2026 15:07:54 +0000 (15:07 +0000)] 
Tweak and reword release notes

Assisted-by: Claude:claude-opus-4-8
2 months agoBuild unit tests in the unit test job
Michal Nowak [Wed, 3 Jun 2026 13:53:51 +0000 (13:53 +0000)] 
Build unit tests in the unit test job

Building the unit tests in the build job ships them in the CI artifact
(+200 MB) and transfers them over the network.  Build them in the unit
test job instead.

When Git checks out the sources, their modification times are newer than
the build tree restored from the artifact, so meson would rebuild all of
BIND 9 in the unit test job.  Age the tracked sources so the build is
treated as up to date and only the unit tests get compiled.

Assisted-by: Claude:claude-opus-4-8
2 months agochg: nil: CVE checklist updates
Petr Špaček [Fri, 5 Jun 2026 11:41:29 +0000 (11:41 +0000)] 
chg: nil: CVE checklist updates

Merge branch 'cve-checklist-update' into 'main'

See merge request isc-projects/bind9!12179

2 months agoTry to encourage people to ask
Petr Špaček [Fri, 5 Jun 2026 11:34:35 +0000 (13:34 +0200)] 
Try to encourage people to ask

Better than stalling the process when unsure. Let's see if it helps.

2 months agoMake help resources more obvious
Petr Špaček [Fri, 5 Jun 2026 11:17:09 +0000 (13:17 +0200)] 
Make help resources more obvious

A futile attempt to make people read the docs.

2 months agoDetermine only which branches are affected
Petr Špaček [Fri, 5 Jun 2026 09:09:18 +0000 (11:09 +0200)] 
Determine only which branches are affected

No need to dig into history to find earliest version affected.

2 months agoRefer to Zulip instead of Mattermost
Petr Špaček [Fri, 5 Jun 2026 07:07:17 +0000 (09:07 +0200)] 
Refer to Zulip instead of Mattermost

We are using Zulip topic per CVE, not a separate channel anymore.

2 months agoDraw attention to Multi-vendor issues
Petr Špaček [Fri, 5 Jun 2026 10:49:00 +0000 (12:49 +0200)] 
Draw attention to Multi-vendor issues

2 months agoFixes must be merged ASAP into respective privat branch
Petr Špaček [Fri, 5 Jun 2026 10:48:47 +0000 (12:48 +0200)] 
Fixes must be merged ASAP into respective privat branch

All Hands 2026 decision.

2 months agoNo need to determine workarounds
Petr Špaček [Fri, 5 Jun 2026 10:48:12 +0000 (12:48 +0200)] 
No need to determine workarounds

All Hands 2026 decision.

2 months agoIncident Manager is now always the assigned SwEng person
Petr Špaček [Fri, 5 Jun 2026 10:47:43 +0000 (12:47 +0200)] 
Incident Manager is now always the assigned SwEng person

All Hands 2026 decision.

2 months agoDeputy Incident Manager is not in use anymore
Petr Špaček [Fri, 5 Jun 2026 10:45:54 +0000 (12:45 +0200)] 
Deputy Incident Manager is not in use anymore

Deemend too much of overhead by Ondřej Surý.

2 months agonew: test: pytest helpers for dnssec and zone setup
Nicki Křížek [Thu, 4 Jun 2026 17:16:12 +0000 (19:16 +0200)] 
new: test: pytest helpers for dnssec and zone setup

- Create `isctest.zone.Zone` helper for zone setup (including signing).
- Add `ZoneKey` helpers for both dnssec-keygen managed keys and python-based keys.
- Add `dnssec_py` shared test setup for DNSSEC tests.
- Add the first example - refactor `nsec3_delegations` into a `dnssec_py` test module.

Merge branch 'nicki/pytest-dnssec-py' into 'main'

See merge request isc-projects/bind9!11807

2 months agoAdd ZoneKey helpers for key operations in isctest.zone
Nicki Křížek [Wed, 15 Apr 2026 17:03:52 +0000 (17:03 +0000)] 
Add ZoneKey helpers for key operations in isctest.zone

Introduce an abstract ZoneKey base class with two concrete
implementations:

- FileZoneKey wraps a dnssec-keygen-managed key file (kasp.Key).
- PythonZoneKey holds a Python-native keypair for dnspython-based
  signing and key operations.

Both share ZoneKey.into_ta() and ZoneKey.is_ksk(). The ZoneKey
abstraction lets Zone.copy_dssets() and Zone.trust_anchors() handle
pure-Python keys without callers needing to know how the key was made.

Assisted-by: Claude:claude-opus-4-8
2 months agoAdd NSEC3 excessive iterations test to dnssec_py
Nicki Křížek [Fri, 3 Apr 2026 13:22:33 +0000 (13:22 +0000)] 
Add NSEC3 excessive iterations test to dnssec_py

Rewrite nsec3_delegation/tests_excessive_nsec3_iterations.py as
dnssec_py/tests_nsec3_iter_too_many.py using the isctest.zone helpers.

The test is a reproducer for CVE-2026-1519 [GL#5708]. It sets up a
delegation from nsec3-iter-too-many. (ns2) to an unsigned sub zone
(ns3), signing the parent with NSEC3 at 51 iterations. A validating
resolver (ns9) must use NSEC3 to prove the sub zone is insecure; the
excessive iteration count is logged as a warning. The test verifies that
the query still resolves successfully (insecure, not SERVFAIL) despite
the high iteration count.

Assisted-by: Claude:claude-opus-4-8