Commit graph

36965 commits

Author SHA1 Message Date
Mark Andrews
43e714336a Select the appropriate namespace when using a dual stack server
When using dual-stack-servers the covering namespace to check whether
answers are in scope or not should be fctx->domain.  To do this we need
to be able to distingish forwarding due to forwarders clauses and
dual-stack-servers.  A new flag FCTX_ADDRINFO_DUALSTACK has been added
to signal this.

(cherry picked from commit dfbffd77f9)
2022-11-17 13:05:12 +11:00
Mark Andrews
eaa97f48df Merge branch '1905-check-wildcard-in-checkconf-z-v9_18' into 'v9_18'
Fix 'named-checkconf -z' was ignoring check-wildcard settings in named.conf [v9_18]

See merge request isc-projects/bind9!7090
2022-11-17 00:53:46 +00:00
Mark Andrews
4906ae9fe0 Check 'named-checkconf -z' and check-wildcard
Add tests to check the behavior of 'named-checkconf -z' and
check-wildcard setting in named.conf.

(cherry picked from commit 708dadac59)
2022-11-17 10:58:54 +11:00
Mark Andrews
27250ec8d2 named-checkzone -z ignored the check-wildcard option
Lookup and set the wildcard option according to the configuration
settings.  The default is on as per bin/named/config.c.

(cherry picked from commit dfc5c1e018)
2022-11-17 10:54:36 +11:00
Michal Nowak
f0fc13e408 BIND 9.18.9
-----BEGIN PGP SIGNATURE-----
 
 iQJDBAABCgAtFiEENKwGS3ftSQfs1TU17QVz/8hFYQUFAmNpg9oPHG1pY2hhbEBp
 c2Mub3JnAAoJEO0Fc//IRWEF594P/0ZwbJ2oQTSt2m9q6MCHlHkDPKSpI/J/76R/
 SX29obKO8RFZd2tm41rlzZMI2+ekQur7ecQp+YPibsyJSbbYQtdEeNlzKIj9X3/m
 yTDM+yP1iLmZWin2Dl+tCRafT+0O3Pl60kjmHuGnJbChf7XP6YwdMIqMJqG5t2Er
 wLz6hR/RkE6UsbMXnWRkUSvhpEEu/8qHEfDLfFWmvfcHPrwxw5ExTtqfw5KBMbWg
 MUwlnCthLETqOcoyDzBN17ftcud6v51D9aCb/a3B5Sx4VI/qHPrhMQNDZUUEyeEG
 rhmtqI3hrvW8AGLrKCK5qkE9FHtYGbfkWAdkQag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
 HuhJT797NdNeAlR7iNrywvtccqTcPGhsE47WVTGWQBiFH5BKecnYhpFwtRXzgXs1
 AWEKe4LyysTckygUsDz91WMq833VfS6z+VtXZMqLXxVs6zCvm8s=
 =cWe+
 -----END PGP SIGNATURE-----

Merge tag 'v9_18_9' into v9_18

BIND 9.18.9
2022-11-16 15:49:55 +01:00
Michal Nowak
adc93de268 Merge branch 'mnowak/openbsd-7.2-v9_18' into 'v9_18'
[v9_18] Add OpenBSD 7.2

See merge request isc-projects/bind9!7082
2022-11-15 09:52:54 +00:00
Michal Nowak
4f180ee1f6
Add OpenBSD 7.2
(cherry picked from commit b239e6870d)
2022-11-15 08:32:29 +01:00
Michal Nowak
5ddc9bd59c Merge branch '2265-fix-and-check-bashisms-v9_18' into 'v9_18'
[v9_18] Fix and check bashisms in system test

See merge request isc-projects/bind9!7080
2022-11-14 20:34:42 +00:00
Michal Nowak
ebdf9336e3
Add checkbashisms CI job
(cherry picked from commit 47a7c5123a)
2022-11-14 21:03:01 +01:00
Michal Nowak
e30f71f6f1
Replace "sha1sum" with "openssl sha1 -r"
"sha1sum" is part of GNU Coreutils, neither BIND 9 dependency nor POSIX.
Replace it with "openssl sha1 -r" as OpenSSL is BIND 9 dependency.

