From: Nicki Křížek Date: Fri, 10 Jul 2026 11:47:46 +0000 (+0000) Subject: Cover quoted key names in checkconf X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50ceae57ac7d8a9a52b410c3116e0e698630fc72;p=thirdparty%2Fbind9.git Cover quoted key names in checkconf The logfileconfig configs used to define an unquoted hyphenated `key rndc-key` referenced as `keys { "rndc-key"; }`, incidentally covering quoted/unquoted key-name interchangeability. Now that those configs use the shared controls include, keep that parser coverage in a checkconf test. Assisted-by: Claude:claude-fable-5 --- diff --git a/bin/tests/system/checkconf/good-quoted-key-names.conf b/bin/tests/system/checkconf/good-quoted-key-names.conf new file mode 100644 index 00000000000..a7a005df650 --- /dev/null +++ b/bin/tests/system/checkconf/good-quoted-key-names.conf @@ -0,0 +1,17 @@ +/* + * Key names may be quoted or unquoted, in both definitions and + * references, and a hyphenated name works in either form. + */ +key rndc-key { + algorithm hmac-sha256; + secret "1234abcd8765"; +}; + +key "rndc_key" { + algorithm hmac-sha256; + secret "1234abcd8765"; +}; + +controls { + inet 127.0.0.1 port 953 allow { any; } keys { "rndc-key"; rndc_key; }; +};