Werk #23156 · Nov 17, 26
REST API: check password editor and share groups again
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.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- REST API
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p22All Editions