(cherry picked from commit d34c7ae227)
2022-11-14 21:03:01 +01:00
Michal Nowak
18965b6ecd
Rename $HOSTNAME to $HOST_NAME to silence checkbashisms
checkbashisms warns about possible reliance on HOSTNAME environmental
variable which Bash sets to the name of the current host, and some
commands may leverage it:

    possible bashism in builtin/tests.sh line 199 ($HOST(TYPE|NAME)):
    grep "^\"$HOSTNAME\"$" dig.out.ns1.$n > /dev/null || ret=1
    possible bashism in builtin/tests.sh line 221 ($HOST(TYPE|NAME)):
    grep "^\"$HOSTNAME\"$" dig.out.ns2.$n > /dev/null || ret=1
    possible bashism in builtin/tests.sh line 228 ($HOST(TYPE|NAME)):
    grep "^; NSID: .* (\"$HOSTNAME\")$" dig.out.ns2.$n > /dev/null || ret=1

We don't use the variable this way but rename it to HOST_NAME to silence
the tool.

(cherry picked from commit ae33a8ddea)
2022-11-14 21:03:01 +01:00
Michal Nowak
c13bb5a7c1
Remove no-op assignment from kasp/tests.sh
"next_key_event_threshold" is assigned with
"next_key_event_threshold+i", but "i" is empty (never set, nor used
afterwards).

