Per-tenant visibility
Show each user only the queues they're allowed to see. One shared dashboard, per-request filtering.
See also: Visibility guard for the full reference.
From examples/with-fastify-visibility-guard (Fastify + cookie auth + JWT).
How the Fastify example wires it
The full example issues a signed JWT on login with an allowedQueues array, then the guard decodes the cookie and matches it against the queue name:
this.queue.name inside the guard gives you the queue the guard is attached to, so one function handles every queue.
Minimal Express sketch
Same idea, simpler auth:
Every API call passes through the guard. A hidden queue is invisible in the sidebar, absent from counts, and returns 404 on direct access.
Hot-path warning
The guard runs once per visible queue per request, and the UI polls. Don't do synchronous HTTP or DB calls inside it. Decode a JWT, pull a tenant ID from a cookie, check a map. That's the budget.