Werk #16139: notifications: adjust regex pattern

Component REST API
Title notifications: adjust regex pattern
Date Sep 28, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This werk addresses an issues found by the QA team with regards to the regex pattern we use to match valid PushOverPlugin api_keys and also the user group key. Previously we used

[a-zA-Z0-9]{30}

which will match any string that has 30 or more characters and numbers. This is partial match.

We now do the following

^[a-zA-Z0-9]{30,40}$

which will match the whole string. We only allow characters and numbers with the whole string having to be of length min 30 and max 40 characters.

To the list of all Werks