posh, the Policy-compliant Ordinary SHell, failed on this assignment
with:

    tests.sh:253: : unexpected `end of expression'

(cherry picked from commit 00c3b1e309)
2022-11-14 21:03:01 +01:00
Michal Nowak
d247b6c09e
Remove unused $@ array from cds/setup.sh
posh, the Policy-compliant Ordinary SHell, failed with:

    setup.sh:57: @: parameter not set

(cherry picked from commit 02a4a95395)
2022-11-14 21:03:01 +01:00
Michal Nowak
a55099ba5b
Drop interpolated string replacement
Interpolated string is Bashism:

    possible bashism in bin/tests/system/engine_pkcs11/setup.sh line 34 ($'...' should be "$(printf '...')"):
            pkcs11-tool --module $SOFTHSM2_MODULE --token-label "softhsm2-engine_pkcs11" -l -k --key-type $type:$bits --label "${label}" --id "${p11id//$'\n'/}" --pin $(cat $PWD/pin) > pkcs11-tool.out.$zone.$id 2> pkcs11-tool.err.$zone.$id || return 1
    possible bashism in bin/tests/system/engine_pkcs11/setup.sh line 34 (${parm/?/pat[/str]}):
            pkcs11-tool --module $SOFTHSM2_MODULE --token-label "softhsm2-engine_pkcs11" -l -k --key-type $type:$bits --label "${label}" --id "${p11id//$'\n'/}" --pin $(cat $PWD/pin) > pkcs11-tool.out.$zone.$id 2> pkcs11-tool.err.$zone.$id || return 1
    possible bashism in bin/tests/system/keyfromlabel/tests.sh line 27 ($'...' should be "$(printf '...')"):
            pkcs11-tool --module $SOFTHSM2_MODULE --token-label "softhsm2-keyfromlabel" -l -k --key-type $type:$bits --label "${label}" --id "${p11id//$'\n'/}" --pin $(cat $PWD/pin) > pkcs11-tool.out.$zone.$id || return 1
    possible bashism in bin/tests/system/keyfromlabel/tests.sh line 27 (${parm/?/pat[/str]}):
            pkcs11-tool --module $SOFTHSM2_MODULE --token-label "softhsm2-keyfromlabel" -l -k --key-type $type:$bits --label "${label}" --id "${p11id//$'\n'/}" --pin $(cat $PWD/pin) > pkcs11-tool.out.$zone.$id || return 1

The replacement is actually not needed as $p11id holds only one line.

Also see https://www.shellcheck.net/wiki/SC3003 and
https://www.shellcheck.net/wiki/SC3060.

(cherry picked from commit ac3fcb612d)
2022-11-14 21:03:01 +01:00
Michal Nowak
64311314dc
Join two rndc lines not to confuse checkbashisms
checkbashisms gets confused by the rndc command being on two lines:

    possible bashism in bin/tests/system/nzd2nzf/tests.sh line 37 (type):
    rndccmd 10.53.0.1 addzone "added.example { type primary; file \"added.db\";

(cherry picked from commit 9eb2f6b0e8)
2022-11-14 21:03:00 +01:00
Michal Nowak
e7e0d1dd0a
Replace string comparisons with integer comparisons
checkbashisms reports Bash-style ("==") string comparisons inside test/[
command:

    possible bashism in bin/tests/system/checkconf/tests.sh line 105 (should be 'b = a'):
                    if [ $? == 0 ]; then echo_i "failed"; ret=1; fi
    possible bashism in bin/tests/system/keyfromlabel/tests.sh line 62 (should be 'b = a'):
                    test $ret == 0 || continue
    possible bashism in bin/tests/system/keyfromlabel/tests.sh line 79 (should be 'b = a'):
                    test $ret == 0 || continue

(cherry picked from commit 7640fc5b39)
2022-11-14 21:02:59 +01:00
Michal Nowak
5bab6f2104
Add shell interpreter line where missing
The checkbashisms script reports errors like this one:

    script util/check-line-length.sh does not appear to have a #! interpreter line;
    you may get strange results

(cherry picked from commit 9e68997cbb)
2022-11-14 21:02:15 +01:00
Mark Andrews
d4b064bd65 Merge branch '3468-statistics-xml-rendering-does-not-seem-to-protect-against-concurrent-changes-v9_18' into 'v9_18'
Resolve "Statistics XML rendering does not seem to protect against concurrent changes" [v9_18]

See merge request isc-projects/bind9!7076
2022-11-11 19:08:16 +00:00
Mark Andrews
9e1f36165c Add CHANGES note for [GL #3468]
(cherry picked from commit a4383c906c)
2022-11-11 15:58:37 +00:00
Mark Andrews
1de9c05210 Have dns_zt_apply lock the zone table
There were a number of places where the zone table should have been
locked, but wasn't, when dns_zt_apply was called.

Added a isc_rwlocktype_t type parameter to dns_zt_apply and adjusted
all calls to using it.  Removed locks in callers.

(cherry picked from commit f053d5b414)
2022-11-11 15:57:52 +00:00
Petr Špaček
7835ccd048 Merge branch '3669-update-policy-external-synchronous-doc-v9_18' into 'v9_18'
Document that update-policy external is synchronous [v9_18]

See merge request isc-projects/bind9!7073
2022-11-11 10:15:23 +00:00
Petr Špaček
fb6e5c2d28
Document that update-policy external is synchronous
(cherry picked from commit 7d352741a0)
2022-11-11 10:38:17 +01:00
Ondřej Surý
0e0a86d199 Merge branch '3670-bump-statschannel-headers-v9_18' into 'v9_18'
Bump the allowed HTTP headers in statschannel to 100 [v9.18]

See merge request isc-projects/bind9!7071
2022-11-11 09:00:57 +00:00
Ondřej Surý
b1d21c0ece
Add CHANGES and release note for [GL #3670]
(cherry picked from commit c65666dc97)
2022-11-11 09:25:00 +01:00
Ondřej Surý
9e5299db30
Update the HTTP headers test to check for 101 headers
When we bumped the number of allowed HTTP headers to 100, we forgot to
bump the number in the system test.  Bump the number in the system test
too.
2022-11-11 09:25:00 +01:00
Ondřej Surý
882adbdc20
Bump the allowed HTTP headers in statschannel to 100
Firefox 90+ apparently sends more than 10 headers, so we need to bump
the number to some higher number.  Bump it to 100 just to be on a save
side, this is for internal use only anyway.

(cherry picked from commit e4654d1a6a)
2022-11-11 09:23:47 +01:00
Mark Andrews
59cb6fa575 Merge branch '3630-nextpart-is-not-compatible-with-set-x-v9_18' into 'v9_18'
Resolve "'nextpart' is not compatible with 'set -x'" [v9_18]

See merge request isc-projects/bind9!7060
2022-11-08 17:15:33 +00:00
Mark Andrews
bc26438979 Use file descriptor 3 to save file.prev
If 'set -x' is in effect file.prev gets populated with debugging output.
To prevent this open descriptor 3 and redirect stderr from the awk
command to descriptor 3. Debugging output will stay directed to stderr.

(cherry picked from commit 10f67938db)
2022-11-08 16:43:58 +00:00
Tom Krizek
2c66f16f06 Merge branch 'tkrizek/danger-approve-v9_18' into 'v9_18'
ci: add danger checks - approve workflow & wip commits [v9_18]

See merge request isc-projects/bind9!7057
2022-11-08 13:41:23 +00:00
Tom Krizek
e15f4aefab
Check for cherry pick message in backport commits in danger CI
Using the -x option for cherry pick makes it easy to link commits across
branches and it is recommended to use for all backport commits (with
exceptions -- thus a warning level rather than failure).

(cherry picked from commit 5ecb277090)
2022-11-08 14:38:34 +01:00
Tom Krizek
12e03cb48d
Detect work-in-progress commits in danger CI
To avoid accidentally merging unfinished work, detect prohibited
keywords at the start of the subject line. If the first word is any of
the following, fail the check:
WIP, wip, DROP, drop, TODO, todo

The only slightly controversial is the lowercase "drop" which might have
a legitimate use - seems like four commits in the history used it as a
start of a sentence. However, since people commonly use "drop" to
indicate a commit should be dropped before merging, let's prohibit it as
well. In case of false-positive, "Drop" with a capitalized first letter
can always be used.

(cherry picked from commit 402b11431c)
2022-11-08 14:38:34 +01:00
Tom Krizek
9633be904c
Use approve button workflow in danger CI
Since the LGTM label was deprecated in favor of using the Approve button
in gitlab, adjust the detection in danger bot.

Unfortunately, danger-python seems no longer maintained since 2020 and
MR approvals aren't available in its Python API (even though they're
supported in its Ruby/JS APIs). Going forward, let's use the more
comprehensive python-gitlab API.

It still makes sense to utilize the danger-python, since it handles the
integration with gitlab which doesn't need to be reimplemented as long
as it works - same with the other checks.

(cherry picked from commit e901342dd9)
2022-11-08 14:38:32 +01:00
Michał Kępień
d4bfa75ee1 Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.18.10' into 'v9_18'
Set up version and release notes for BIND 9.18.10

See merge request isc-projects/bind9!7054
2022-11-08 12:30:12 +00:00
Michał Kępień
60c976267e Set up release notes for BIND 9.18.10 2022-11-08 13:23:20 +01:00
Michał Kępień
1f1c012a5f Update BIND version to 9.18.10-dev 2022-11-08 13:23:20 +01:00
Michał Kępień
e83150781b Update BIND version for release 2022-11-07 23:16:44 +01:00
Michał Kępień
6b25fe9c13 Add a CHANGES marker 2022-11-07 23:16:44 +01:00
Michał Kępień
342045e9d8 Merge branch 'michal/prepare-documentation-for-bind-9.18.9' into 'v9_18_9-release'
Prepare documentation for BIND 9.18.9

See merge request isc-private/bind9!472
2022-11-07 21:41:36 +00:00
Michał Kępień
2a6be79edf Add release note for GL #3603 2022-11-07 22:33:46 +01:00
Michał Kępień
09d9b70b74 Add release note for GL #3247 2022-11-07 22:33:46 +01:00
Michał Kępień
8d752fbf6b Reorder release notes 2022-11-07 22:33:46 +01:00
Michał Kępień
cb5b90c57e Tweak and reword release notes 2022-11-07 22:33:46 +01:00
Michał Kępień
82cbef953b Prepare release notes for BIND 9.18.9 2022-11-07 22:33:46 +01:00
Michał Kępień
3f04105401 Merge branch 'pspacek/doc-known-issues-reshuffle-v9_18' into 'v9_18'
[v9_18] Repeat Known Issues at the top of Release Notes page

See merge request isc-projects/bind9!7042
2022-11-07 13:49:10 +00:00
Petr Špaček
1275f47907 Repeat Known Issues at the top of Release Notes page
From now on all per-version notes link to the global list
of Known Issues. If there is a new note it should be listed twice:
In the per-version list, and in the global list.

(cherry picked from commit c58dd2790a)
2022-11-07 14:43:40 +01:00
Michał Kępień
641293eb45 Merge branch '3652-reference-manual-update-policies-unmatched-parenthesis-v9_18' into 'v9_18'
[v9_18] Add missing closing ')' to update-policy documentation

See merge request isc-projects/bind9!7038
2022-11-07 12:49:20 +00:00
Mark Andrews
09dab3d924
Add missing closing ')' to update-policy documentation
The opening '(' before local was not being matched by a closing
')' after the closing '};'.

(cherry picked from commit 044c3b2bb8)
2022-11-07 12:23:17 +01:00
Ondřej Surý
4eadc05c67 Merge branch '3643-dont-use-dns_zone_attach-in-zone_refreshkeys-v9_18' into 'v9_18'
Don't use dns_zone_attach() in zone_refreshkeys() [v9.18]

See merge request isc-projects/bind9!7024
2022-11-03 15:14:58 +00:00
Ondřej Surý
21d8d5e07d
Don't use dns_zone_attach() in zone_refreshkeys()
The zone_refreshkeys() could run before the zone_shutdown(), but after
the last .erefs has been "detached" causing assertion failure when doing
dns_zone_attach().  Remove the use of .erefs (dns_zone_attach/detach)
and replace it with using the .irefs and additional checks whether the
zone is exiting in the callbacks.

(cherry picked from commit 80e66fbd2d)
2022-11-03 15:22:50 +01:00
Matthijs Mekking
1a47343965 Merge branch '3591-nsec3-crash-dynamic-to-inline-signing-v9_18' into 'v9_18'
[v9_18] Fix crash where dnssec-policy zone with NSEC3 crashes when inline-signing is turned on

See merge request isc-projects/bind9!7020
2022-11-03 11:13:25 +00:00