Werk #16719: Prevent creating invalid labels

Component REST API
Title Prevent creating invalid labels
Date Nov 27, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p22 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Previously it was possible to create hosts with invalid label values containing one or more colons, for example

my_label: this:is:not:correct

This change implements a check when creating or editing hosts in the Rest API to prevent the use of invalid label values.

To the list of all Werks