Werk #22792 · Nov 21, 26
Real-time checks: rule values in the REST API use the new password format
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
The rule Real-time checks has been migrated to the new rule set API.
This is incompatible for users that configure this rule via REST API.
Existing rules are migrated during the update, so baked agents and the real-time checks helper keep working without any action on your side.
In the GUI, a new rule no longer comes with a random pre-shared secret: if you enable encryption, you have to enter one yourself.
REST API
If you create or edit rules of this rule set via the REST API, value_raw
must use the new format for the pre-shared secret:
("cmk_postprocessed", "explicit_password", (<id>, <secret>))instead of("password", <secret>)("cmk_postprocessed", "stored_password", (<password store id>, ""))instead of("store", <password store id>)
Values in the old format are rejected with HTTP 400. The title of the
error names the field, the detail explains the problem, for example "No
password provided".
For example, {"encryption": ("enabled", ("password", "s3cr3t")), ...} is
now rejected. Use {"encryption": ("enabled", ("cmk_postprocessed",
"explicit_password", ("", "s3cr3t"))), ...} instead.
Checkmk generates the ID of an explicit password, so the rule you read back
may contain a different ID than the one you sent.
In addition, the entries of Create real-time data executing the following agent plug-ins must not be empty. Previously, empty entries were dropped silently.
When you read a rule, the pre-shared secret is masked as ******. If you
modify such a rule and write it back, send the secret again. Otherwise
****** becomes the new pre-shared secret.
Details
- Class:
- New Features
- Level:
- Trivial
- Component:
- Agents
- Versions:
- 3.0.0b1Not yet releasedProUltimateUltimate + MTCloud