]>
git.ipfire.org Git - thirdparty/kea.git/log
Andrei Pavel [Fri, 30 May 2025 06:27:49 +0000 (09:27 +0300)]
[#3905] Fix more Meson flag documentation
Suzanne Goldlust [Thu, 29 May 2025 17:11:00 +0000 (17:11 +0000)]
[#3905] Clarify postgresql argument instructions
Suzanne Goldlust [Thu, 29 May 2025 16:57:22 +0000 (16:57 +0000)]
[#3905] Fix incorrect build arguments
Wlodek Wencel [Fri, 30 May 2025 13:26:43 +0000 (15:26 +0200)]
[#3923] bump up kea version
Suzanne Goldlust [Thu, 8 May 2025 16:58:16 +0000 (16:58 +0000)]
[#3854] Fix typo
Andrei Pavel [Wed, 28 May 2025 12:01:35 +0000 (15:01 +0300)]
[#3857] Remove add-changelog-entry target
It does not work from tarball.
There already is .add-entry.sh which can be run directly.
Andrei Pavel [Wed, 28 May 2025 11:59:34 +0000 (14:59 +0300)]
[#3857] Change amend-gitattributes.sh to not look at the root .gitattributes file
Andrei Pavel [Wed, 28 May 2025 11:44:47 +0000 (14:44 +0300)]
[#3857] Exclude files from meson dist
Razvan Becheriu [Tue, 27 May 2025 11:59:34 +0000 (14:59 +0300)]
[#3894] regenerate kea-messages.rst
Razvan Becheriu [Tue, 27 May 2025 10:38:19 +0000 (10:38 +0000)]
[#3894] update section also
Razvan Becheriu [Mon, 26 May 2025 13:53:47 +0000 (16:53 +0300)]
[#3894] fixed generate rst from mes files
Andrei Pavel [Fri, 30 May 2025 08:00:43 +0000 (11:00 +0300)]
[#3917] Fix fuzz jobs running automatically on MR creation
Andrei Pavel [Fri, 30 May 2025 08:09:12 +0000 (11:09 +0300)]
[#3734] Remove unused variable after HAVE_PGSQL_SSL removal
Andrei Pavel [Wed, 7 May 2025 04:52:29 +0000 (07:52 +0300)]
[#3734] Add ChangeLog entry
Andrei Pavel [Thu, 15 May 2025 06:38:46 +0000 (09:38 +0300)]
[#3734] Remove dotlibs from Meson which was only about compatiblity with Autotools
Andrei Pavel [Wed, 7 May 2025 04:44:08 +0000 (07:44 +0300)]
[#3734] Switch tools/find-uninstalled-headers.py to Meson
Andrei Pavel [Tue, 13 May 2025 19:32:23 +0000 (22:32 +0300)]
[#3734] Remove unnecessary path_replacer.sh
Andrei Pavel [Tue, 13 May 2025 19:32:11 +0000 (22:32 +0300)]
[#3734] Remove unnecessary HAVE_PGSQL_SSL macro
Andrei Pavel [Thu, 8 May 2025 10:30:45 +0000 (13:30 +0300)]
[#3734] Remove Woverloaded-virtual as it creates spurious warnings from boost
Andrei Pavel [Tue, 6 May 2025 13:09:41 +0000 (16:09 +0300)]
[#3734] Meson changes facilitated by the removal of autotools
Andrei Pavel [Tue, 6 May 2025 12:54:43 +0000 (15:54 +0300)]
[#3734] Remove autotools
Razvan Becheriu [Tue, 27 May 2025 13:58:07 +0000 (16:58 +0300)]
[#3875] fixed args order in flex option hook lib logs
Razvan Becheriu [Mon, 26 May 2025 14:10:02 +0000 (17:10 +0300)]
[#3819] fix docs
Razvan Becheriu [Fri, 30 May 2025 06:26:37 +0000 (09:26 +0300)]
[#3643] log MT settings at info level - not experimental
Thomas Markwalder [Fri, 23 May 2025 19:51:11 +0000 (15:51 -0400)]
[#3906] Fix root-file handling
Added changelog delta
src/lib/util/filesystem.cc
PathChecker::validatePath() - catch root-file
src/lib/util/tests/filesystem_unittests.cc
TEST_F(PathCheckerTest, validatePathEnforcePath)
TEST_F(PathCheckerTest, validatePathEnforcePathFalse) -
added test cases
Thomas Markwalder [Fri, 23 May 2025 19:08:56 +0000 (15:08 -0400)]
[#3902] Added ChangeLog
new file: 3902-disable-security-restrictions-with-command-line-switch
Thomas Markwalder [Fri, 23 May 2025 18:36:30 +0000 (14:36 -0400)]
[#3902] More typos
modified: doc/sphinx/arm/agent.rst
modified: doc/sphinx/arm/ddns.rst
modified: doc/sphinx/arm/dhcp4-srv.rst
modified: doc/sphinx/arm/dhcp6-srv.rst
modified: doc/sphinx/arm/security.rst
modified: src/bin/agent/ca_messages.mes
modified: src/lib/d2srv/d2_messages.mes
modified: src/lib/util/filesystem.cc
modified: src/lib/util/filesystem.h
Thomas Markwalder [Fri, 23 May 2025 17:28:22 +0000 (13:28 -0400)]
[#3902] Initial review comments
Fixed ARM typos
modified: agent.rst
modified: ddns.rst
modified: dhcp4-srv.rst
modified: dhcp6-srv.rst
modified: security.rst
Thomas Markwalder [Fri, 23 May 2025 15:27:22 +0000 (11:27 -0400)]
[#3902] Recompiled messages
modified: src/bin/agent/ca_messages.cc
modified: src/bin/agent/ca_messages.h
modified: src/bin/dhcp4/dhcp4_messages.cc
modified: src/bin/dhcp4/dhcp4_messages.h
modified: src/bin/dhcp6/dhcp6_messages.cc
modified: src/bin/dhcp6/dhcp6_messages.h
modified: src/lib/d2srv/d2_messages.cc
modified: src/lib/d2srv/d2_messages.h
Thomas Markwalder [Fri, 23 May 2025 15:20:20 +0000 (11:20 -0400)]
[#3902] servers disable security on -X
modified: doc/sphinx/arm/agent.rst
modified: doc/sphinx/arm/ddns.rst
modified: doc/sphinx/arm/dhcp4-srv.rst
modified: doc/sphinx/arm/dhcp6-srv.rst
modified: doc/sphinx/arm/security.rst
modified: src/bin/agent/ca_messages.mes
modified: src/bin/agent/ca_process.cc
modified: src/bin/d2/d2_process.cc
modified: src/bin/dhcp4/dhcp4_messages.mes
modified: src/bin/dhcp4/main.cc
modified: src/bin/dhcp6/dhcp6_messages.mes
modified: src/bin/dhcp6/main.cc
modified: src/lib/config/unix_command_config.cc
modified: src/lib/config/unix_command_config.h
modified: src/lib/d2srv/d2_messages.mes
modified: src/lib/dhcpsrv/cfgmgr.cc
modified: src/lib/dhcpsrv/cfgmgr.h
modified: src/lib/dhcpsrv/legal_log_mgr.cc
modified: src/lib/dhcpsrv/legal_log_mgr.h
modified: src/lib/hooks/hooks_parser.cc
modified: src/lib/hooks/hooks_parser.h
modified: src/lib/hooks/tests/hooks_manager_unittest.cc
modified: src/lib/process/d_controller.cc
modified: src/lib/process/log_parser.cc
modified: src/lib/process/log_parser.h
modified: src/lib/util/filesystem.cc
modified: src/lib/util/filesystem.h
modified: src/lib/util/tests/filesystem_unittests.cc
Razvan Becheriu [Thu, 22 May 2025 12:13:58 +0000 (15:13 +0300)]
[#3831] fixed forensic log path in docs
Andrei Pavel [Thu, 22 May 2025 11:58:21 +0000 (14:58 +0300)]
[#3831] Remove "path" from default configs
Razvan Becheriu [Thu, 22 May 2025 09:34:42 +0000 (12:34 +0300)]
[#3831] fix arm env var name
Wlodek Wencel [Tue, 20 May 2025 15:34:01 +0000 (15:34 +0000)]
Release Changes 2.7.9
Andrei Pavel [Tue, 20 May 2025 10:56:58 +0000 (13:56 +0300)]
[#3892] Bump up library version numbers
Andrei Pavel [Tue, 20 May 2025 10:56:06 +0000 (13:56 +0300)]
[#3892] Make tools/bump-lib-versions.sh write to changelog_unreleased
Andrei Pavel [Tue, 20 May 2025 10:33:02 +0000 (13:33 +0300)]
[#3833] Remove unused LEGAL_LOG_DIR macros
Andrei Pavel [Tue, 20 May 2025 10:03:17 +0000 (13:03 +0300)]
[#3833] Add table in the security section
Francis Dupont [Tue, 20 May 2025 07:50:23 +0000 (09:50 +0200)]
[#3833] Added client before MySQL TLS settings
Francis Dupont [Tue, 20 May 2025 07:43:46 +0000 (09:43 +0200)]
[#3833] Added comma
Razvan Becheriu [Tue, 20 May 2025 04:48:32 +0000 (07:48 +0300)]
[#3833] addressed review comments
Razvan Becheriu [Mon, 19 May 2025 17:05:33 +0000 (20:05 +0300)]
[#3833] remove references to /tmp/
Razvan Becheriu [Mon, 12 May 2025 14:59:17 +0000 (17:59 +0300)]
[#3833] updated security doc
Thomas Markwalder [Mon, 19 May 2025 12:44:57 +0000 (08:44 -0400)]
[#3831] Removed /tmp example conf and .pre
Changes to be committed:
modified: kea4/dhcpv4-over-dhcpv6.json
modified: netconf/simple-dhcp4.json
modified: netconf/simple-dhcp6.json
modified: ../../src/bin/keactrl/kea-ctrl-agent.conf.pre
modified: ../../src/bin/keactrl/kea-dhcp-ddns.conf.pre
modified: ../../src/bin/keactrl/kea-dhcp4.conf.pre
modified: ../../src/bin/keactrl/kea-dhcp6.conf.pre
modified: ../../src/bin/keactrl/kea-netconf.conf.pre
Thomas Markwalder [Mon, 19 May 2025 12:38:55 +0000 (08:38 -0400)]
[#3831] Fixed changelog
Thomas Markwalder [Mon, 19 May 2025 12:35:48 +0000 (08:35 -0400)]
[#3831] Added ChangeLog
Razvan Becheriu [Mon, 19 May 2025 11:54:56 +0000 (14:54 +0300)]
[#3831] fix fuzz and permissions mask
Thomas Markwalder [Fri, 16 May 2025 18:58:57 +0000 (14:58 -0400)]
[#3831] Unrelated nit fixes
modified: doc/sphinx/arm/hooks.rst
modified: doc/sphinx/arm/logging.rst
Thomas Markwalder [Fri, 16 May 2025 18:28:47 +0000 (14:28 -0400)]
[#3831] ARM Updates
modified: doc/sphinx/arm/agent.rst
modified: doc/sphinx/arm/ddns.rst
modified: doc/sphinx/arm/dhcp4-srv.rst
Thomas Markwalder [Fri, 16 May 2025 16:56:47 +0000 (12:56 -0400)]
[#3831] Agent uses restricted socket paths
modified: ../../../doc/examples/agent/comments.json
modified: ../../../doc/examples/agent/simple.json
modified: ca_cfg_mgr.cc
modified: ca_command_mgr.cc
modified: simple_parser.cc
modified: tests/ca_cfg_mgr_unittests.cc
modified: tests/ca_command_mgr_unittests.cc
modified: tests/ca_controller_unittests.cc
modified: tests/get_config_unittest.cc
modified: tests/parser_unittests.cc
modified: tests/testdata/get_config.json
Thomas Markwalder [Fri, 16 May 2025 14:00:35 +0000 (10:00 -0400)]
[#3831] Add UT for env override
modified: Makefile.am
modified: meson.build
modified: unix_command_config_unittests.cc
Thomas Markwalder [Fri, 16 May 2025 13:39:55 +0000 (09:39 -0400)]
[#3831] Update ARM
modified: ../../sphinx/arm/ddns.rst
modified: ../../sphinx/arm/dhcp4-srv.rst
modified: ../../sphinx/arm/dhcp6-srv.rst
Thomas Markwalder [Fri, 16 May 2025 13:09:48 +0000 (09:09 -0400)]
[#3831] More UT fixes
modified: doc/examples/ddns/all-keys-netconf.json
modified: doc/examples/ddns/all-keys.json
modified: doc/examples/ddns/comments.json
modified: doc/examples/ddns/sample1.json
modified: doc/examples/ddns/template.json
modified: src/bin/d2/tests/d2_cfg_mgr_unittests.cc
modified: src/bin/d2/tests/d2_command_unittest.cc
modified: src/bin/d2/tests/get_config_unittest.cc
modified: src/bin/d2/tests/testdata/get_config.json
Thomas Markwalder [Fri, 16 May 2025 11:58:17 +0000 (07:58 -0400)]
[#3831] Fix UTs
modified: src/bin/dhcp4/tests/config_parser_unittest.cc
modified: src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
modified: src/bin/dhcp4/tests/dhcp4_test_utils.h
modified: src/bin/dhcp4/tests/get_config_unittest.cc
modified: src/bin/dhcp6/tests/dhcp6_test_utils.h
modified: src/bin/dhcp6/tests/get_config_unittest.cc
Thomas Markwalder [Thu, 15 May 2025 20:43:31 +0000 (16:43 -0400)]
[#3831] Initial impl of restricted ctl sockets
Working, have some UTs that still need to be fixed
/doc/examples/kea4/advanced.json
/doc/examples/kea4/all-keys-netconf.json
/doc/examples/kea4/all-keys-netconf.json
/doc/examples/kea4/all-keys.json
/doc/examples/kea4/comments.json
/doc/examples/kea4/config-backend.json
/doc/examples/kea4/ha-load-balancing-server1-mt-with-tls.json
/doc/examples/kea4/ha-load-balancing-server2-mt.json
/doc/examples/kea6/advanced.json
/doc/examples/kea6/all-keys-netconf.json
/doc/examples/kea6/all-keys.json
/doc/examples/kea6/comments.json
/doc/examples/kea6/config-backend.json
/doc/examples/kea6/ha-hot-standby-server1-with-tls.json
/doc/examples/kea6/ha-hot-standby-server2.json
removed /tmp path from socket-name
/src/bin/dhcp4/tests/config_parser_unittest.cc
/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
/src/bin/dhcp4/tests/dhcp4_srv_unittest.cc
/src/bin/dhcp4/tests/dhcp4_test_utils.cc
/src/bin/dhcp4/tests/dhcp4_test_utils.h
/src/bin/dhcp6/tests/config_parser_unittest.cc
/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
/src/bin/dhcp6/tests/dhcp6_srv_unittest.cc
/src/bin/dhcp6/tests/dhcp6_test_utils.cc
/src/bin/dhcp6/tests/dhcp6_test_utils.h
updated tests
/src/lib/config/Makefile.am
/src/lib/config/meson.build
defined CONTROL_SOCKET_DIR
/src/lib/config/tests/unix_command_config_unittests.cc
/src/lib/config/tests/unix_command_mgr_unittests.cc
updated tests
/src/lib/config/unix_command_config.*
UnixCommandConfig - added PathChecker singleton and methods
to set and validate socket path/permissions
/src/lib/util/filesystem.*
Added getPermsissions() and hasPermsission()
/src/lib/util/tests/filesystem_unittests.cc
new permissions tests
Andrei Pavel [Mon, 19 May 2025 08:53:04 +0000 (11:53 +0300)]
[#3831] Adapt Hammer to the /etc/kea-api-password change in kea-ctrl-agent
Francis Dupont [Fri, 16 May 2025 10:03:19 +0000 (12:03 +0200)]
[#3831] Applied kea-ctrl-agent.conf.pre update
Francis Dupont [Fri, 16 May 2025 09:59:23 +0000 (11:59 +0200)]
[#3831] Finished UTs
Francis Dupont [Fri, 16 May 2025 09:20:15 +0000 (11:20 +0200)]
[#3831] Checkpoint: did dhcp4 UTs
Francis Dupont [Fri, 16 May 2025 08:27:57 +0000 (10:27 +0200)]
[#3831] Checkpoint: fixes, still UTs to add
Francis Dupont [Fri, 16 May 2025 07:11:14 +0000 (09:11 +0200)]
[#3831] Fixed KEA_DHCP_DATA_DIR already set
Francis Dupont [Thu, 15 May 2025 19:01:23 +0000 (21:01 +0200)]
[#3831] Checkpoint: fixes
Francis Dupont [Thu, 15 May 2025 18:25:24 +0000 (20:25 +0200)]
[#3831] Checkpoint: code done, UTs to be updated
Francis Dupont [Thu, 15 May 2025 16:23:49 +0000 (18:23 +0200)]
[#3831] Restricted cache-write
Razvan Becheriu [Thu, 15 May 2025 09:29:02 +0000 (12:29 +0300)]
[#3831] update CA default config and fix dhcp examples
Francis Dupont [Wed, 14 May 2025 20:01:14 +0000 (22:01 +0200)]
[#3831] Spelling
Thomas Markwalder [Wed, 14 May 2025 18:56:56 +0000 (14:56 -0400)]
[#3831] Fixed UT build and minor nits
modified: doc/sphinx/arm/dhcp6-srv.rst
modified: doc/sphinx/arm/logging.rst
modified: src/bin/d2/tests/d2_process_tests.sh.in
modified: src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
modified: src/bin/dhcp6/json_config_parser.cc
modified: src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
modified: src/hooks/dhcp/forensic_log/libloadtests/load_unload_unittests.cc
modified: src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
modified: src/lib/hooks/hooks_parser.cc
modified: src/lib/process/log_parser.cc
modified: src/lib/process/log_parser.h
modified: src/lib/testutils/env_var_wrapper.h
modified: src/lib/util/filesystem.cc
Thomas Markwalder [Wed, 14 May 2025 18:08:38 +0000 (14:08 -0400)]
[#3831] Added path validation, updated tests
/src/hooks/dhcp/forensic_log/libloadtests/load_unload_unittests.cc
Updated tests
/src/hooks/dhcp/forensic_log/rotating_file.cc
RotatingFile::apply{) - fetch default from singleton
/src/hooks/dhcp/forensic_log/tests/legal_log_mgr_unittests.cc
TEST_F(LegalLogMgrTest, pathValidation)
TEST_F(LegalLogMgrTest, pathEnvVarOverride) - new tests
/src/lib/dhcpsrv/legal_log_mgr.*
LegalLogMgr::parseFile() - validate path
Updated the ARM.
Thomas Markwalder [Wed, 14 May 2025 14:44:19 +0000 (10:44 -0400)]
[#3831] Initial pieces for legal log restriction
/src/lib/dhcpsrv/Makefile.am
Changed LEGAL_LOG_DIR to use log vs lib
/src/lib/dhcpsrv/legal_log_mgr.*
LegalLogMgr - added PathChecker singleton and funcs
/src/lib/dhcpsrv/meson.build
Defined LEGAL_LOG_DIR
/src/lib/util/filesystem.*
PathChecker::validateDirectory() - new func
/src/lib/util/tests/filesystem_unittests.cc
TEST(PathChecker, validateDirectoryEnforcePath)
TEST(PathChecker, validateDirectoryEnforcePathFalse) - new tests
Thomas Markwalder [Wed, 14 May 2025 12:44:26 +0000 (08:44 -0400)]
[#3831] leaseX-write restricted to supported path
modified: hooks-lease-cmds.rst
modified: ../../../src/hooks/dhcp/lease_cmds/lease_cmds.cc
modified: ../../../src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds4_unittest.cc
modified: ../../../src/hooks/dhcp/lease_cmds/libloadtests/lease_cmds6_unittest.cc
Francis Dupont [Wed, 14 May 2025 09:50:52 +0000 (11:50 +0200)]
[#3831] C++17 clang fixes
Francis Dupont [Wed, 14 May 2025 09:50:24 +0000 (11:50 +0200)]
[#3831] Spelling
Thomas Markwalder [Tue, 13 May 2025 18:25:35 +0000 (14:25 -0400)]
[#3831] Remove paths from output in conf files
modified: src/bin/keactrl/kea-ctrl-agent.conf.pre
modified: src/bin/keactrl/kea-dhcp-ddns.conf.pre
modified: src/bin/keactrl/kea-dhcp4.conf.pre
modified: src/bin/keactrl/kea-dhcp6.conf.pre
modified: src/bin/keactrl/kea-netconf.conf.pre
Thomas Markwalder [Tue, 13 May 2025 17:53:15 +0000 (13:53 -0400)]
[#3831] Fix netconf UT test
/src/bin/netconf/tests/shtests/netconf_tests.sh.in
- export KEA_LOG_FILE_DIR
Thomas Markwalder [Tue, 13 May 2025 14:55:51 +0000 (10:55 -0400)]
[#3831] Fix log path in UTs
/doc/sphinx/arm/logging.rst
Updated logging section
/src/bin/admin/tests/memfile_tests.sh.in
/src/bin/shell/tests/shell_dhcp4_process_tests.sh.in
/src/bin/shell/tests/shell_dhcp6_process_tests.sh.in
export KEA_LOG_FILE_DIR
/src/lib/dhcpsrv/memfile_lease_mgr.cc
Memfile_LeaseMgr::factory() - fix throw to preserve error txt
/src/lib/process/Makefile.am
Define LOGFILE_DIR
Thomas Markwalder [Mon, 12 May 2025 20:04:23 +0000 (16:04 -0400)]
{3831] Logger output path restricted
Initial implementaion, still need docs and
autotools changes
meson.build
Appended "kea" to LOGDIR
/src/bin/agent/tests/ca_process_tests.sh.in
/src/bin/d2/tests/d2_process_tests.sh.in
/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
export KEA_LOG_FILE_DIR
/src/bin/dhcp4/tests/ctrl_dhcp4_srv_unittest.cc
/src/bin/dhcp4/tests/http_control_socket_unittest.cc
/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc
/src/bin/dhcp6/tests/http_control_socket_unittest.cc
Updated tests
/src/bin/dhcp6/tests/dhcp6_test_utils.*
Added log path stuff to BaseServerTest
/src/bin/keactrl/tests/keactrl_tests.sh.in
/src/bin/shell/tests/ca_basic_auth_tests.sh.in
/src/bin/shell/tests/d2_basic_auth_tests.sh.in
/src/bin/shell/tests/dhcp4_basic_auth_tests.sh.in
/src/bin/shell/tests/dhcp6_basic_auth_tests.sh.in
/src/bin/shell/tests/shell_ca_process_tests.sh.in
/src/bin/shell/tests/shell_d2_process_tests.sh.in
/src/bin/shell/tests/tls_ca_process_tests.sh.in
/src/bin/shell/tests/tls_d2_process_tests.sh.in
/src/bin/shell/tests/tls_dhcp4_process_tests.sh.in
/src/bin/shell/tests/tls_dhcp6_process_tests.sh.in
/src/lib/process/log_parser.*
Added PathChecker singleton,
LogConfigParser::getLogPath()
LogConfigParser::validatePath()
LogConfigParser::parseOutputOptions() - throws if
output uses an invalid path
/src/lib/process/meson.build
Defines LOGFILE_DIR
/src/lib/process/tests/log_parser_unittests.cc
Updated tests
Francis Dupont [Mon, 12 May 2025 19:49:43 +0000 (21:49 +0200)]
[#3831] Added data-directory in sample keywords
Thomas Markwalder [Mon, 12 May 2025 19:41:32 +0000 (15:41 -0400)]
[#3831] Nits
Thomas Markwalder [Mon, 12 May 2025 19:15:59 +0000 (15:15 -0400)]
[#3831] Minor nits
Thomas Markwalder [Mon, 12 May 2025 18:58:31 +0000 (14:58 -0400)]
[#3831] Addressed further comments
/doc/examples/kea6/all-keys-netconf.json
/doc/examples/kea6/all-keys.json
removed data-directory
/doc/sphinx/arm/dhcp6-srv.rst
Updated ARM
/src/bin/dhcp6/dhcp6_messages.*
Changed DHCP6_DATA_DIRECTORY_DEPRECATED
/src/bin/dhcp6/json_config_parser.cc
Removed dirExists() function
parsing logic errors on invalid data-directory
/src/bin/dhcp6/tests/config_parser_unittest.cc
Updated data-directory tests
Other minor cleanups
Francis Dupont [Mon, 12 May 2025 14:42:57 +0000 (16:42 +0200)]
[#3831] Removed extra end of line
Francis Dupont [Mon, 12 May 2025 14:36:53 +0000 (16:36 +0200)]
[#3831] Removed extra blank line
Francis Dupont [Mon, 12 May 2025 14:31:33 +0000 (16:31 +0200)]
[#3831] Added missing spaces
Francis Dupont [Mon, 12 May 2025 14:15:46 +0000 (16:15 +0200)]
[#3831] spelling
Thomas Markwalder [Fri, 9 May 2025 14:58:03 +0000 (10:58 -0400)]
[#3831] Addressed preliminary comments
Changes to be committed:
modified: src/lib/dhcpsrv/cfgmgr.h
modified: src/lib/hooks/tests/hooks_manager_unittest.cc
modified: src/lib/testutils/meson.build
modified: src/lib/util/tests/filesystem_unittests.cc
Thomas Markwalder [Fri, 9 May 2025 14:12:46 +0000 (10:12 -0400)]
[#3831] Updated ARM
modified: doc/sphinx/api-files.txt
modified: doc/sphinx/arm/dhcp4-srv.rst
modified: doc/sphinx/kea-messages.rst
Thomas Markwalder [Fri, 9 May 2025 13:22:52 +0000 (09:22 -0400)]
[#3831] Adde env_var_wrapper.cc to meson.build
modified: src/lib/testutils/meson.build
Thomas Markwalder [Thu, 8 May 2025 19:14:08 +0000 (15:14 -0400)]
[#3831] Error on bad lease file path
/doc/examples/kea4/all-keys-netconf.json
/doc/examples/kea4/all-keys.json
/doc/examples/kea4/dhcpv4-over-dhcpv6.json
/doc/examples/kea6/all-keys-netconf.json
/doc/examples/kea6/all-keys.json
/doc/examples/kea6/dhcpv4-over-dhcpv6.json
Remove "/tmp" from lease file names
/src/bin/admin/tests/memfile_tests.sh.in
/src/bin/dhcp4/tests/dhcp4_process_tests.sh.in
/src/bin/dhcp6/tests/dhcp6_process_tests.sh.in
export KEA_DHCP_DATA_DIR
/src/bin/shell/tests/dhcp4_basic_auth_tests.sh.in
/src/bin/shell/tests/dhcp6_basic_auth_tests.sh.in
/src/bin/shell/tests/shell_dhcp4_process_tests.sh.in
/src/bin/shell/tests/shell_dhcp6_process_tests.sh.in
/src/bin/shell/tests/tls_dhcp4_process_tests.sh.in
/src/bin/shell/tests/tls_dhcp6_process_tests.sh.in
/src/lib/dhcpsrv/dhcpsrv_messages.*
Replace WARN message with DHCPSRV_MEMFILE_FAILED_TO_OPEN error
/src/lib/dhcpsrv/memfile_lease_mgr.cc
Memfile_LeaseMgr::getDefaultLeaseFilePath()
- uses CfgMgr::getDataDir()
Memfile_LeaseMgr::initLeaseFilePath()
- call CfgMgr::validatePath() without try-catch
Memfile_LeaseMgr::factory()
- log error and rethrow
/src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
Added use of EnvVarWrapper
/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
Updated tests
TEST_F(MemfileLeaseMgrTest, defaultDataDir)
TEST_F(MemfileLeaseMgrTest, dataDirEnvVarOverride)
TEST_F(MemfileLeaseMgrTest, dataDirExplicitOveride)
- new tests
/src/lib/testutils/Makefile.am
Added env_var_wrapper.*
Thomas Markwalder [Tue, 6 May 2025 15:09:14 +0000 (11:09 -0400)]
[#3831] Fix UT Makefile.am files
Thomas Markwalder [Tue, 6 May 2025 14:00:35 +0000 (10:00 -0400)]
[#3831] Replaced CfgMgr::data_dir_ with PathChecker
/src/bin/dhcp4/tests/dhcp4_test_utils.cc
UpdatedModified BaseServerTest
/src/bin/dhcp4/tests/meson.build
Added DHCP_DATA_DIR
/src/bin/dhcp6/dhcp6_messages.*
DHCP6_DATA_DIRECTORY_DEPRECATED - new message
/src/bin/dhcp6/dhcp6_parser.yy
Add warning to data_dir parsing
/src/bin/dhcp6/json_config_parser.cc
Emit a warning if config contains data-directory
/src/bin/dhcp6/tests/Makefile.am
Added DHCP_DATA_DIR
/src/bin/dhcp6/tests/config_parser_unittest.cc
TEST_F(Dhcp6ParserTest, testDataDir) - updated test
/src/bin/dhcp6/tests/dhcp6_test_utils.cc
UpdatedModified BaseServerTest
/src/bin/dhcp6/tests/hooks_unittest.cc
LoadUnloadDhcpv6SrvTest now derives from BaseServerTest
/src/bin/dhcp6/tests/meson.build
Added DHCP_DATA_DIR
/src/lib/dhcpsrv/cfgmgr.*
Replace Optional<string> datadir_ with PathChecker
data_dir_checker_
CfgMgr::getDataDir() - updated
CfgMgr::validatePath() - added
/src/lib/dhcpsrv/srv_config.cc
SrvConfig::toElement() - remove output of data-directory
/src/lib/dhcpsrv/tests/Makefile.am
Added DHCP_DATA_DIR
/src/lib/dhcpsrv/tests/cfg_duid_unittest.cc
Updated absolutePath()
/src/lib/dhcpsrv/tests/cfgmgr_unittest.cc
Updated tests
/src/lib/dhcpsrv/tests/csv_lease_file4_unittest.cc
/src/lib/dhcpsrv/tests/csv_lease_file6_unittest.cc
/src/lib/dhcpsrv/tests/lease_file_loader_unittest.cc
/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc
Updated absolutePath()
/src/lib/dhcpsrv/tests/meson.build
Added DHCP_DATA_DIR
Thomas Markwalder [Mon, 5 May 2025 14:39:09 +0000 (10:39 -0400)]
[#3831] Refactored FileManager into PathChecker
Refactored to internally support env variable and explicit paths
modified:
src/lib/hooks/hooks_parser.cc
src/lib/hooks/hooks_parser.h
src/lib/util/filesystem.cc
src/lib/util/filesystem.h
src/lib/util/tests/filesystem_unittests.cc
Thomas Markwalder [Wed, 7 May 2025 19:08:49 +0000 (15:08 -0400)]
[#3830] Fixed netconf UT tests
/src/bin/netconf/tests/Makefile.am
/src/bin/netconf/tests/meson.build
Added NETCONF_HOOKS_TEST_PATH
/src/bin/netconf/tests/netconf_cfg_mgr_unittests.cc
NetconfParserTest - added set and reset of hooks path
TEST_F(NetconfParserTest, configParseHooks) - call setHooksTestPath()
Andrei Pavel [Wed, 7 May 2025 12:24:38 +0000 (15:24 +0300)]
[#3832] Meson: Add install_umask=0027
This makes directories 750 and files 640 by default.
Francis Dupont [Wed, 30 Apr 2025 08:37:22 +0000 (10:37 +0200)]
[#3832] Reindented
Francis Dupont [Tue, 29 Apr 2025 10:11:17 +0000 (12:11 +0200)]
[#3832] Extra fix
Francis Dupont [Tue, 29 Apr 2025 10:05:49 +0000 (12:05 +0200)]
[#3832] Added umask to admin and keactrl
Francis Dupont [Tue, 29 Apr 2025 09:36:52 +0000 (11:36 +0200)]
[#3832] Added umask 0027 setting
Francis Dupont [Tue, 29 Apr 2025 08:54:02 +0000 (10:54 +0200)]
[#3832] Checkpoint: removed #3050 and fixes
Thomas Markwalder [Mon, 28 Apr 2025 14:53:06 +0000 (10:53 -0400)]
[#3830] Removed obsolete UT
modified: dhcp_parsers_unittest.cc
Thomas Markwalder [Mon, 28 Apr 2025 13:03:30 +0000 (09:03 -0400)]
[#3830] Fix release mention in ARM
modified: hooks.rst