# dashboard

Fleetlayer's web page for people - every machine, session, event and approval, live, with a graph of the fleet.

| | |
|---|---|
| Kind | Plugin |
| Roles | None (a service the node runs) |
| Status | beta |
| Ships with Fleetlayer | Yes |
| Licence | FSL-1.1-ALv2 (source-available) |
| Maintainer | Fleetlayer |
| Source | https://github.com/fleetlayer/fleetlayer/tree/main/plugins/dashboard |
| Install | In every Fleetlayer release |
| Command | `fleetlayer-dashboard` |
| Platforms | Linux, macOS |
| Works with | Fleetlayer 0.4.0 and later |
| Plugin protocol | version 1 |
| Needs | a delegate token from the control plane; Fleetlayer's sign-in service (or a login key) |
| Grants | `access.check` |

## What it does

Machines with their nodes, versions, heartbeats and plugin status; sessions grouped by whether they wait on you;
live events and who they reached; approvals and admin windows; readings; and a graph of nodes, plugins and shared
tools. `fleetlayer-dashboard demo` serves a made-up fleet to try it. Anything it shows or does, the CLI and the API
do too.

## Setup

It comes with Fleetlayer, so there's nothing else to install. To start from:

```yaml
plugins:
  - name: dashboard
    command: fleetlayer-dashboard
    grants: [access.check]
    config:
      listen: 127.0.0.1:0
      base_url: https://dashboard.example
      control:
        url: https://control.example
        token_file: ~/.config/fleetlayer/dashboard/control-token
      signin:
        issuer: https://signin.example
        secret_file: ~/.config/fleetlayer/signin-clients/dashboard
```

## What it can read and do

Reads only through the control plane's API with a token of its own. With a delegate token each signed-in person decides requests and closes windows as themselves, checked and recorded by the control plane, and opening an admin window takes their passkey. Every page checks the person's access again (within a minute), forms carry a per-session token, and it keeps no state.

More: https://fleetlayer.ai/docs/dashboard.md.
