Werk #18002: addition of configuration files validation

Component Setup
Title addition of configuration files validation
Date May 16, 2025
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This werk introduces a validation mechanism for configuration files. Configuration file content can change under various conditions such as accidential changes from individual functions, leading to errors when features load configuration files with content or structure diverging from internal expectations. The new configuration validation mechanism enables users to independently verify content outside any product context. This mechanism is integrated into the update actions flow and warns users of discrepancies between expected and actual content without interrupting the update process. The mechanism can also be invoked manually via the cmk-validate-config command.

Included files for validation: - roles - groups (both locations) - passwords - notifications - tags - sites - broker_connections - user_connections - users - contacts - configuration_bundles - connections - timeperiods - rules (outer format)

To the list of all Werks