Skip to content

Admin portal: embedding sites list #425

Open

Description

@neuromechanist

The observability dashboard (nemarOrg/nemar-observability, PR #98, ADR 0002) no longer names embedding sites on the public page, because Referer is client-controlled and a name there is spoofable and can deface the page.
Admins can read the full list today through the existing bearer drill-down:

GET https://dashboard.nemar.org/observability/api/drilldown/embed-sites?start=YYYY-MM-DD&end=YYYY-MM-DD

It returns every host with embedded loads, opened-directly loads and other loads, flags hosts the public page counts as unknown or local, and is no-store.
The dashboard's "Embedding sites" card links to the admin portal for administrators, as the other drill-down tiles do, but the portal has no screen for this list.

  • Add an admin portal page (admin and owner roles only) that shows the embedding site list from the drill-down, with a date range.
  • Decide how the portal authenticates to the Worker: the dashboard's drill-down delegates a bearer API key to /users/me, and the portal's session cookie is host-scoped to app.nemar.org, so a server-side call with an admin key, or a portal endpoint that proxies the admin's own key, is needed.
  • Treat the hosts as claims, not facts: say so on the page.

Refs nemarOrg/nemar-observability#97.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions