Werk #23156: REST API: check password editor and share groups again
| Component | REST API | ||||
| Title | REST API: check password editor and share groups again | ||||
| Date | Nov 17, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
A REST API user without the permission to edit all passwords could create
a password that is editable by a contact group they are not a member of.
The password was saved, but the request crashed with KeyError because
the user could no longer see it. The same happened when such a user left
editable_by out, as it defaults to the admin group. Unknown groups were
accepted, too.
As in Checkmk 2.4.0, the REST API now checks editable_by and shared against the contact groups the user may use, and rejects other values with a 400 error.
A user without that permission now has to name editable_by when creating a password.