Skip to Content
AgentShield
Operations

Dashboard

The AgentShield operations console. Sections, role-aware access, approvals, agent lifecycle, policies, alerts, evidence, and how the console protects sessions.

The dashboard is a Next.js operations console for humans. It talks only to the control plane, through its own server routes, so the browser never holds a bearer token and the console never holds agent keys.

npm run dev --workspace @agentshield/dashboard     # http://127.0.0.1:3000

In Compose and Kubernetes it runs as the dashboard service on port 3000.

Sections

SectionWhat you can doRoles
OverviewActive agents, waiting approvals, open incidents, tool reliability for the last hour, event mix. Events stream live and fall back to polling every five secondsAll
ApprovalsReview pending requests with tool, operation, resource, redacted arguments, policy reason, and expiry. Approve (with confirmation) or reject. Recent decisions belowowner, admin, approver
AgentsRegister a public key, rotate it, suspend, resume, revoke (with confirmation)List: all. Register: owner, admin, operator. Lifecycle: owner, admin
PoliciesRead the current document, edit as JSON, save a new version, or create an organization or agent policy. Lists are checked before sending; the control plane checks againRead: all. Edit: owner, admin
ChaosRun a catalog scenario against the gateway and read recent resultsowner, admin
AuditLatest audit links and head exportowner, admin, auditor
AlertsFlagged content with rule, agent, call, JSON path, and excerpt. Acknowledge or resolve. Open the evidence bundle after its hash is checkedRead: owner, admin, auditor. Change: owner, admin
MembersAdd people, change roles, disable or enable. With mail, invitations show as pending with a resend button; without mail, the temporary password is shown onceowner, admin
AccountName, role, session expiry; change password (signs out other sessions)All

The console reads the caller's role from GET /api/v1/sessions/current and shows only what that role may use. lib/permissions.ts mirrors the control plane's role decorators and is tested for every role. The control plane still enforces every rule; hiding is a usability feature, not the control.

Approving a request

  1. Open Approvals. Each pending row shows exactly what will run: tool, operation, resource, and the redacted arguments, plus the policy reason and expiry.
  2. Choose Approve and confirm, or Reject.
  3. The agent's next execute call with the approval id runs the call once. Integrations configured with approval_timeout pick it up automatically.

You cannot approve a request after it expires, and a user whose id equals the agent id cannot approve it.

Session security

ControlDetail
Cookieagentshield_session, HttpOnly, SameSite=Strict, expires with the session; Secure when NODE_ENV=production
Sign-outDELETE /api/session ends the session on the control plane, then clears the cookie, so a copied cookie stops working
Proxy scope/api/control/v1/... forwards only to /api/v1/.... Paths outside v1, or with segments that are not plain identifiers, return 404
CSRFPOST, PUT, PATCH, and DELETE must carry an Origin equal to the console's, or Sec-Fetch-Site: same-origin when no Origin is sent; otherwise 403 before the control plane is called
OriginTaken from Host. Behind a proxy that rewrites Host, set DASHBOARD_ORIGIN
StreamsEvent streams pass through without buffering

Invitations

An invitation email links to /invite#token=…. The token is in the URL fragment, which browsers never send to servers, and the page removes it from the address bar as soon as it reads it. The page shows who the invitation is for and lets them choose a password once.

A member who signed in with a temporary password sees only a password form until they replace it.

Server routes

RoutePurpose
POST /api/session, DELETE /api/sessionSign in and out
/api/control/v1/...Authenticated proxy to the control plane
POST /api/invitation/lookup, POST /api/invitation/acceptPublic invitation calls, same origin check
GET /api/healthThe console's own status

Was this page helpful?

On this page