Werk #18491: Rulesets: Validate regex pattern in explicit host conditions
| Component | Setup | ||||
| Title | Rulesets: Validate regex pattern in explicit host conditions | ||||
| Date | Mar 12, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
When entering an explicit host condition in a ruleset, values starting with
~ are interpreted as regular expressions. Previously, no validation was
performed on these regex patterns, so an invalid regex would be accepted
silently and could cause unexpected behavior at runtime.
With this fix, the regex pattern is validated at input. If the pattern is invalid, a proper error message is shown to the user immediately, preventing invalid configurations from being saved.