The operator dashboard is Guardian's read-and-administer surface for
humans. It lives in the same Guardian server process as the gRPC API but
uses a separate auth domain and a separate set of HTTP routes under
/dashboard/*. This doc explains the trust model, how operators enroll,
how the local smoke example wires it up, and how the permission vocabulary
is structured.
Companion docs:
A small HTTP API + browser UI that lets a known set of operators:
- list and inspect accounts known to this Guardian
- read per-account and global delta / proposal feeds
- read account snapshots and metadata
- (gated by permission) pause/unpause accounts
It is not part of the per-account gRPC contract — clients of Guardian don't talk to it. Only operators do.
Two auth domains coexist in the same server process:
flowchart LR
subgraph PerAccount["Per-account API (gRPC + HTTP)"]
A1["Account-owned Falcon/ECDSA key signs each request"]
A2["Credentials verified via metadata/auth"]
end
subgraph Operator["Operator dashboard (/dashboard/*)"]
B1["Operator Falcon key signs a challenge"]
B2["Verified against the allowlist"]
B3["Session cookie issued, used for follow-up calls"]
end
PerAccount -. shares ACK signer for responses .-> Operator
Code references:
- Allowlist loader:
crates/server/src/dashboard/allowlist.rs - Challenge/session issuance:
crates/server/src/dashboard/authz.rs - Middleware that gates
/dashboard/*:crates/server/src/dashboard/middleware.rs - Permission vocabulary:
crates/server/src/dashboard/permissions.rs
The dashboard never sees an account's key material and an account's client never sees an operator's. They are separate by construction.
sequenceDiagram
participant O as Operator (browser)
participant S as Guardian server
O->>S: GET /dashboard/auth/challenge<br/>(public key commitment)
S->>S: Check pubkey is in allowlist
S-->>O: Challenge nonce (TTL 5m)
O->>O: Sign challenge with Falcon SK
O->>S: POST /dashboard/auth/session<br/>(signed challenge)
S->>S: Verify signature, mint session
S-->>O: Set-Cookie: guardian_operator_session (TTL 8h)
O->>S: GET /dashboard/accounts (cookie attached)
S->>S: middleware: require_dashboard_session
S-->>O: paginated accounts
Defaults
(crates/server/src/dashboard/config.rs):
- Challenge TTL: 5 minutes
- Session TTL: 8 hours
- Max outstanding challenges per operator: 8
- Cookie name:
guardian_operator_session - Per-commitment auth budget: 6 burst / 30 per minute, partitioned by
GUARDIAN_MAX_REPLICASin multi-replica deployments
Session records use the configured coordination backend. Postgres-backed deployments share sessions across replicas, so ALB stickiness is not required and task replacement does not invalidate an unexpired session. Filesystem-backed development uses the in-memory coordination backend and remains single-process.
For multi-replica deployments where you want cursors to validate across
replicas, set GUARDIAN_DASHBOARD_CURSOR_SECRET to a 32-byte hex value
shared by every task (config.rs:38).
All list endpoints
(services/dashboard_pagination.rs)
share the same query-parameter shape:
limit— integer in[1, 500]. Default50when omitted or empty. Out-of-range or non-integer values return HTTP 400invalid_limit.cursor— opaque, HMAC-signed token returned by the previous page. Signed with the cursor secret (see above); tampered, expired, or wrong-kind cursors return HTTP 400invalid_cursor. Omit to start from the first page.
When GUARDIAN_DASHBOARD_CURSOR_SECRET is unset, each task generates a
random secret at startup. Cursors then become invalid the moment a
client is routed to a different task — set the env var on any
multi-replica deployment.
The global-delta feed
(GET /dashboard/deltas)
also accepts a status filter
(services/dashboard_global_deltas.rs):
- Allowed values:
candidate,canonical,retained,discarded(comma-separated to combine, e.g.?status=candidate,canonical). - Omitted or empty → all statuses.
- Duplicates within the filter are silently coalesced.
- Any other token returns HTTP 400
invalid_status_filter.
Present retained rows as "Unresolved / account unlocked", never as
failed: the guardian stopped actively verifying and released the account
slot, but the on-chain outcome is still uncertain and background
reconciliation may promote the row to canonical until its retention
TTL expires. The triage fields:
status_reason(feed + detail): why the row left the active candidate path —retry_exhausted/diverged/orphanedonretainedrows (adivergedrow that later reconciles is direct evidence the divergence verdict was spurious; anorphanedrow was queued behind a candidate that was parked, discarded, or abandoned, issue #17),client_abandonedondiscardedrows.retained_expires_at(detail): when the recovery net gives up for good. Retained age isnow − status_timestamp.base_matches_stored_state(detail): whether the row builds directly on the stored account state.falsedoes not by itself mean the row is dead: reconciliation can still promote it when other retained rows on the account chain from the stored state to its base, as for anorphanedsuccessor whose predecessor is promoted first. Afalserow with no such chain can only age out.- The latest reconciliation activity is in the worker logs as stable
event=reconcile_*records (see TROUBLESHOOTING.md).
GET /dashboard/info exposes the reconciliation settings
(retained_ttl_seconds, reconcile_interval_seconds,
reconcile_page_size) so operators can tell why retained rows are or
are not being reconsidered — note that individual accounts back off as
their recoverable rows age, so a retained row being probed less often
than the configured interval is expected. It also reports
max_pending_candidates_per_account, the per-account candidate queue
depth (issue #17; 1, the default, means no queueing):
has_pending_candidate on an account means at least one candidate is
queued, and candidate rows for one account may number up to this
depth. backend.release_sweep
exposes the release sweep rotation settings (rotation_seconds,
max_rate_per_second, recheck_seconds, confirmations, issue
#434; null when the rotation is disabled). backend.block_watch
(issue #585; null when block watch is disabled) reports the
committed-block feed: transport_mode (auto, stream, poll), the
shared cursor last_block and the observation backlog
pending_observations (on every replica), the settings
poll_seconds, stall_seconds and max_catchup_blocks, and, on the
replica holding the release sweep lease only, the open transport
(stream or poll), the chain_tip it last saw and lag_blocks
(null elsewhere). A released_at set by the
sweep rather than by a canonicalized switch delta is distinguishable on
the audit trail: the accounts.release row carries
detected_by: proposal_match (with the proposal_id the chain proved
executed, the switch_commitment it reached and, when the switch was
found in the account's transaction history rather than at the chain
head, its switch_block_num), detected_by: recoverable_delta (the
same, with the delta_nonce of a switch delta canonicalization
retained or the client abandoned) or detected_by: chain_sweep (with
the on-chain / stored commitment pair) instead of detected_by: delta
and the delta nonce. The sweep writes detected_by: delta itself only
for a canonicalized switch delta whose own release write failed. Every
accounts.release row also says what found the switch: source: "push_path", "rotation" (the walk of the fleet or a confirmation
re-check) or "block_watch", the last with the observed_block_num of
the block that showed the account move (when the candidate match found
the post-state at that block, switch_block_num is that block too).
GET /dashboard/stats (issue #371) answers the two questions the
cross-operator dashboard asks of every Guardian — how many accounts of
what kind and what assets are under guard — in one request. Before
it existed the dashboard walked the full account list and fetched one
snapshot per recently-updated account (≈1,100 requests per refresh on a
2,400-account server), which the code-default HTTP rate limits cut off.
The response carries:
accounts— unfiltered counts:total, mutually exclusiveby_lifecycle(releasedifreleased_atis set, elsepausedifpaused_atis set, elseactive),by_auth_method(keysmiden_falcon,miden_ecdsa,midenfor accounts whose cosigners each carry their own scheme, andevm),by_auth_method_and_signer_count(so a consumer can reproduce its own account-shape heuristics without Guardian claiming what client a shape belongs to), andupdated_within_7d/updated_within_30danchored toas_of.assets— Miden vault totals over eligible accounts: fungible base units perfaucet_idas base-10 decimal strings (sums are computed in 128-bit and may exceedu64/ JavaScript safe integers) and non-fungible counts perfaucet_id. No decimals normalization, token metadata, pricing, or fiat valuation — those stay consumer concerns.- Coverage:
eligible,covered,skipped(by stable reason —state_unavailablefor a missing state row,state_undecodablefor a row that does not decrypt or does not deserialize) andcomplete.covered + Σskipped == eligiblealways holds, and any skipped account makescomplete: false. A missing or corrupt state is never reported as a zero balance. as_ofandversionof the published snapshot, the echoedupdated_since(ornull), and the configuredrefresh_interval_seconds.accountsandassetsare published atomically, so there is no partial-degradation marker on this endpoint; the inventory aggregates the same walk feeds into/dashboard/inforeport their degradation there.
?updated_since=<RFC3339> restricts the asset aggregate to accounts
whose metadata updated_at — the same value GET /dashboard/accounts
exposes as updated_at — is >= the cutoff. Account counts are always
unfiltered. A blank value is treated as absent; anything else that is
not RFC3339 is 400 invalid_timestamp. Percent-encode the value: a
literal + in a UTC offset decodes as a space and is rejected, so send
2026-09-04T00:00:00Z or ...%2B00:00. Eligibility is Miden-only: EVM
accounts have no Miden vault and never count as eligible or skipped.
Lifecycle does not affect eligibility (a paused or released account's
vault is still under guard).
The aggregate is computed by one replica and read by all of them, so
requests routed to different replicas never disagree on totals or
as_of:
- The holder of the
dashboard_statsrow inworker_leases(the same lease mechanism as the canonicalization worker, with its own lease name) walks the inventory and publishes the result to the shared store — thedashboard_stats_snapshots/dashboard_stats_controltables on Postgres, an in-process store on the filesystem backend. Publication is fenced: it validates the lease inside the same transaction as the write and refuses to overwrite a snapshot published under a newer fence token, so a holder that lost leadership mid-walk can never replace a newer result. When storage encryption is configured (GUARDIAN_STORAGE_ENCRYPTION_KEYor its Secrets Manager counterpart) the published payload — a copy of every account's vault totals — is sealed with the same cipher asstates.state_json, bound to its publication version, so the snapshot never widens the at-rest boundary. The snapshot is derived data: a stored row the cipher cannot open (plaintext from before encryption was enabled, a retired key id, a restore under different key material, a corrupt payload) is ignored and replaced by the next walk rather than pinning every replica to it. - Every replica polls the store's head version every 5 seconds and
loads a new publication into memory. Requests read only that copy:
no storage reads, no vault decoding, and an
updated_sincecutoff folds at most one 256-record prefix block on top of precomputed cumulative aggregates, so per-request work does not grow with the inventory. - Requests that straddle a publication may observe different versions
(
versiontells them apart); the shared snapshot removes the differences that independent per-replica refresh schedules would cause.
The lease holder starts a new walk every
GUARDIAN_DASHBOARD_STATS_REFRESH_INTERVAL_SECS (default 300 s;
this revises the original 60-second target of issue #371 FR-7) after the
previous publication, or sooner when an operator requests one. The
interval is not a bound on snapshot age: a slow walk publishes when
it finishes, and a walk that fails at any systemic storage read
(metadata listing, a batched state pull, a key-provider failure, or
every previously decodable state suddenly failing to decode) leaves the
previous snapshot published, increments
guardian_dashboard_stats_refresh_failures_total, releases the lease so
a healthy replica can take over on its next tick, and is retried by
this replica only after a 60-second backoff. as_of is therefore
the only truthful age signal; the last successful one is exported as
guardian_dashboard_stats_refresh_timestamp_seconds and the walk
duration as guardian_dashboard_stats_refresh_duration_seconds. Until
the first publication after a fresh deployment the endpoint returns
503 data_unavailable (retryable) rather than zeros.
POST /dashboard/stats/refresh (requires the stats:refresh
permission) asks the lease holder for an out-of-cycle walk and returns
202 Accepted with status: "queued" (also when a request was already
pending) or status: "in_progress" (a walk started within the last two
minutes is running; nothing is duplicated), plus current_as_of so the caller can poll
GET /dashboard/stats for a newer value. Accepted requests are spaced by
a 60-second cooldown that is fleet-wide, not per operator (the
walk it triggers is shared work); a request inside it is refused with
429 rate_limit_exceeded and a Retry-After header. Automatic and
operator-triggered refreshes share the same lease and control row, and
every request writes a stats.refresh audit event.
The walk reads metadata in one in-memory snapshot (filesystem) or in
indexed pages of 200 (Postgres), batch-pulls the Miden accounts' states
in chunks of 200, and decodes a vault only when its state commitment
differs from the previous snapshot; only successful decodes are reused,
so a repaired blob is picked up on the next walk. A failed batch is
retried one account at a time so a single corrupt or undecryptable row
becomes explicit state_undecodable coverage while a systemic failure
aborts the walk. Decoding runs on Tokio's blocking pool, and the lease
is renewed every 15 seconds while a walk runs (60-second TTL, so a
crashed holder is replaced within a minute).
Every cross-account aggregate on /dashboard/info —
total_account_count, accounts_by_auth_method, delta_status_counts,
in_flight_proposal_count, and latest_activity — is served from the
same published snapshot, and the response reports its time as
aggregates_as_of. The two endpoints therefore never contradict each
other, the per-method counts always sum to the total, and the old
filesystem inventory threshold no longer degrades those fields on its
own: the walk applies the threshold to the fan-out aggregates it reads
and lists anything it declined or failed to compute in
degraded_aggregates, keeping the fields it did get. Until the first
publication the snapshot-served aggregates are all listed as degraded
(the live account count is still returned). This deliberately trades
freshness — Postgres used to compute the delta and proposal aggregates
live — for one consistent cached overview.
The operator client exposes getDashboardStats({ updatedSince }) and
requestDashboardStatsRefresh(), and examples/operator-smoke-web has
buttons for the unfiltered, 7-day, invalid-cutoff, and refresh paths.
Permissions are server-defined; unknown strings are rejected at allowlist
load time so a typo surfaces explicitly
(permissions.rs).
| Permission | Grants |
|---|---|
dashboard:read |
Read access to all /dashboard/* read endpoints. |
accounts:pause |
Pause/unpause accounts. |
policies:write |
Policy module writes for one account: account layers and assignments (Policy modules). |
policies:write_global |
Policy module changes that apply to every account: global params, and enabling or disabling module instances. |
modules:disable |
Disabling a module instance that the catalog marks operator_can_disable, without any other policy write. |
stats:refresh |
Request an out-of-cycle refresh of the /dashboard/stats aggregate (POST /dashboard/stats/refresh, issue #371). |
Wire strings are case-sensitive and must not contain whitespace — the parser rejects both.
Current scope:
dashboard:readgates all read endpoints.accounts:pausegates the pause/unpause endpoints (see Account pausing below).policies:write,policies:write_globalandmodules:disablegate the policy module writes (see Policy modules below).
From 0.20.0 (RFC 0002). The endpoints
manage the module instances the catalog file declares
(GUARDIAN_MODULES_CONFIG);
they cannot add, remove or reconfigure an instance. Every write takes a
reason, is validated by the module before it is stored, and is recorded
in the params history and the audit log. A walkthrough is in the
policy modules guide.
Which configuration approved a signed delta is on its detail,
GET /dashboard/accounts/{account_id}/deltas/{nonce}, in the modules field:
catalog_hash, params_version, account_params_version, signed_at,
submitter, proposer, and under failed_open each module failure an on_error = "allow" instance let
through (module_id, layer, failure). It is absent when no module ran for
the delta, and client routes never return it. Every such skip, at approval as
well as at proposal creation and account registration, is also written to the
audit log as a modules.failed_open event (operator_identity system, with
the hook, submitter, catalog hash, both params versions and, for a proposal,
its proposal_id, or for an approval the delta's nonce and
prev_commitment). Operator writes are audited with the version they
committed as (params_version for an instance write, account_params_version
for a write to one account), or null for an enable or disable that changed
nothing.
There are two params versions. params_version moves with every write to an
instance (its global params or its enabled flag) and is what each replica keys
its instance cache on; GET /dashboard/modules reports it. Each account has its
own account_params_version, which moves with every write to that account's
layers or assignment, including the default copy at registration;
GET /dashboard/accounts/{account_id}/modules reports it. A write to one
account therefore neither waits for writes to other accounts nor makes any
replica reload its instances. The params history gives each entry an id, in
write order, and the version it committed as; page it with before=<id>.
GET /dashboard/info reports the
catalog hash this replica loaded as backend.module_catalog_hash.
| Endpoint | Permission | Body |
|---|---|---|
GET /dashboard/modules |
dashboard:read |
|
GET /dashboard/modules/{module_id}/params/history?before=<id>&limit=<n> |
dashboard:read |
|
GET /dashboard/accounts/{account_id}/modules |
dashboard:read |
|
PUT /dashboard/modules/{module_id}/params |
policies:write_global |
{"params": {...}, "reason": "...", "expected_version": n} (expected_version optional) |
PUT /dashboard/accounts/{account_id}/modules/{module_id}/params |
policies:write |
{"params": {...}, "reason": "...", "expected_version": n} (expected_version optional) |
DELETE /dashboard/accounts/{account_id}/modules/{module_id}/params |
policies:write |
{"reason": "...", "expected_version": n} (expected_version optional) |
PUT /dashboard/accounts/{account_id}/modules |
policies:write |
{"modules": [{"module_id": "...", "params": {...}}], "reason": "...", "expected_version": n} (expected_version optional) |
POST /dashboard/modules/{module_id}/enable |
policies:write_global |
{"reason": "..."} |
POST /dashboard/modules/{module_id}/disable |
policies:write_global or modules:disable |
{"reason": "..."} |
The history lists the stored changes newest first, including enable and
disable ({"enabled": ...} entries). Writes to different accounts commit
independently, so a page read while they land can miss an entry that is still
committing: it is stored, and paging again from the newest page shows it.
On a scope = all instance the per-account params are a layer evaluated
after the global params, and both must allow, so a layer only adds
restrictions. A scope = default instance is copied into an account's
assignment when it first registers and is then replaced or removed with the
account's other assignments; a scope = assigned one applies only where it
is assigned. Disabling an instance the catalog does not mark
operator_can_disable returns 409 GUARDIAN_MODULE_NOT_DISABLEABLE, and
writing the global params of one that sets operator_can_set_params = false
returns 400 invalid_input (the listing shows operator_can_set_params).
The four params writes (global params, account layer set or removed, assignment)
accept an optional expected_version: the catalog-wide params_version from
GET /dashboard/modules for a global write (any instance's global write or
enable/disable moves it, so re-read the catalog after a 409), the account's account_params_version for the others. Set, a
write made after another change to the same rows is refused with
409 GUARDIAN_MODULE_PARAMS_STALE and nothing is written; read the params
again and reapply your change. Unset, a global write replaces whatever is there,
so two operators editing from the same read can drop each other's change. An
account write (layer or assignment) is always checked against the rows it read:
without expected_version, one that loses a race with another write to the same
account is also refused with 409 GUARDIAN_MODULE_PARAMS_STALE, so two writes
can never together exceed the account's evaluation budget. Retry it.
A refused write returns 400 invalid_input with the reason in meta.detail
(the module and the rule it broke; the message stays generic, as for every
error), and a body that names a JSON key twice in one object is refused the
same way rather than keeping the last value. Writes are refused when the
reason is longer than
512 characters, when the params exceed
GUARDIAN_MODULE_PARAMS_MAX_BYTES, when a layer is written for a module the
account still has in its assignment (left from before a catalog change made it
scope = all; remove it from the assignment first), or when they would take the account's modules
over the evaluation budget at a hook where they are not already that far over
(each all instance, again for its layer, plus each assigned one). A write that
keeps or lowers the cost always passes, so an account a deploy pushed over the
budget can be brought back under it. Params a module cannot validate because it
does not answer are refused with 503 GUARDIAN_MODULE_UNAVAILABLE; an assignment
entry sent exactly as stored is not validated again, so an account keeping a down
module can still have its other entries changed. GET /dashboard/modules reports each instance's
circuit on the answering replica, params_drift against the params seeded
from the catalog file, and under undeclared the stored instances the catalog
no longer declares. An account's entries naming such an instance are marked
orphaned and skipped, and so are entries a scope change left behind: a
layer on an instance that is no longer all, or an assignment entry on one
that now is. Delete such a layer, or write the account's assignment again
(which drops entries on all instances). The history is newest first, at most 100 entries per
page by default (1,000 at most), and before pages backwards by entry id (not version, which is counted per instance or per account).
Operators holding accounts:pause can halt and resume an account's
state-changing operations. While paused, the server rejects calls on
the state-transition, proposal, and EVM mutation paths
(PushDelta, PushDeltaProposal, SignDeltaProposal, and the
matching EVM proposal/session operations) with 409 GUARDIAN_ACCOUNT_PAUSED
and gRPC FailedPrecondition
(error.rs:97-101). Read endpoints
and ConfigureAccount remain available so an account can be
reconfigured while paused.
A pause also stops a PushDelta that passed its status check before the
pause and was still applying its delta: on Postgres in candidate mode the
candidate write re-reads paused_at / released_at under the account row
lock the pause takes, so once the pause call returns no further ack is
issued for the account. In optimistic mode, and on the filesystem
backend, the status is re-read right before the write but not under a
shared lock, which narrows that window without closing it.
| Route | Permission | Body |
|---|---|---|
POST /dashboard/accounts/{id}/pause |
accounts:pause |
{ "reason": "<non-empty string>" } — required and validated. |
POST /dashboard/accounts/{id}/unpause |
accounts:pause |
{ "reason": "<optional string>" } — optional. |
Both endpoints are idempotent: pausing an already-paused account or
unpausing a not-paused account succeeds without state change. Each
transition is recorded in the audit log with the operator's commitment,
the timestamp, and the supplied reason
(services/pause_account.rs,
services/unpause_account.rs).
Pause state lives in the account metadata (paused_at,
paused_reason) — survives task restarts and follows the account across
multi-stack deploys that share metadata storage.
When a paused account is touched by a write path (PushDelta,
SignDeltaProposal, PushDeltaProposal, …), the server returns
GUARDIAN_ACCOUNT_PAUSED with the original paused_reason in the
response body. See
TROUBLESHOOTING.md.
The operator allowlist is a Secrets Manager entry whose payload is one of:
Legacy array form — every key implicitly gets dashboard:read:
["0x<falcon-pubkey-a>", "0x<falcon-pubkey-b>"]Object array form (recommended) — explicit permission sets:
[
{
"public_key": "0x<falcon-pubkey-a>",
"permissions": ["dashboard:read", "accounts:pause"]
},
{
"public_key": "0x<falcon-pubkey-b>",
"permissions": ["dashboard:read"]
}
]Mixed arrays of bare strings and objects are accepted; duplicate
public_key entries across the file are rejected.
Terraform-managed allowlists are limited to the legacy array form. The
guardian_operator_public_keysvariable is typedlist(string)and Terraform writesjsonencode(...)of the list verbatim (infra/operator_secrets.tf:12), so every entry implicitly getsdashboard:readonly. To grantaccounts:pauseyou must use the object form via a file (GUARDIAN_OPERATOR_PUBLIC_KEYS_FILE) or an externally managed secret referenced byguardian_operator_public_keys_secret_arn.
The server resolves the allowlist source from one of these env vars
at startup (allowlist.rs:70);
the contents are re-read per authenticated request, so adding or
removing operators does not require a task restart:
| Env var | Source |
|---|---|
GUARDIAN_OPERATOR_PUBLIC_KEYS_SECRET_ID |
Secrets Manager secret name or ARN (set by Terraform on the ECS task). |
GUARDIAN_OPERATOR_PUBLIC_KEYS_FILE |
Local JSON file path: local development, or self-managed deployments without Secrets Manager (production guide). |
End-to-end procedure for adding operator Alice to a deployed Guardian.
- Alice generates a Falcon keypair on a trusted device (the same
keypair format the multisig SDK and the smoke example use; the
examples/operator-smoke-webREADME has a UI for this). - Alice gives the public key (hex
0x…) to the deploying operator. - Deployer updates the allowlist:
- Terraform-managed: append the bare key to
guardian_operator_public_keysand redeploy (see Secrets runbook). This path grantsdashboard:readonly. - Externally-managed:
aws secretsmanager update-secretwith the new payload — no ECS restart required.
- Terraform-managed: append the bare key to
- Alice logs in — challenge → sign → session. The change takes
effect on her next request; the server refreshes the allowlist on
every challenge issuance and every authenticated
/dashboard/*call (dashboard/state.rs:103-108,dashboard/state.rs:284-324).
Same shape, no restart:
- Update the secret payload to drop or change Alice's entry.
- Effect is immediate — the next challenge or authenticated request from any task reloads the allowlist and rejects the removed key. Currently-active sessions for the revoked operator are rejected at their next authenticated call (the per-request reload catches them).
To run the real operator UI (0xMiden/guardian-dashboard)
against a local server with Docker Compose, follow
guides/miden-dashboard.
For a lightweight check of the API itself, use
examples/operator-smoke-web — it
runs a browser harness that exercises challenge issuance, signed-session
issuance, and the account listing endpoints against either a local server
or a remote Guardian.
Run a local Guardian with a file-based allowlist:
cat > /tmp/operators.json <<'EOF'
[{ "public_key": "0x<your-falcon-pubkey>",
"permissions": ["dashboard:read", "accounts:pause"] }]
EOF
GUARDIAN_NETWORK_TYPE=MidenLocal \
GUARDIAN_OPERATOR_PUBLIC_KEYS_FILE=/tmp/operators.json \
GUARDIAN_STORAGE_PATH=.guardian/storage \
GUARDIAN_METADATA_PATH=.guardian/metadata \
cargo run --bin serverThen in another shell, follow the
examples/operator-smoke-web README to
point the harness at http://localhost:3000. The
smoke-test-operator-dashboard skill drives this end-to-end.
The dashboard surfaces a few aggregates (delta status counts, in-flight
proposals, latest activity, global feeds) that are cheap on Postgres but
expensive on the filesystem backend. The server has a defensive cap:
above DEFAULT_FILESYSTEM_AGGREGATE_THRESHOLD (1,000 accounts by
default, config.rs),
those cross-account aggregates on filesystem deployments return a
degraded marker rather than a count. This is intentional — filesystem
mode is a dev convenience, not a production backend. See
Storage modes.
The threshold is applied by the /dashboard/stats walk when it reads
the fan-out inventory aggregates; the affected names surface in
degraded_aggregates on /dashboard/info; account counts are always
complete and asset totals carry their own explicit coverage
(complete / skipped). See
Aggregate stats.
When standing up the dashboard for a new stack:
- Decide Terraform-managed or externally-managed allowlist.
- Add at least one operator with
dashboard:readbefore shipping — otherwise the dashboard is unreachable. - Set
GUARDIAN_NETWORK_TYPEfor the stack; the dashboard environment reported byGET /dashboard/infois derived from it. - If running ≥2 ECS tasks, pin
GUARDIAN_DASHBOARD_CURSOR_SECRETto a shared 32-byte hex value. - Verify a fresh challenge → session round trip from the smoke example before considering the deploy live.