Skip to content

Wrong route check on throughput:view#3059

Open
ramonsmits wants to merge 1 commit into
masterfrom
fix-throughput-permission-gate
Open

Wrong route check on throughput:view#3059
ramonsmits wants to merge 1 commit into
masterfrom
fix-throughput-permission-gate

Conversation

@ramonsmits

Copy link
Copy Markdown
Member

ThroughputStore.refresh gated the licensing/settings/test call on viewLicense, but the endpoint requires error:throughput:view. Gate on viewThroughput instead, so the request is blocked when the manifest lacks the throughput route. Adds manifest-driven regression tests.

ThroughputStore.refresh gated the licensing/settings/test call on
ApiRoutes.viewLicense (error:licensing:view). ServiceControl guards that
endpoint with error:throughput:view instead. The gate must key on the
exact route the endpoint requires, independent of which other routes the
manifest grants — role-to-route bindings are not fixed and become fully
flexible in future ServiceControl versions.

The auto-refresh is mounted by ConfigurationMenuItem (always rendered),
so a stale gate fired the request on load for any user whose manifest
lacked the throughput route.

Gate on ApiRoutes.viewThroughput instead. Add manifest-driven regression
tests: granting the license route alone must not unlock the call; granting
the throughput route must.
@ramonsmits ramonsmits force-pushed the fix-throughput-permission-gate branch from 139b881 to cba900e Compare July 8, 2026 13:44
@ramonsmits ramonsmits marked this pull request as ready for review July 8, 2026 14:02
@ramonsmits ramonsmits requested review from WilliamBZA and dvdstelt July 8, 2026 14:03
@ramonsmits ramonsmits changed the title Gate throughput connection test on throughput:view Wrong route check on throughput:view Jul 8, 2026
@ramonsmits ramonsmits added the Type: Bug Type: Bug label Jul 8, 2026
@WilliamBZA WilliamBZA added this to the 2.9.1 milestone Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Type: Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants