Let members with service access see container monitoring

fix(monitoring): let members with service access see container monitoring (#5716)
Let members with service access see container monitoring9f6e82-fix-let-members-with-service-access-see-cve-2026-129316fixlet members service access see container

Committed by Gourav224

commit message
fix(monitoring): let members with service access see container monitoring (#5716)

* fix(monitoring): let members with service access see container monitoring
 
The Monitoring tab opened /listen-docker-stats-monitoring without a
serviceId, so the socket required the docker permission and closed with
"Not authorized" for members granted the service. Pass the serviceId from
every service page, as the Logs tab does.
 
With a serviceId, the socket now also checks that the requested container
belongs to that service (app name for applications and databases, project
or namespace label for compose and stacks), and never serves host stats.
 
Closes #5674
 
Co-Authored-By: Claude Opus 5.5 <[email protected]>
 
* fix(monitoring): reject unknown appType on the service-scoped stats path
 
appType comes from the URL, so an unexpected value skipped every
ownership filter and returned the first running container's stats.
 
Co-Authored-By: Claude Opus 5.5 <[email protected]>
 
---------
 
Co-authored-by: Claude Opus 5.5 <[email protected]>

Editor assessment

This commit patches CVE-2026-129316. A good message built from two squashed steps. The body explains the first: the Monitoring tab opened the stats socket without a serviceId, so it demanded the docker permission and failed for members who legitimately held service access. It then covers the security half - with a serviceId the socket verifies the container belongs to that service and never serves host stats - plus the follow-up rejecting an unexpected appType from the URL, which had skipped every ownership filter. The PR number in the subject is the only noise.

Browse categories

More fix examples · Back to search