Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: e8ef180b7cd7d3ba7ff788709c3ce9b58f491016
https://github.com/Checkmk/checkmk/commit/e8ef180b7cd7d3ba7ff788709c3ce9b58…
Author: Gav <gavin.mcguigan(a)checkmk.com>
Date: 2023-10-13 (Fri, 13 Oct 2023)
Changed paths:
A .werks/16139
M cmk/gui/plugins/openapi/endpoints/notification_rules/common_schemas.py
M cmk/gui/plugins/wato/notifications.py
M tests/unit/cmk/gui/plugins/openapi/test_notification_rules.py
Log Message:
-----------
16139 FIX notifications: adjust regex pattern
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.
Change-Id: I2a0f9e7a2e098241eddc75969c6a51f6bf955cb9
Commit: 109d944810e67206177c4c77a5f0ac592432eb4f
https://github.com/Checkmk/checkmk/commit/109d944810e67206177c4c77a5f0ac592…
Author: Gav <gavin.mcguigan(a)checkmk.com>
Date: 2023-10-13 (Fri, 13 Oct 2023)
Changed paths:
A .werks/16155
M cmk/gui/plugins/openapi/endpoints/notification_rules/__init__.py
M cmk/gui/plugins/openapi/endpoints/notification_rules/common_schemas.py
M cmk/gui/plugins/openapi/endpoints/notification_rules/request_example.py
M cmk/gui/plugins/openapi/endpoints/notification_rules/response_schemas.py
M cmk/gui/wato/pages/notifications.py
M cmk/gui/watolib/notifications.py
M cmk/gui/watolib/user_scripts.py
M cmk/gui/watolib/users.py
M cmk/utils/type_defs/__init__.py
R cmk/utils/type_defs/notification_plugin_api_types.py
M cmk/utils/type_defs/notify.py
M cmk/utils/type_defs/rest_api_types/notifications_rule_types.py
M cmk/utils/type_defs/rest_api_types/notifications_types.py
M tests/unit/cmk/gui/plugins/openapi/test_notification_rules.py
Log Message:
-----------
16155 FIX rule_notifications: allow 3rd party plugins via the REST-API
This werk introduces a fix that allows rule notifications to use
3rd party / custom plugins.
CMK-12565
SUP-15947
Change-Id: I3be10594bcd039d2e73ce2f5a93a38513d390221
Compare:
https://github.com/Checkmk/checkmk/compare/69b172f48e8d...109d944810e6