Werk #19886 · Aug 11, 26
Fix service discovery REST API permissions
Previously, the service discovery REST API endpoints (getting the discovery result, waiting for a discovery run to complete, and updating a service's discovery phase) required the "Read access to all hosts and folders" permission unconditionally. This permission is normally reserved for administrators.
As a result, users who could only access a host through their contact group's folder permissions - without holding the blanket "Read access to all hosts and folders" permission - were rejected with:
We are sorry, but you lack the permission for this operation. If you do not like this then please ask your administrator to provide you with the following permission: 'Read access to all hosts and folders'.
even though they were otherwise allowed to see and manage that host.
These endpoints now use the same per-host, contact-group-aware permission check already used by the host configuration REST API endpoints. Users with folder-scoped access can now run and inspect service discoveries via the REST API without needing the global "Read access to all hosts and folders" permission.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- REST API
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p12All Editions
- 2.4.0p36All Editions