Werk #16723: remove invalid host labels on site update

Component Site management
Title remove invalid host labels on site update
Date Mar 10, 2025
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p29 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

In Werk #16719 a validation was introduced in the REST API that prevents entering host labels with : in the name or value (e.g.: {‘ke:y’: ‘value’, ‘createdAt’: ‘12:00:00’}. However, it was not taken into account that there may be invalid labels entered in a lawful way before this Werk, leaving it up to the user to remove such labels.

This Werk introduces an upgrade hook that removes invalid labels automatically when the site is upgraded to a new version.

To the list of all Werks