Skip to content

Only list workers of readable topologies on the supervisor page - #9095

Open
rzo1 wants to merge 1 commit into
masterfrom
fix/supervisor-page-readable-workers
Open

rzo1 wants to merge 1 commit into
masterfrom
fix/supervisor-page-readable-workers

Conversation

@rzo1

@rzo1 rzo1 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

getSupervisorPageInfo returned a worker summary for every topology assigned to the supervisor. For topologies the caller cannot read, it only left out componentNumTasks. Worker placement is otherwise only returned by getTopologyInfo and getTopologyPageInfo, which require read access to the topology. The supervisor page now matches them and omits the workers of topologies the caller is not allowed to read. It uses the existing filterAuthorized("getTopology", ...) check, and topologies that fail it are no longer loaded at all.

The supervisor summary on the same page still reports the node's aggregate slot, memory and CPU usage, so the capacity view is unchanged. Admins and users with read access see the same page as before.

docs/STORM-UI-REST-API.md now says the workers list is limited to readable topologies.

Extends NimbusClojurePortTest. The existing supervisor page test now also asserts the returned worker, and a new test covers a caller without read access.

@rzo1 rzo1 added this to the 3.3.0 milestone Sep 18, 2026
@rzo1 rzo1 added the bug label Sep 18, 2026
@rzo1 rzo1 self-assigned this Sep 18, 2026
getSupervisorPageInfo returned a worker summary for every topology
assigned to the supervisor and only left out the per-component task
counts for topologies the caller cannot read. Worker placement is
otherwise only returned by getTopologyInfo and getTopologyPageInfo,
which require read access to the topology, so the supervisor page is
now consistent with them and omits the workers of topologies the
caller is not allowed to read.

The supervisor summary on the same page still reports the aggregate
slot, memory and CPU usage of the node, so the capacity view is
unchanged. Admins and users with read access see the same page as
before.
@rzo1
rzo1 force-pushed the fix/supervisor-page-readable-workers branch from ae78ca8 to 62c8135 Compare September 18, 2026 17:24

@GGraziadei GGraziadei left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rzo1 this PR correctly adds the check on user's topologies. Thanks, LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants