Skip to content

feat(controlplane): add queue monitoring to admin dashboard#2623

Open
mekilis wants to merge 7 commits intomainfrom
smart/queue-monitoring-admin-ui
Open

feat(controlplane): add queue monitoring to admin dashboard#2623
mekilis wants to merge 7 commits intomainfrom
smart/queue-monitoring-admin-ui

Conversation

@mekilis
Copy link
Copy Markdown
Collaborator

@mekilis mekilis commented Apr 14, 2026

Summary

  • add queue monitoring admin UI and embedded Asynqmon route flow with authenticated session mint/revoke endpoints
  • wire control-plane middleware/routes for cookie-gated embed access and standard auth on direct monitoring route
  • harden supporting flows: API options repo initialization, logout/session handling, admin role refresh stability, and queue monitoring UX polish (wider layout, fullscreen preference, explicit refresh reload)

Test plan

  • go build ./...
  • golangci-lint run ./...
  • cd web/ui/dashboard && npx ng build --configuration=development
  • verify Admin -> Queue monitoring auto-loads iframe and Refresh forces reload
  • verify /queue/monitoring/ requires API auth and /queue/monitoring/embed/* uses session cookie flow
  • verify logout revokes queue monitoring session and refresh/restart behavior is consistent

Add an admin queue monitoring experience with embedded Asynqmon session routing, plus auth/session lifecycle fixes to keep refresh, restart, and logout behavior consistent.
Comment on lines +121 to +129
http.SetCookie(w, &http.Cookie{
Name: queueMonitoringCookieName,
Value: value,
Path: queueMonitoringCookiePath,
Expires: expiry,
MaxAge: int(queueMonitoringCookieTTL.Seconds()),
HttpOnly: true,
SameSite: http.SameSiteLaxMode,
})
Comment on lines +145 to +152
http.SetCookie(w, &http.Cookie{
Name: queueMonitoringCookieName,
Value: "",
Path: queueMonitoringCookiePath,
MaxAge: -1,
HttpOnly: true,
SameSite: http.SameSiteLaxMode,
})
Set queue monitoring session cookies as Secure for HTTPS requests (including TLS-terminating proxy headers) while keeping local HTTP development functional.
@mekilis mekilis changed the title feat(controlplane): add queue monitoring to admin dashboard (PDE-713) feat(controlplane): add queue monitoring to admin dashboard Apr 14, 2026
@frain-dev frain-dev deleted a comment from linear bot Apr 14, 2026
mekilis added 2 commits April 15, 2026 08:53
Avoid recovering admin route access from cached roles on membership fetch errors and set queue session Secure cookies based on TLS/deployment environment without trusting forwarded proto headers directly.
Use the authenticated dashboard access token for /queue/monitoring/session instead of portal-link fallbacks, and normalize tokens to avoid malformed Authorization headers causing 401s.
mekilis added 3 commits April 17, 2026 15:01
…link

Rename the queue monitoring fullscreen action labels for clarity and remove the legacy direct Asynqmon button so the footer keeps only refresh and fullscreen controls.
Add the rebuilt UI artifact so the queue monitoring dashboard source changes are reflected in the embedded control plane assets.
@mekilis mekilis enabled auto-merge April 17, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants