REST API: Ability to edit rule endpoint without modifying the existing password

7 votes

Since https://checkmk.com/werk/16111 it is possible to edit a rule via REST API, but if the rule contains a explicit password it is only possible to overwrite the password via API and not to modify the rule without changing the password.

Possible Solution Idea (SUP-27733):
Due to https://checkmk.com/werk/13722 passwords aren't accessable via REST API.
If the given length of a password in the PUT Rule Endpoint has same length as the password stored in rules.mk and the password via PUT Endpoint is completly with * than use the old password from rules.mk and not the ***** Password from PUT request. Otherwise it is not possible to modify these rules.

Password store is working correctly.

Under consideration RestAPI Suggested by: Sebastian Häger Upvoted: 17 Feb Comments: 0

Comments: 0