]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1721] redact netconf
authorAndrei Pavel <andrei@isc.org>
Wed, 21 Apr 2021 17:50:52 +0000 (20:50 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 21 May 2021 13:22:00 +0000 (13:22 +0000)
src/bin/netconf/netconf_cfg_mgr.cc

index 7208280723be5fc64fd2c4e0fa6dcb0cd28718b2..2e54b196b2e7c2f31966203214ed4f58e6a36325 100644 (file)
@@ -164,5 +164,13 @@ NetconfConfig::toElement() const {
     return (result);
 }
 
+std::list<std::list<std::string>>
+NetconfCfgMgr::jsonPathsToRedact() const {
+    static std::list<std::list<std::string>> const list({
+        {"hooks-libraries", "parameters", "*"},
+    });
+    return list;
+}
+
 } // namespace isc::netconf
 } // namespace isc