Debian Codegraph @

doc/changelog/changelog-9.20.4.rst

raw
1 .. Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2 ..
3 .. SPDX-License-Identifier: MPL-2.0
4 ..
5 .. This Source Code Form is subject to the terms of the Mozilla Public
6 .. License, v. 2.0. If a copy of the MPL was not distributed with this
7 .. file, you can obtain one at https://mozilla.org/MPL/2.0/.
8 ..
9 .. See the COPYRIGHT file distributed with this work for additional
10 .. information regarding copyright ownership.
11
12 BIND 9.20.4
13 -----------
14
15 New Features
16 ~~~~~~~~~~~~
17
18 - Update bind.keys with the new 2025 IANA root key. ``1f988e2cc7``
19
20 Add an 'initial-ds' entry to bind.keys for the new root key, ID 38696,
21 which is scheduled for publication in January 2025. :gl:`#4896`
22 :gl:`!9746`
23
24 - Support jinja2 templates in pytest runner. ``4a9380835f``
25
26 Configuration files in system tests which require some variables (e.g.
27 port numbers) filled in during test setup, can now use jinja2
28 templates when `jinja2` python package is available.
29
30 Any `*.j2` file found within the system test directory will be
31 automatically rendered with the environment variables into a file
32 without the `.j2` extension by the pytest runner. E.g.
33 `ns1/named.conf.j2` will become `ns1/named.conf` during test setup. To
34 avoid automatic rendering, use `.j2.manual` extension and render the
35 files manually at test time.
36
37 New `templates` pytest fixture has been added. Its `render()` function
38 can be used to render a template with custom test variables. This can
39 be useful to fill in different config options during the test. With
40 advanced jinja2 template syntax, it can also be used to include/omit
41 entire sections of the config file rather than using `named1.conf.in`,
42 `named2.conf.in` etc. :gl:`#4938` :gl:`!9699`
43
44 Removed Features
45 ~~~~~~~~~~~~~~~~
46
47 - Move contributed DLZ modules into a separate repository.
48 ``a1cd30cd25``
49
50 The DLZ modules are poorly maintained as we only ensure they can still
51 be compiled, the DLZ interface is blocking, so anything that blocks
52 the query to the database blocks the whole server and they should not
53 be used except in testing. The DLZ interface itself is going to be
54 scheduled for removal.
55
56 The DLZ modules now live in
57 https://gitlab.isc.org/isc-projects/dlz-modules repository.
58 :gl:`#4865` :gl:`!9777`
59
60 Feature Changes
61 ~~~~~~~~~~~~~~~
62
63 - Use lists of expected artifacts in system tests. ``e5fa109599``
64
65 ``clean.sh`` scripts have been replaced by lists of expected artifacts
66 for each system test module. The list is defined using the custom
67 ``pytest.mark.extra_artifacts`` mark, which can use both filenames and
68 globs. :gl:`#4261` :gl:`!9734`
69
70 - Dnssec-ksr now supports KSK rollovers. ``834c04fc77``
71
72 The tool 'dnssec-ksr' now allows for KSK generation, as well as
73 planned KSK rollovers. When signing a bundle from a Key Signing
74 Request (KSR), only the key that is active in that time frame is being
75 used for signing. Also, the CDS and CDNSKEY records are now added and
76 removed at the correct time. :gl:`#4697` :gl:`#4705` :gl:`!9711`
77
78 - Incrementally apply AXFR transfer. ``4509b92e21``
79
80 Reintroduce logic to apply diffs when the number of pending tuples is
81 above 128. The previous strategy of accumulating all the tuples and
82 pushing them at the end leads to excessive memory consumption during
83 transfer.
84
85 This effectively reverts half of e3892805d6 :gl:`#4986` :gl:`!9761`
86
87 - Print expire option in transfer summary. ``6cd001a68b``
88
89 The zone transfer summary will now print the expire option value in
90 the zone transfer summary. :gl:`#5013` :gl:`!9714`
91
92 - Add two new clang-format options that help with code formatting.
93 ``4230b2b514``
94
95 * Add new clang-format option to remove redundant semicolons
96 * Add new clang-format option to remove redundant parentheses
97
98 :gl:`!9750`
99
100 - Emit more helpful log for exceeding max-records-per-type.
101 ``74e7e229f2``
102
103 The new log message is emitted when adding or updating an RRset fails
104 due to exceeding the max-records-per-type limit. The log includes the
105 owner name and type, corresponding zone name, and the limit value. It
106 will be emitted on loading a zone file, inbound zone transfer (both
107 AXFR and IXFR), handling a DDNS update, or updating a cache DB. It's
108 especially helpful in the case of zone transfer, since the secondary
109 side doesn't have direct access to the offending zone data.
110
111 It could also be used for max-types-per-name, but this change doesn't
112 implement it yet as it's much less likely to happen in practice.
113 :gl:`!9771`
114
115 - Harden key management when key files have become unavailabe.
116 ``11b0f41f80``
117
118 Prior to doing key management, BIND 9 will check if the key files on
119 disk match the expected keys. If key files for previously observed
120 keys have become unavailable, this will prevent the internal key
121 manager from running. :gl:`!9622`
122
123 Bug Fixes
124 ~~~~~~~~~
125
126 - Use TLS for notifies if configured to do so. ``c1b82c1fb8``
127
128 Notifies configured to use TLS will now be sent over TLS, instead of
129 plaintext UDP or TCP. Also, failing to load the TLS configuration for
130 notify now also results in an error. :gl:`#4821` :gl:`!9684`
131
132 - '{&dns}' is as valid as '{?dns}' in a SVCB's dohpath. ``b27cb14616``
133
134 `dig` fails to parse a valid (as far as I can tell, and accepted by
135 `kdig` and `Wireshark`) `SVCB` record with a `dohpath` URI template
136 containing a `{&dns}`, like `dohpath=/some/path?key=value{&dns}"`. If
137 the URI template contains a `{?dns}` instead `dig` is happy, but my
138 understanding of rfc9461 and section 1.2. "Levels and Expression
139 Types" of rfc6570 is that `{&dns}` is valid. See for example section
140 1.2. "Levels and Expression Types" of rfc6570.
141
142 Note that Peter van Dijk suggested that `{dns}` and
143 `{dns,someothervar}` might be valid forms as well, so my patch might
144 be too restrictive, although it's anyone's guess how DoH clients would
145 handle complex templates. :gl:`#4922` :gl:`!9769`
146
147 - Make dns_validator_cancel() respect the data ownership. ``8002fda38c``
148
149 There was a data race dns_validator_cancel() was called when the
150 offloaded operations were in progress. Make dns_validator_cancel()
151 respect the data ownership and only set new .canceling variable when
152 the offloaded operations are in progress. The cancel operation would
153 then finish when the offloaded work passes the ownership back to the
154 respective thread. :gl:`#4926` :gl:`!9790`
155
156 - Fix NSEC3 closest encloser lookup for names with empty non-terminals.
157 ``76dc8accd3``
158
159 The performance improvement for finding the NSEC3 closest encloser
160 when generating authoritative responses could cause servers to return
161 incorrect NSEC3 records in some cases. This has been fixed.
162 :gl:`#4950` :gl:`!9631`
163
164 - Revert "Improve performance when looking for the closest encloser"
165 ``29c460a4e5``
166
167 Revert "fix: chg: Improve performance when looking for the closest
168 encloser when returning NSEC3 proofs"
169
170 This reverts merge request !9436 :gl:`#4950` :gl:`!9613`
171
172 - Fix a data race in dns_zone_getxfrintime() ``dd72a5eb8d``
173
174 The dns_zone_getxfrintime() function fails to lock the zone before
175 accessing its 'xfrintime' structure member, which can cause a data
176 race between soa_query() and the statistics channel. Add the missing
177 locking/unlocking pair, like it's done in numerous other similar
178 functions. :gl:`#4976` :gl:`!9601`
179
180 - 'Recursive-clients 0;' triggers an assertion. ``747a19bc00``
181
182 BIND 9.20.0 broke `recursive-clients 0;`. This has now been fixed.
183 :gl:`#4987` :gl:`!9654`
184
185 - Transport needs to be a selector when looking for an existing
186 dispatch. ``09fb8e354a``
187
188 This allows for dispatch to use existing TCP/HTTPS/TLS etc. streams
189 without accidentally using an unexpected transport. :gl:`#4989`
190 :gl:`!9682`
191
192 - Parsing of hostnames in rndc.conf was broken. ``b46f2376d0``
193
194 When DSCP support was removed, parsing of hostnames in rndc.conf was
195 accidentally broken, resulting in an assertion failure. This has been
196 fixed. :gl:`#4991` :gl:`!9676`
197
198 - Restore values when dig prints command line. ``f604c31ad2``
199
200 Options of the form `[+-]option=<value>` failed to display the value
201 on the printed command line. This has been fixed. :gl:`#4993`
202 :gl:`!9666`
203
204 - Provide more visibility into configuration errors. ``41fd5e9955``
205
206 by logging SSL_CTX_use_certificate_chain_file and
207 SSL_CTX_use_PrivateKey_file errors individually. :gl:`#5008`
208 :gl:`!9767`
209
210 - Fix a data race between dns_zone_getxfr() and dns_xfrin_create()
211 ``2cb91e0631``
212
213 There is a data race between the statistics channel, which uses
214 `dns_zone_getxfr()` to get a reference to `zone->xfr`, and the
215 creation of `zone->xfr`, because the latter happens outside of a zone
216 lock.
217
218 Split the `dns_xfrin_create()` function into two parts to separate the
219 zone transfer starting part from the zone transfer object creation
220 part. This allows us to attach the new object to a local variable
221 first, then attach it to `zone->xfr` under a lock, and only then start
222 the transfer. :gl:`#5011` :gl:`!9728`
223
224 - Fix race condition when canceling ADB find. ``668ea24467``
225
226 When canceling the ADB find, the lock on the find gets released for a
227 brief period of time to be locked again inside adbname lock. During
228 the brief period that the ADB find is unlocked, it can get canceled by
229 other means removing it from the adbname list which in turn causes
230 assertion failure due to a double removal from the adbname list. This
231 has been fixed. :gl:`#5024` :gl:`!9744`
232
233 - Improve the memory cleaning in the SERVFAIL cache. ``fa5d270f95``
234
235 The SERVFAIL cache doesn't have a memory bound and the cleaning of the
236 old SERVFAIL cache entries was implemented only in opportunistic
237 manner. Improve the memory cleaning of the SERVFAIL cache to be more
238 aggressive, so it doesn't consume a lot of memory in the case the
239 server encounters many SERVFAILs at once. :gl:`#5025` :gl:`!9794`
240
241 - Fix trying the next primary server when the preivous one was marked as
242 unreachable. ``ab138bb717``
243
244 In some cases (there is evidence only when XoT was used) `named`
245 failed to try the next primary server in the list when the previous
246 one was marked as unreachable. This has been fixed. :gl:`#5038`
247 :gl:`!9788`
248
249 - Clean up 'nodetach' in ns_client. ``47a77a3b12``
250
251 The 'nodetach' member is a leftover from the times when non-zero
252 'stale-answer-client-timeout' values were supported, and currently is
253 always 'false'. Clean up the member and its usage. :gl:`!9600`
254
255 - Fix error path bugs in the manager's "recursing-clients" list
256 management. ``d2ea42e237``
257
258 In two places, after linking the client to the manager's
259 "recursing-clients" list using the check_recursionquota() function,
260 the query.c module fails to unlink it on error paths. Fix the bugs by
261 unlinking the client from the list. :gl:`!9604`
262
263 - Remove unused <openssl/{hmac,engine}.h> headers from OpenSSL shims.
264 ``6d717e88c0``
265
266 The <openssl/{hmac,engine}.h> headers were unused and including the
267 <openssl/engine.h> header might cause build failure when OpenSSL
268 doesn't have Engines support enabled.
269
270 See https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
271 :gl:`!9593`
272
273 - Use attach()/detach() functions instead of touching .references.
274 ``1e9c3af75a``
275
276 In rbtdb.c, there were places where the code touched .references
277 directly instead of using the helper functions. Use the helper
278 functions instead.
279
280 Forward port from
281 https://gitlab.isc.org/isc-private/bind9/-/merge_requests/753
282 :gl:`!9795`
283
284