]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1721] add [] in D2 JSON paths
authorAndrei Pavel <andrei@isc.org>
Fri, 21 May 2021 12:40:49 +0000 (15:40 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 21 May 2021 13:22:00 +0000 (13:22 +0000)
to make the redacter look in the right place for "secret" entries

src/bin/d2/d2_cfg_mgr.cc

index 91f7325332885663e674a325f18fccb8fa05a3f5..fa1a943d95f951c99a505602eba1e5908fe689f7 100644 (file)
@@ -312,7 +312,7 @@ D2CfgMgr::parse(isc::data::ConstElementPtr config_set, bool check_only) {
 std::list<std::list<std::string>>
 D2CfgMgr::jsonPathsToRedact() const {
     static std::list<std::list<std::string>> const list({
-        {"tsig-keys"},
+        {"tsig-keys", "[]"},
     });
     return list;
 }