Kea 2.1.7 added a new security feature with the ``restrict-commands`` HA config
parameter: when set to ``true``, commands which are not used by the hook are
-rejected. The default is ``false``.
+rejected. The default is ``true`` since Kea 3.0.0.
The following is an example of an HA server pair and Control Agent configuration
for ``hot-standby`` with TLS.
wait_backup_ack_(false), enable_multi_threading_(false),
http_dedicated_listener_(false), http_listener_threads_(0), http_client_threads_(0),
trust_anchor_(), cert_file_(), key_file_(), require_client_certs_(true),
- restrict_commands_(false), peers_(),
+ restrict_commands_(true), peers_(),
state_machine_(new StateMachineConfig()) {
}
{ "max-unacked-clients", Element::integer, "10" },
{ "max-rejected-lease-updates", Element::integer, "10" },
{ "require-client-certs", Element::boolean, "true" },
- { "restrict-commands", Element::boolean, "false" },
+ { "restrict-commands", Element::boolean, "true" },
{ "send-lease-updates", Element::boolean, "true" },
{ "sync-leases", Element::boolean, "true" },
{ "sync-timeout", Element::integer, "60000" },
isc_throw(BadValue, "unknown state " << state_name);
}
-} // end of namespace isc::ha
+} // end of namespace isc::ha
} // end of namespace isc
" \"cert-file\": \"!CA!/kea-client.crt\","
" \"key-file\": \"!CA!/kea-client.key\","
" \"require-client-certs\": false,"
- " \"restrict-commands\": true,"
+ " \"restrict-commands\": false,"
" \"peers\": ["
" {"
" \"name\": \"my-server\","
expected += "/kea-client.key";
EXPECT_EQ(expected, impl->getConfig()->getKeyFile().get());
EXPECT_FALSE(impl->getConfig()->getRequireClientCerts());
- EXPECT_TRUE(impl->getConfig()->getRestrictCommands());
+ EXPECT_FALSE(impl->getConfig()->getRestrictCommands());
// Check the first peer parameters: it inherits them from the global level.
HAConfig::PeerConfigPtr cfg = impl->getConfig()->getThisServerConfig();
" \"this-server-name\": \"server1\","
" \"mode\": \"passive-backup\","
" \"wait-backup-ack\": true,"
- " \"restrict-commands\": true,"
+ " \"restrict-commands\": false,"
" \"peers\": ["
" {"
" \"name\": \"server1\","