Werk #17014: notification_rules: auth value should be a required field when auth is enabled

Component REST API
Title notification_rules: auth value should be a required field when auth is enabled
Date Jun 5, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Previously, when you created a notification rule via the REST-API using the 'mail' plugin, the value of the 'auth' field within the "enable_sync_smtp" schema was not a required field. This is incorrect. If 'auth' is enabled, then the value of 'auth' should be a required field. This werk now addresses this issue.

e.g

"enable_sync_smtp": {
    "state": "enabled",
    "value": {
        "auth": {
            "state": "enabled",
            "value": {"method": "plaintext", "password": "1234", "user": "user_a"},
         },
         "encryption": "ssl_tls",
         "port": 25,
         "smarthosts": ["abc", "def"],
    },
}

To the list of all Werks