]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3916] add warning on CA startup as being deprecated
authorRazvan Becheriu <razvan@isc.org>
Fri, 30 May 2025 18:20:22 +0000 (21:20 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 30 May 2025 18:27:43 +0000 (21:27 +0300)
doc/sphinx/arm/agent.rst
src/bin/agent/ca_messages.cc
src/bin/agent/ca_messages.h
src/bin/agent/ca_messages.mes
src/bin/agent/ca_process.cc
src/bin/dhcp4/dhcp4_messages.mes
src/bin/dhcp6/dhcp6_messages.mes
src/lib/d2srv/d2_messages.mes

index 090ba1ac7c9e7d65db4135d609b303b758ce8af2..9a2369e47b23ea42bfe6029bf60054f247f90619 100644 (file)
@@ -39,9 +39,9 @@ The CA processes received commands according to the following algorithm:
 
 .. note::
 
-   The CA will be deprecated by a future Kea release: its function has
-   been moved to Kea servers since release 2.7.2, see the section about
-   migration from CA (:ref:`ctrl-channel-migration`).
+   The CA is deprecated: its function has been moved to Kea servers since
+   release 2.7.2, see the section about migration from CA
+   (:ref:`ctrl-channel-migration`).
 
 .. _agent-configuration:
 
index c07dd2fdd9a8e37caf5c85715238fa60aabc8c8a..090444212dc4a3dd1cecd73c6231091a2b53263c 100644 (file)
@@ -1,4 +1,4 @@
-// File created from src/bin/agent/ca_messages.mes
+// File created from ../src/bin/agent/ca_messages.mes
 
 #include <cstddef>
 #include <log/message_types.h>
@@ -21,6 +21,7 @@ extern const isc::log::MessageID CTRL_AGENT_HTTPS_SERVICE_UPDATED = "CTRL_AGENT_
 extern const isc::log::MessageID CTRL_AGENT_HTTP_SERVICE_REUSE_FAILED = "CTRL_AGENT_HTTP_SERVICE_REUSE_FAILED";
 extern const isc::log::MessageID CTRL_AGENT_HTTP_SERVICE_STARTED = "CTRL_AGENT_HTTP_SERVICE_STARTED";
 extern const isc::log::MessageID CTRL_AGENT_HTTP_SERVICE_UPDATED = "CTRL_AGENT_HTTP_SERVICE_UPDATED";
+extern const isc::log::MessageID CTRL_AGENT_IS_DEPRECATED = "CTRL_AGENT_IS_DEPRECATED";
 extern const isc::log::MessageID CTRL_AGENT_RUN_EXIT = "CTRL_AGENT_RUN_EXIT";
 extern const isc::log::MessageID CTRL_AGENT_SECURITY_CHECKS_DISABLED = "CTRL_AGENT_SECURITY_CHECKS_DISABLED";
 extern const isc::log::MessageID CTRL_AGENT_STARTED = "CTRL_AGENT_STARTED";
@@ -45,6 +46,7 @@ const char* values[] = {
     "CTRL_AGENT_HTTP_SERVICE_REUSE_FAILED", "failed to reused HTTP service bound to address: %1 port: %2",
     "CTRL_AGENT_HTTP_SERVICE_STARTED", "HTTP service bound to address: %1 port: %2",
     "CTRL_AGENT_HTTP_SERVICE_UPDATED", "reused HTTP service bound to address: %1 port: %2",
+    "CTRL_AGENT_IS_DEPRECATED", "Kea Control Agent is deprecated. Its function has been moved to Kea servers.",
     "CTRL_AGENT_RUN_EXIT", "application is exiting the event loop",
     "CTRL_AGENT_SECURITY_CHECKS_DISABLED", "Invoked with command line option -X, Security checks are disabled!!",
     "CTRL_AGENT_STARTED", "Kea Control Agent version %1 started",
index d0249603b7cc61febd4ea9db464cd4e58722c19e..bcd66431292217a0a8e6bbdda0f2b7f5e134caa4 100644 (file)
@@ -1,4 +1,4 @@
-// File created from src/bin/agent/ca_messages.mes
+// File created from ../src/bin/agent/ca_messages.mes
 
 #ifndef CA_MESSAGES_H
 #define CA_MESSAGES_H
@@ -22,6 +22,7 @@ extern const isc::log::MessageID CTRL_AGENT_HTTPS_SERVICE_UPDATED;
 extern const isc::log::MessageID CTRL_AGENT_HTTP_SERVICE_REUSE_FAILED;
 extern const isc::log::MessageID CTRL_AGENT_HTTP_SERVICE_STARTED;
 extern const isc::log::MessageID CTRL_AGENT_HTTP_SERVICE_UPDATED;
+extern const isc::log::MessageID CTRL_AGENT_IS_DEPRECATED;
 extern const isc::log::MessageID CTRL_AGENT_RUN_EXIT;
 extern const isc::log::MessageID CTRL_AGENT_SECURITY_CHECKS_DISABLED;
 extern const isc::log::MessageID CTRL_AGENT_STARTED;
index b0e8adc135aff10577fd73dba2e09e978aa930c1..3ec38f581c905987c6d9ae813d0bd896b62d5dbb 100644 (file)
@@ -82,9 +82,13 @@ This informational message indicates that the Control Agent has
 processed all configuration information and is ready to begin processing.
 The version is also printed.
 
+% CTRL_AGENT_IS_DEPRECATED Kea Control Agent is deprecated. Its function has been moved to Kea servers.
+This warning message indicates that the Control Agent has been deprecated.
+All its function has been moved to Kea servers.
+
 % CTRL_AGENT_SECURITY_CHECKS_DISABLED Invoked with command line option -X, Security checks are disabled!!
 This warning is emitted when internal security checks normally
-performed by kea-ctrl-agent have been disabled via command line opion '-X'.
+performed by kea-ctrl-agent have been disabled via command line option '-X'.
 This means the server is not enforcing restrictions on resource
 paths or permissions.  This mode of operation may expose your
 environment to security vulnerabilities and should only be used
index b3164ca24426e84bf4e2b0ee36d8afec569fc066..f01dd97d4d18c816b0a93fc2fb6f0ea16f95b471 100644 (file)
@@ -44,6 +44,8 @@ void
 CtrlAgentProcess::run() {
     LOG_INFO(agent_logger, CTRL_AGENT_STARTED).arg(VERSION);
 
+    LOG_WARN(agent_logger, CTRL_AGENT_IS_DEPRECATED);
+
     if (!PathChecker::shouldEnforceSecurity()) {
         LOG_WARN(agent_logger, CTRL_AGENT_SECURITY_CHECKS_DISABLED);
     }
index 332232ec2508a35dd2ce78fcc6382fc047bb909d..baab461ef3d2e10336e05ac4f2cd4faad362f0b6 100644 (file)
@@ -1185,7 +1185,7 @@ expected: the erroneous response is dropped, the discover query is displayed.
 
 % DHCP4_SECURITY_CHECKS_DISABLED Invoked with command line option -X, Security checks are disabled!!
 This warning is emitted when internal security checks normally
-performed by kea-dhcp4 have been disabled via command line opion '-X'.
+performed by kea-dhcp4 have been disabled via command line option '-X'.
 This means the server is not enforcing restrictions on resource
 paths or permissions.  This mode of operation may expose your
 environment to security vulnerabilities and should only be used
index 6f75fe6aba36613399e5834f2404d64890f5d572..235179df7e1f10b9171277f9b8c43ba427ab8225 100644 (file)
@@ -1162,7 +1162,7 @@ new server id.
 
 % DHCP6_SECURITY_CHECKS_DISABLED Invoked with command line option -X, Security checks are disabled!!
 This warning is emitted when internal security checks normally
-performed by kea-dhcp6 have been disabled via command line opion '-X'.
+performed by kea-dhcp6 have been disabled via command line option '-X'.
 This means the server is not enforcing restrictions on resource
 paths or permissions.  This mode of operation may expose your
 environment to security vulnerabilities and should only be used
index c3b3c42f81183bff3d74d9525670ec19225e4f37..35f313459ea3fef08caeda062bd4dc828c7b86c9 100644 (file)
@@ -450,7 +450,7 @@ response from a DNS server.
 
 % DHCP_DDNS_SECURITY_CHECKS_DISABLED Invoked with command line option -X, Security checks are disabled!!
 This warning is emitted when internal security checks normally
-performed by kea-dhcp-ddns have been disabled via command line opion '-X'.
+performed by kea-dhcp-ddns have been disabled via command line option '-X'.
 This means the server is not enforcing restrictions on resource
 paths or permissions.  This mode of operation may expose your
 environment to security vulnerabilities and should only be used