Merge branch '4373-dnssec-validation-yes-should-fail-without-trust-anchors' into 'main'

'dnssec-validation yes' should fail when no trust anchors are configured

Closes #4373

See merge request isc-projects/bind9!8575
This commit is contained in:
Arаm Sаrgsyаn
2024-02-02 19:55:00 +00:00
117 changed files with 348 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
6335. [func] The 'dnssec-validation yes' option now requires an
explicitly configured 'trust-anchors' statement (or
'managed-keys' or 'trusted-keys' statements, both
deprecated). [GL #4373]
6334. [doc] Improve ARM parental-agents definition. [GL #4531]
6333. [bug] Fix the DNS_GETDB_STALEFIRST flag, which was defined

View File

@@ -26,6 +26,8 @@ options {
minimal-responses no;
};
trust-anchors { };
zone "." {
type hint;
file "root.hint";

View File

@@ -25,6 +25,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -24,4 +24,6 @@ options {
notify yes;
};
trust-anchors { };
zone "." { type primary; file "root.db"; };

View File

@@ -30,6 +30,8 @@ options {
};
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -0,0 +1,16 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* SPDX-License-Identifier: MPL-2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
options {
dnssec-validation yes;
};

View File

@@ -0,0 +1,18 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* SPDX-License-Identifier: MPL-2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
options {
dnssec-validation yes;
};
trust-anchors {};

View File

@@ -0,0 +1,18 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* SPDX-License-Identifier: MPL-2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
options {
dnssec-validation yes;
};
trusted-keys {};

View File

@@ -0,0 +1,20 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* SPDX-License-Identifier: MPL-2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
options {
dnssec-validation yes;
};
trust-anchors {
example. static-ds 60724 5 2 "29E79B9064EE1A11DF3BFF19581DDFED7952C22CC204ACE17B6007EB1437E9E6";
};

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* SPDX-License-Identifier: MPL-2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/
options {
dnssec-validation yes;
};
trusted-keys {
example. 257 3 8 "AwEAAawvFp8GlBx8Qt6yaIqXkDe+nMkSk2HkTAG7qlVBo++AQwZ1j3Xl
25IN4jsw0VTMbKUbafw9DYsVzztIwx1sNkKRLo6qP9SSkBL8RicQaafG
tURtsYI3oqte5qqLve1CUpRD8J06Pg1xkOxsDlz9sQAyiQrOyvMbykJY
kYrFYGLzYAgl/JtMyVVYlBl9pqxQuAPKYPOuO1axaad/wLN3+wTy/hcJ
fpvJpqzXlDF9bI5RmpoX/7geZ06vpcYJEoT0xkkmPlEl0ZjEDrm/WIaS
WG0/CEDpHcOXFz4OEczMVpY+lnuFfKybwF1WHFn2BwVEOS6cMM6ukIjI
NQyrszHhWUU=";
};

View File

@@ -25,6 +25,8 @@ options {
notify yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hints";

View File

@@ -25,6 +25,8 @@ options {
notify yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hints";

View File

@@ -26,6 +26,8 @@ options {
notify yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hints";

View File

@@ -26,6 +26,8 @@ options {
notify yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hints";

View File

@@ -69,6 +69,8 @@ options {
transfers-out 100;
};
trust-anchors { };
zone "." {
type primary;
file "root.db";

View File

@@ -39,6 +39,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -39,6 +39,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -39,6 +39,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -39,6 +39,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -49,6 +49,8 @@ options {
nocookie-udp-size 512;
};
trust-anchors { };
zone "." {
type hint;
file "root.hint";

View File

@@ -41,6 +41,8 @@ options {
require-server-cookie yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hint";

View File

@@ -35,6 +35,8 @@ options {
require-server-cookie yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hint";

View File

@@ -36,6 +36,8 @@ options {
require-server-cookie yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hint";

View File

@@ -35,6 +35,8 @@ options {
require-server-cookie yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.hint";

View File

@@ -33,6 +33,8 @@ options {
require-server-cookie yes;
};
trust-anchors { };
server 10.53.0.7 { require-cookie yes; };
zone "example" {

View File

@@ -35,6 +35,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "database" {
type primary;
database "_builtin empty localhost. hostmaster.isc.org.";

View File

@@ -35,6 +35,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "database" {
type primary;
database "_builtin empty localhost. marka.isc.org.";

View File

@@ -42,6 +42,8 @@ options {
};
};
trust-anchors { };
zone "." {
type primary;
file "root.db";

View File

@@ -45,6 +45,8 @@ options {
};
};
trust-anchors { };
zone "." {
type primary;
file "root.db";

View File

@@ -34,6 +34,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type primary;
file "root.db";

View File

@@ -60,6 +60,8 @@ options {
response-policy { zone "rpz"; };
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -40,6 +40,8 @@ options {
};
};
trust-anchors { };
zone "." {
type hint;
file "hints";

View File

@@ -30,6 +30,8 @@ options {
recursion no;
};
trust-anchors { };
zone "." {
type master;
file "root.db";

View File

@@ -32,6 +32,8 @@ options {
qname-minimization disabled;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -32,6 +32,8 @@ options {
qname-minimization disabled;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -33,6 +33,8 @@ options {
qname-minimization disabled;
};
trust-anchors { };
server 10.53.0.1 { tcp-only yes; };
key rndc_key {

View File

@@ -32,6 +32,8 @@ options {
qname-minimization disabled;
};
trust-anchors { };
server 10.53.0.1 { tcp-only yes; };
key rndc_key {

View File

@@ -100,6 +100,8 @@ options {
transfers-out 100;
};
trust-anchors { };
zone "." {
type primary;
file "root.db";

View File

@@ -53,6 +53,8 @@ options {
transfers-out 100;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -46,6 +46,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -54,6 +54,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -42,6 +42,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -28,6 +28,8 @@ options {
fetches-per-server 400;
};
trust-anchors { };
server 10.53.0.4 {
edns no;
};

View File

@@ -26,6 +26,8 @@ options {
fetches-per-zone 40;
};
trust-anchors { };
server 10.53.0.4 {
edns no;
};

View File

@@ -26,6 +26,8 @@ options {
recursive-clients 400;
};
trust-anchors { };
server 10.53.0.4 {
edns no;
};

View File

@@ -27,6 +27,8 @@ options {
max-clients-per-query 10;
};
trust-anchors { };
server 10.53.0.4 {
edns no;
};

View File

@@ -30,6 +30,8 @@ options {
max-clients-per-query 10;
};
trust-anchors { };
server 10.53.0.4 {
edns no;
};

View File

@@ -25,6 +25,8 @@ options {
minimal-responses no;
};
trust-anchors { };
acl filterees { 10.53.0.1; };
plugin query "../../../../plugins/.libs/filter-aaaa.so" {

View File

@@ -25,6 +25,8 @@ options {
minimal-responses no;
};
trust-anchors { };
plugin query "../../../../plugins/.libs/filter-aaaa.so" {
filter-aaaa-on-v6 yes;
filter-aaaa { fd92:7065:b8e:ffff::1; };

View File

@@ -27,6 +27,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -27,6 +27,8 @@ options {
minimal-responses yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.db";

View File

@@ -25,6 +25,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.db";

View File

@@ -24,6 +24,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.db";

View File

@@ -24,6 +24,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "root.db";

View File

@@ -24,6 +24,8 @@ options {
minimal-responses no;
};
trust-anchors { };
plugin query "../driver/.libs/test-async.so";
key rndc_key {

View File

@@ -23,6 +23,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -26,6 +26,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -32,6 +32,8 @@ options {
allow-query { allowed; };
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -32,6 +32,8 @@ options {
allow-query { allowed; };
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -26,6 +26,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -26,6 +26,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -24,6 +24,8 @@ options {
notify yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -24,6 +24,8 @@ options {
notify yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -25,6 +25,8 @@ options {
notify yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -54,6 +54,8 @@ options {
tcp-initial-timeout 1200;
};
trust-anchors { };
zone "example0" {
type primary;
file "example.db";

View File

@@ -49,6 +49,8 @@ options {
tcp-initial-timeout 1200;
};
trust-anchors { };
zone "example" {
type primary;
file "example.db";

View File

@@ -27,6 +27,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -27,6 +27,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -28,6 +28,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -28,6 +28,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -28,6 +28,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type primary;
file "root.db";
@@ -53,5 +55,3 @@ zone "." {
file "redirect.db";
allow-query { !10.53.0.2; !10.53.0.4; any; };
};
// include "trusted.conf";

View File

@@ -31,6 +31,8 @@ options {
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -26,6 +26,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {
type primary;
file "root.db";
@@ -50,5 +52,3 @@ zone "redirect" {
type primary;
file "redirect.db";
};
// include "trusted.conf";

View File

@@ -31,6 +31,8 @@ options {
nxdomain-redirect "redirect";
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -31,6 +31,8 @@ options {
attach-cache "globalcache";
};
trust-anchors { };
server 10.53.0.3 {
tcp-only yes;
};

View File

@@ -27,6 +27,8 @@ options {
prefetch 4 10;
};
include "trusted.conf";
server 10.53.0.7 {
edns-version 0;
};

View File

@@ -34,6 +34,8 @@ options {
edns-udp-size 4096;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -34,6 +34,8 @@ options {
edns-udp-size 4096;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -24,6 +24,8 @@ options {
qname-minimization off;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -20,6 +20,8 @@ options {
dnssec-validation yes;
};
trust-anchors { };
view normal {
match-clients { any; };

View File

@@ -64,6 +64,8 @@ options {
notify-delay 0;
};
trust-anchors { };
logging { category rpz { default_debug; }; };
key rndc_key {

View File

@@ -46,6 +46,8 @@ options {
notify-delay 0;
};
trust-anchors { };
logging { category rpz { default_debug; }; };
key rndc_key {

View File

@@ -40,6 +40,8 @@ options {
notify-delay 0;
};
trust-anchors { };
logging { category rpz { default_debug; }; };
key rndc_key {

View File

@@ -30,6 +30,8 @@ options {
include "../dnsrps.conf";
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -36,6 +36,8 @@ options {
include "../dnsrps.conf";
};
trust-anchors { };
zone "policy" { type primary; file "policy.db"; };
zone "example.tld" { type primary; file "example.db"; };

View File

@@ -35,6 +35,8 @@ options {
include "../dnsrps.conf";
};
trust-anchors { };
zone "policy" { type primary; file "policy.db"; };
zone "example.tld" { type primary; file "example.db"; };

View File

@@ -33,6 +33,8 @@ options {
include "../dnsrps.conf";
};
trust-anchors { };
zone "policy" { type primary; file "policy.db"; };
zone "example.tld" { type primary; file "example.db"; };

View File

@@ -25,4 +25,6 @@ options {
dnssec-validation yes;
};
trust-anchors { };
zone "." {type primary; file "root.db";};

View File

@@ -36,6 +36,8 @@ options {
};
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -43,6 +43,8 @@ options {
};
trust-anchors { };
zone "." { type hint; file "hints"; };
zone "tld3."{ type primary; file "tld3.db"; };

View File

@@ -38,6 +38,8 @@ options {
};
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -32,6 +32,8 @@ options {
};
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -28,6 +28,8 @@ options {
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -24,6 +24,8 @@ options {
notify yes;
};
trust-anchors { };
zone "." {
type hint;
file "../../_common/root.hint";

View File

@@ -24,6 +24,8 @@ options {
notify yes;
};
trust-anchors { };
statistics-channels {
inet 10.53.0.2 port @EXTRAPORT1@ allow { any; };
};

View File

@@ -27,6 +27,8 @@ options {
zone-statistics yes;
};
trust-anchors { };
statistics-channels {
inet 10.53.0.3 port @EXTRAPORT1@ allow { any; };
};

View File

@@ -26,6 +26,8 @@ options {
notify yes;
};
trust-anchors { };
key rndc_key {
secret "1234abcd8765";
algorithm @DEFAULT_HMAC@;

View File

@@ -26,6 +26,8 @@ options {
notify yes;
};
trust-anchors { };
zone "zone000000.example" {
type secondary;
file "zone000000.example.bk";

View File

@@ -68,6 +68,8 @@ options {
tcp-initial-timeout 1200;
};
trust-anchors { };
zone "example0" {
type primary;
file "example.db";

View File

@@ -40,6 +40,8 @@ options {
allow-proxy-on { 10.53.0.1; fd92:7065:b8e:ffff::1; };
};
trust-anchors { };
zone "example" {
type primary;
file "example.db";

Some files were not shown because too many files have changed in this diff Show More