Local Dashboard with Aspire
The Aspire Go AppHost in server/aspire/ starts the whole
local dashboard stack with one command: PostgreSQL, database provisioning, the
dashboard site build, and the Go server with its native ingestion collector
running. Aspire collects their logs, traces,
and metrics in one place, and you can debug the Go server from VS Code with
breakpoints.
The AppHost is a development tool only. It does not change hosted deployments,
gh cao dashboard, or the server’s configuration contract. It sets the same
flags and environment variables you would otherwise set by hand.
What the AppHost starts
Section titled “What the AppHost starts”| Resource | What it is |
|---|---|
postgres |
A PostgreSQL 16 container with the cao_bootstrap admin user, the cao_dashboard database, and max_locks_per_transaction=512. It keeps running between sessions and stores its data in the cao-aspire-postgres-data volume. |
provision |
A one-time run of cao-dashboard database provision-local --namespace <namespace>. It creates the schema and resets the runtime role password, so each session gets a fresh password. |
site |
Runs npm --prefix dashboard/site run build -- dist ../../.github/workflows/cao.json with CAO_DASHBOARD_PROFILE=server. |
dashboard |
Runs cao-dashboard serve --site dashboard/site/dist on 127.0.0.1 with the runtime database URL, a random access token for this session, the marketplace policy path, and OTLP/HTTP telemetry export. Unless collection is off, serve also runs the native collector in the same process: a backfill, then one polling worker that writes to the namespace. |
inventory |
A one-time run of cao-dashboard provision-inventory. It pins the reviewed native inventory and its SHA-256 digest in the namespace, because native collection refuses to start without them. It is absent when collection is off. |
github-simulator |
Runs only in simulator collection mode. It is cao-dashboard simulate-api, a local GitHub REST API that serves synthetic repositories and workflow runs to the collector. |
azurite |
Runs only when CAO_ASPIRE_AZURITE=true. It is the official Azurite Blob emulator image, mcr.microsoft.com/azure-storage/azurite, started with a random account key for this session. See Local Azure emulation. |
azurite-blob-test |
Runs only when CAO_ASPIRE_AZURITE=true. It is a one-time run of the session archive Blob adapter conformance test against azurite. |
The dashboard starts only after provision, site, and (when collecting)
inventory and github-simulator are ready. Its health check
calls /api/health. In the Aspire dashboard, open the Dashboard (signed in)
link to get a browser session already authenticated with that session’s
access token.
Prerequisites
Section titled “Prerequisites”-
Go 1.27.3 or later. The AppHost module (
server/aspire/go.mod) and the server module (server/go.mod) declare the samegoversion. -
Node.js, with dependencies installed in
dashboard/site(npm ci). -
A running Docker-compatible container runtime, such as Docker Desktop, colima, or Podman.
-
The Aspire CLI 17.0.0. The AppHost pins SDK and hosting packages
17.0.0. Install the self-contained CLI with the official script, which puts it in~/.aspire/bin:Terminal window curl -sSL https://aspire.dev/install.sh | bash -s -- --version 17.0.0aspire --versionThe CLI bundles the AppHost server and restores the Go and PostgreSQL hosting integrations itself, so the repository needs no
nuget.configand you don’t need the .NET SDK.
Run and stop
Section titled “Run and stop”From the repository root:
npm run dashboard:aspire # foreground; Ctrl+C stops the AppHostnpm run dashboard:aspire:start # background (detached)npm run dashboard:aspire:stop # stop a background AppHostThe CLI prints the Aspire dashboard URL with a one-time login token. Always
pass --apphost server/aspire/apphost.go when you call aspire yourself. The
repository has a second AppHost, server/kubernetes/aspire/apphost.cs, for
the kind cluster integration.
aspire describe --apphost server/aspire/apphost.goaspire logs dashboard --apphost server/aspire/apphost.goaspire otel traces --apphost server/aspire/apphost.goaspire otel logs dashboard --severity Error --apphost server/aspire/apphost.goaspire otel spans --has-error true --apphost server/aspire/apphost.goThe AppHost sets CAO_OTEL_LOGS_ENABLED=true, so the server’s logs appear in
the Aspire dashboard as well as on the console. A failed query marks its
query.execute span as an error, records the HTTP status in error.type, and
logs query failed at Error severity. Other HTTP 5xx responses also log at
Error severity. Error logs reach OpenTelemetry even when their DEBUG
category is disabled. Other HTTP 4xx responses log at Warning severity, but
only when their category is enabled. The spans and logs carry fixed messages
and status codes. They never contain query text, request bodies, or raw error
strings.
Native collection exports fixed cao_dashboard.collection.* spans: task
(exact attempt or historical enumeration), runs, attempt, claim,
claim.release, attempt.lookup, traces.discover, traces.download,
traces.verify, extract, evidence.publish, and canonical.publish.
Discovery wraps downloads because the provider streams references through a
visitor. Evidence publication means a durable pending intent, not canonical
activation; canonical.publish records whether the fenced transaction actually
activated it. Existing backfill and refresh spans cover initial backfill
and periodic scope repair. Child spans share their parent trace and carry only
validated repository coordinates, installation/run/attempt IDs, counts, byte
sizes, fixed outcomes, and activation flags. Failures, cancellation, and timeouts
mark error status without recording raw errors, source keys, file paths, tokens,
URLs, or payloads.
On the first run, aspire restore generates the Go SDK under the ignored
server/aspire/.aspire/ directory. Run npm run dashboard:aspire:test to
regenerate it, then vet and test the AppHost module. The Aspire AppHost
format, lint, and tests job in .github/workflows/cgo.yml runs the same
command, plus golangci-lint, with the pinned Aspire CLI.
Run npm run dashboard:aspire:integration to test the whole AppHost end to
end. The script starts the AppHost with aspire start --isolated, an ephemeral
PostgreSQL container, and the simulator collector, and waits for dashboard
to become healthy. It then checks, over the real HTTP API:
- the served site and the signed-in URL;
- that the API rejects unauthenticated requests;
- that native collection is healthy and has no dead letters;
- that the repositories come from the simulator;
- that a Dashboard Language query over
$runsreturns rows.
It prints resource logs on failure and always stops its own AppHost by PID.
It refuses to run while another AppHost from the same checkout is running,
because aspire describe, wait, and logs select an AppHost by path. Run it
from a separate worktree instead. aspire.config.json pins the Aspire
dashboard ports, so a second worktree also needs different ports there. The
Aspire AppHost end-to-end integration job in .github/workflows/cgo.yml
runs the script when the AppHost, production server sources, or CI inputs
change. CAO_ASPIRE_TEST_STARTUP_SECONDS (default 900) and
CAO_ASPIRE_TEST_INGESTION_SECONDS (default 300) bound the waits.
Configuration
Section titled “Configuration”Set these variables in the shell before you start the AppHost:
| Variable | Effect |
|---|---|
CAO_DATABASE_NAMESPACE |
Sets the operational namespace for provisioning, the inventory pin, and serving. The default is aspire-simulator in simulator mode and aspire otherwise. Synthetic and real evidence never share a namespace: simulator mode accepts only aspire-simulator or an aspire-simulator-* name, and github mode or CAO_ASPIRE_SOURCE ingestion rejects those names. |
CAO_ASPIRE_COLLECTOR |
Chooses the native ingestion mode: simulator, github, or off. See Native ingestion. |
CAO_ASPIRE_SIMULATOR_REPOSITORIES |
Sets the number of synthetic repositories in simulator mode. The default is 3. |
CAO_ASPIRE_SIMULATOR_RUNS_PER_DAY |
Sets the number of synthetic runs per repository per day, over 7 days, in simulator mode. The default is 4. |
CAO_ASPIRE_SKIP_SITE_BUILD |
Skips the site build for faster restarts. Use it only when dashboard/site/dist is already current. You can still start site manually from the Aspire dashboard. |
CAO_ASPIRE_DEBUG_BUILD |
Builds the Go resources with -gcflags all=-N -l so stepping and inspecting locals are reliable. |
CAO_ASPIRE_DELVE |
Runs dashboard under a headless Delve server on 127.0.0.1:2345. The server waits until a debugger attaches. |
CAO_ASPIRE_DEBUG |
Overrides the server’s DEBUG categories. The default is cao:server,cao:server:*. |
CAO_ASPIRE_SOURCE |
Passes --source to serve so that it ingests a verified canonical snapshot directory into the namespace before serving. Snapshot ingestion and native collection are alternatives, so this turns collection off. |
CAO_ASPIRE_EPHEMERAL_POSTGRES |
Runs PostgreSQL without the persistent data volume, with a new random admin password that is never written to .tmp/aspire/. Every run starts from an empty database. The integration test sets it. |
CAO_ASPIRE_POSTGRES_URL |
Uses an existing PostgreSQL server instead of the container, for hosts without a container runtime. Set it to an admin URL of the form postgresql://user:password@127.0.0.1:5432/database. The host must be a loopback IP literal, and the user, password, and database name must not need URL escaping. It can’t be combined with CAO_ASPIRE_EPHEMERAL_POSTGRES. |
CAO_ASPIRE_AZURITE |
Set to true to start the Azurite Blob emulator and run the Blob adapter test against it. Any value other than true, false, or empty fails. |
CAO_MARKETPLACE_POLICY_PATH |
Overrides the policy file. The default is .github/workflows/cao.json. |
Relative paths in CAO_ASPIRE_SOURCE, CAO_MARKETPLACE_POLICY_PATH,
CAO_ASPIRE_NATIVE_INVENTORY, and CAO_COLLECT_PRIVATE_KEY_FILE are resolved
from the repository root.
Native ingestion
Section titled “Native ingestion”The AppHost runs the server’s native collector inside serve, the same
co-resident collector that gh cao dashboard and hosted deployments use. It
does not shell out to gh cao dashboard collect. The collector backfills
recent workflow runs and then keeps polling, so the dashboard fills up while
it runs. The mode is chosen as follows:
CAO_ASPIRE_COLLECTOR, when set.- Otherwise
off, whenCAO_ASPIRE_SOURCEis set. - Otherwise
github, whenCAO_COLLECT_APP_IDis set. - Otherwise
simulator.
Setting both CAO_ASPIRE_SOURCE and CAO_ASPIRE_COLLECTOR=simulator or
CAO_ASPIRE_COLLECTOR=github fails, because a namespace is fed by either a
snapshot or a collector.
Simulator mode (default)
Section titled “Simulator mode (default)”No credentials are needed. On each run, the AppHost writes these files to the
ignored .tmp/aspire/collector/ directory with 0600 permissions:
scenario.json: synthetic history that ends at the current time, so every run falls inside the retention window.app-key.pem: a throwaway RSA key. The simulator doesn’t verify App signatures.inventory.json: a copy of the checked-inserver/aspire/simulator-inventory.json, a bare-monitoring inventory forsimulator/repo-00001, with a reviewed version 1 policy and no campaigns or workflows.
The collector reads from github-simulator through CAO_COLLECT_GITHUB_API_URL.
All data in the aspire-simulator namespace is synthetic. With the defaults it
holds 84 runs: 3 repositories × 7 days × 4 runs.
Each run exposes a minimal usage ZIP containing aw_session.jsonl (UAS)
and aw_info.json for exact repository/run/attempt verification. Synthetic
usage, MCP, firewall, and skill events feed the normal native collector and
canonical dashboard projection; no dashboard fixtures or runner logs are needed.
Runs record the GitHub trigger event as schedule and the gh-aw sidecar
engine_name as GitHub Copilot CLI (the value gh-aw compiles into
lock files), separately from engine_id: copilot.
The Go collector’s collectnative.TraceService separates DiscoverTraces
from DownloadTrace. The default GitHub adapter discovers eligible evidence
bundles before downloading them. Embedders can inject
simulator.NewTraceService(scenario) through server.CollectorConfig.Traces
to generate the same UAS evidence in process, without HTTP trace downloads.
This is an explicit adapter choice; the default Aspire flow still exercises
the simulated GitHub REST API. Enrollment, exact-attempt claims, sidecar
verification, extraction and canonical publication remain shared.
The in-process adapter does not emulate HTTP faults or quota behavior; use
the REST simulator for those checks.
Downloading just the UAS is not currently supported: the Actions API downloads whole artifact ZIPs, gh-aw bundles the UAS with other usage files, and CAO requires the identity sidecar. A gh-aw follow-up should publish a dedicated UAS-only artifact with repository, run, and attempt identity embedded in a documented session event. CAO can then explicitly support and verify that artifact without downloading the larger usage bundle or weakening identity checks.
GitHub mode
Section titled “GitHub mode”To collect real evidence, use a GitHub App installed on the control
repository and on the repositories it monitors, and a reviewed inventory. The
Kubernetes guide
describes how to produce inventory.json and its digest with
server/kubernetes/review-inventory.mjs.
export CAO_COLLECT_APP_ID=123456export CAO_COLLECT_PRIVATE_KEY_FILE=~/keys/cao-app.pemexport CAO_COLLECT_CONTROL_REPOSITORY=octo/opsexport CAO_ASPIRE_NATIVE_INVENTORY=.tmp/inventory.jsonexport CAO_COLLECT_NATIVE_INVENTORY_DIGEST=<reviewed sha256>npm run dashboard:aspireAll five variables are required. If any is missing, the AppHost fails instead
of falling back to the simulator. The AppHost never computes the digest:
provision-inventory rejects inventory bytes that don’t match the reviewed
value. It also passes these optional collector settings through:
CAO_COLLECT_GITHUB_API_URL, CAO_COLLECT_GITHUB_UPLOAD_URL,
CAO_COLLECT_INVENTORY_LIMIT, CAO_COLLECT_WINDOW_DAYS, CAO_COLLECT_WORKERS,
CAO_COLLECT_REPOSITORY_REFRESH_INTERVAL, and CAO_COLLECT_TIMEOUT.
A pinned inventory can’t be replaced in its namespace. To use a different
inventory, choose a new CAO_DATABASE_NAMESPACE.
Local Azure emulation
Section titled “Local Azure emulation”The server’s only Azure dependency is the optional session archive in
server/internal/sessionarchiveblob, which stores objects in Azure Blob Storage.
Set CAO_ASPIRE_AZURITE=true to emulate that storage locally:
CAO_ASPIRE_AZURITE=true npm run dashboard:aspireThe AppHost adds a plain container resource for the official Azurite image from
the Microsoft Container Registry. It doesn’t use the Aspire Azure Storage
hosting integration. Each session generates a
fresh 32-byte account key for the synthetic caoaspire account and stores it
as a secret parameter. The azurite-blob-test resource then runs
TestAzuriteBlobStoreIntegration against the emulator: immutable object writes,
leased pointer compare-and-swap, deletion, and cancellation. Re-run it from the
Aspire dashboard after changing the adapter.
The dashboard resource is not pointed at Azurite. The archive configuration
accepts only an https://<account>.blob.core.windows.net account, an Azure Data
Explorer endpoint, Microsoft Entra credentials, data approval, and an acceptance
binding, and it fails closed otherwise. No local emulator covers Azure Data
Explorer, Entra, Key Vault, managed identity, or Container Apps networking, so
the emulator tests the Blob adapter only. Validate an Azure deployment as
described in the Azure guide.
Compare with the Azure Bicep
Section titled “Compare with the Azure Bicep”In publish mode, server/aspire/publish.go models the reviewed Azure Container
Apps topology so that aspire publish can emit comparable Bicep. Use the output
only for comparison. The offline review bundle from
gh cao deploy init --deployment azure-container-apps remains the only
supported Azure deployment input. Never run aspire deploy against it.
Publish into the ignored .tmp/ directory. Every parameter needs a value in
non-interactive mode. Credentials become @secure() Bicep parameters, so the
placeholder values below never appear in the output:
args=()for p in postgres-admin-password postgres-owner-password postgres-runtime-password \ postgres-run-retention-days github-client-id github-client-secret github-admin-users \ github-allowed-orgs github-allowed-teams github-allowed-users trusted-proxy-cidrs \ session-secret github-webhook-secret github-app-id native-inventory-digest \ control-repository collector-private-key; do args+=("Parameters__${p}=PLACEHOLDER")doneenv "${args[@]}" aspire publish --apphost server/aspire/apphost.go \ -o .tmp/aspire/publish --non-interactivediff -ru internal/topology/assets/container-apps .tmp/aspire/publishThe model matches the reviewed topology in these ways:
- It has the same Dockerfile stages and entrypoints.
- The dashboard has the same arguments, environment, and namespaces, external ingress on port 8080, and one replica.
- The dashboard has the same HTTP startup, liveness, and readiness probes on the internal health listener at port 8081.
db-provisionandbackfillare manual jobs.collectoris an always-on app that is the only role holding the GitHub App key.- Key Vault holds the same secret names.
Aspire grants Key Vault Secrets User on a whole vault, while the reviewed bundle
grants it per secret. The model therefore uses one vault per role:
provision-vault, web-vault, and collector-vault. The public web identity
can never read the App key or the administrator URL. Postgres password
authentication writes its connectionstrings--* secrets to a separate
postgres-vault, which only the provisioning identity can read.
The model uses the Azure networking integration for the reviewed private
topology. The 10.45.0.0/16 VNet has a containers subnet delegated to the
environment, with egress through a NAT gateway and a static IP. Postgres is
reachable only through a private endpoint in the postgres subnet, with a
linked privatelink.postgres.database.azure.com zone, and public network access
is disabled.
The environment keeps the Aspire dashboard component. Container Apps allows only Contributor or Owner on the environment to open it.
Aspire 17.0.0 can’t express these reviewed settings through the Go SDK:
| Reviewed setting | Aspire output |
|---|---|
| Postgres VNet integration in a delegated subnet | Private endpoint and private DNS zone; public access disabled in both |
defaultOutboundAccess: false on both subnets |
Not set; container egress still uses the NAT gateway |
Postgres Standard_B2s |
Standard_B1ms |
uriComponent() on database URL passwords |
Raw passwords, so they must be URL-unreserved, for example hex |
| Key Vault purge protection and 90-day soft delete; one vault with per-secret roles | Defaults; one vault per role |
| ACR with admin disabled; 30-day Log Analytics with environment diagnostics | Aspire defaults |
| Health port 8081 reachable only by the platform | additionalPortMappings exposes 8081 to apps in the environment |
1 CPU and 2 GiB, maxReplicas 1 |
minReplicas 1 only |
Job replicaTimeout 7200; retry limit 0 (provision) or 1 (backfill) |
replicaTimeout 1800, default retries |
Postgres storage autoGrow, UTF8 en_US.utf8 database |
No auto-grow; server default charset; zone 1 and explicit password auth |
| Per-role identity holds AcrPull | Extra shared apps identity with AcrPull attached to every app |
Environment azure-monitor logs with diagnostic settings |
log-analytics destination using the workspace shared key |
Consumption workload profile set on each app |
consumption profile on the environment only |
| Platform-default probe initial delay | Explicit 5-second initial delay on every probe |
CAO_ALLOWED_HOSTS uses ${namePrefix} |
Uses the Aspire app name dashboard |
runtimeEnabled gating, optional OTLP and Application Insights |
Not modeled |
| No Aspire dashboard; telemetry in Log Analytics | Aspire dashboard component (dotNetComponents) |
${namePrefix} naming and tags |
Aspire names such as dashboard and vault-<hash> |
| Postgres admin connection string not stored | connectionstrings--* secrets in postgres-vault |
Debug in VS Code
Section titled “Debug in VS Code”The repository recommends the
Aspire
and Go
extensions in .vscode/extensions.json.
- Select Aspire: CAO dashboard AppHost in Run and Debug, then press F5.
The Aspire extension runs every Go resource under
dlv-dap, so breakpoints inserver/work in bothprovisionanddashboard. - If the AppHost is already running, use Attach debugger on a Go resource in the Aspire resources view. Attaching and detaching do not restart the resource.
- For editors that attach over DAP, such as GoLand, start the AppHost with
CAO_ASPIRE_DELVE=1. Then use Attach: CAO dashboard Delve server, or any remote Delve client, on127.0.0.1:2345.
Set CAO_ASPIRE_DEBUG_BUILD=1 when optimized code skips breakpoints or hides
variables.
Agent skills and MCP
Section titled “Agent skills and MCP”aspire agent init configures GitHub Copilot for this repository:
.github/copilot/settings.jsonenables the official Aspire skills plugin, which teaches agents to use the Aspire CLI to run, inspect, and debug the AppHost..mcp.jsonregisters the Aspire MCP server (aspire agent mcp), which gives agents tools for resources, logs, and telemetry of a running AppHost.
To refresh the configuration after a CLI upgrade, run from the repository root:
aspire agent init --mcprm -f ~/.copilot/hooks/aspire-telemetry.jsonaspire init --language go --agents copilot --skills aspire writes the same
plugin configuration, but it also scaffolds a second AppHost in
aspire-apphost/ and a root aspire.config.json. Delete both, because this
repository’s AppHost lives in server/aspire/. In non-interactive mode, also
pass --use-config-source false to decline any machine-level configuration
source, which can run code.
Plugin trust and pinning
Section titled “Plugin trust and pinning”Enabling the plugin for every checkout is a maintainer decision. The plugin
can run code on your machine, so the marketplace ref in
.github/copilot/settings.json pins microsoft/aspire-skills to a reviewed
full commit SHA (release v0.0.6). A branch or tag move upstream doesn’t
change what agents load here. .mcp.json runs aspire agent mcp from your
installed Aspire CLI, which the prerequisites pin.
To update the plugin, review the upstream changes, then set ref to the new
release commit:
gh api repos/microsoft/aspire-skills/commits/<tag> --jq .shaaspire agent init may rewrite the marketplace entry without ref. After a
refresh, restore the pin before you commit.
To opt out locally, create the ignored .github/copilot/settings.local.json,
which takes precedence over the repository settings:
{ "enabledPlugins": { "aspire@aspire-skills": false }, "disabledMcpServers": ["aspire"]}Disable Aspire telemetry
Section titled “Disable Aspire telemetry”The repository’s dashboard:aspire* npm scripts set
ASPIRE_CLI_TELEMETRY_OPTOUT=true. When you run the Aspire CLI directly or
through the VS Code extension, export it in your shell profile:
export ASPIRE_CLI_TELEMETRY_OPTOUT=trueaspire agent init installs a user-level telemetry hook in
~/.copilot/hooks/aspire-telemetry.json even when you opt out. Delete that file
after each run, as shown above.
Telemetry
Section titled “Telemetry”The AppHost points the Go server’s existing OpenTelemetry exporters at the
Aspire dashboard over OTLP/HTTP. Traces, metrics, and structured logs appear
under the dashboard resource. The server needs no extra configuration. See
the server telemetry contract.
server/aspire/aspire.config.json defines a single http launch profile. The
Aspire dashboard runs at http://localhost:15105, OTLP/gRPC at 19105,
OTLP/HTTP at 19106, and the resource service at 20105, all on loopback.
Go AppHosts don’t accept --launch-profile; when an https profile exists,
the Aspire CLI always selects it. With https, the Go exporters need a
trusted ASP.NET Core development certificate (aspire certs trust), which
changes the operating system trust store. The http profile avoids that
change, matching the other local telemetry stacks in
server/LOCAL-TELEMETRY.md. Browser login to the Aspire dashboard stays
enabled.
Agentic DevOps QA workflow
Section titled “Agentic DevOps QA workflow”.github/workflows/aspire-devops-qa.md is a standalone gh-aw workflow. It
doesn’t import the CAO control plane and works only on this repository. It
runs every 30 minutes and on manual dispatch. It skips while one of its draft
pull requests is still open. Each run uses the pi engine:
The pre-agent setup installs the Aspire CLI and restores the AppHost SDK under
$HOME/.aspire. The workflow mounts only that directory read-write into the
agent sandbox so the CLI, SDK cache, and runtime state remain available.
- It starts the AppHost with synthetic
simulatordata. Because the agent sandbox has no container runtime,scripts/aspire-qa-stack.sh startruns a throwaway PostgreSQL server on loopback from the runner’s binaries and passes it inCAO_ASPIRE_POSTGRES_URL. - A simulated DevOps user tries one dashboard task with Playwright and writes a report.
- The agent correlates failures in the report with
aspire otel spans,aspire otel logs, andaspire logs dashboard. API error responses carry atraceIdthat matches the failingcao_dashboard.query.executespan. - It fixes failing queries, unregistered SQL sources, and missing or empty
data. It then runs
scripts/aspire-qa-stack.sh restartand repeats the task, up to four iterations. - It proposes the validated fix as one draft pull request, limited to the server, server specification, and dashboard source paths. Evidence is uploaded as an artifact.
You can run the same stack locally without Docker:
scripts/aspire-qa-stack.sh start # PostgreSQL + AppHost, waits for dashboardscripts/aspire-qa-stack.sh restart # rebuild after a fix, same datascripts/aspire-qa-stack.sh reset # restart with an empty databasescripts/aspire-qa-stack.sh stopThe script keeps its state, including the generated PostgreSQL password and
the signed-in dashboard URL, in /tmp/gh-aw/agent/aspire-qa with owner-only
permissions. Override the location with CAO_ASPIRE_QA_STATE.
Data and secrets
Section titled “Data and secrets”The native collector fills the namespace within about a minute of startup.
With CAO_ASPIRE_COLLECTOR=off and no CAO_ASPIRE_SOURCE, the namespace stays
empty. A snapshot passed in CAO_ASPIRE_SOURCE must contain runs inside the
retention window, because runs only has daily partitions for that window.
Older runs, including those in server/testdata/deployed-subset, fail with
no partition of relation "runs".
If the dashboard’s API calls return 401, open the Dashboard (signed in)
URL again. Each run issues a new access token and can pick a new port, so a
tab or bookmark from an earlier run keeps a stale token.
- Unless
CAO_ASPIRE_EPHEMERAL_POSTGRESis set, the PostgreSQL admin password is created on the first run in.tmp/aspire/postgres-admin-passwordwith owner-only0600permissions. The persistent volume keeps the role that password created, so the file and volume belong together. The AppHost refuses to start if the file is malformed or readable by group or others. - The runtime role password, the dashboard access token, and the collector’s
webhook secret are new random values on every run. They are Aspire secret parameters, so
aspire describeredacts the environment variables that carry them. - The Go server listens only on
127.0.0.1, and Delve listens on127.0.0.1:2345. Aspire’s container runtime publishes the PostgreSQL port, which is password-protected. - The Dashboard (signed in) URL, which
aspire describealso shows, contains the session access token. Don’t share it.
To reset local data, stop the AppHost and remove the container, the volume, and the password file together:
npm run dashboard:aspire:stopdocker rm -f $(docker ps -aq --filter volume=cao-aspire-postgres-data)docker volume rm cao-aspire-postgres-datarm .tmp/aspire/postgres-admin-passwordIf you remove only some of them, the admin password no longer matches the
role stored in the volume, and provision fails.
Relation to other local workflows
Section titled “Relation to other local workflows”gh cao dashboardremains the supported operator path. It collects real evidence natively into its own managed PostgreSQL container, and its cache is separate from the Aspire volume.npm run dashboard:localserves against a PostgreSQL instance you already provisioned, without orchestration.npm run dashboard:server:aspire-upstarts only the standalone Aspire dashboard container (ports18888and4318), for a server you run yourself. It is independent of the AppHost, which runs its own Aspire dashboard.server/kubernetes/aspire/apphost.csis the C# AppHost behind the kind cluster integration test.
To load real evidence, use GitHub mode, or set
CAO_ASPIRE_SOURCE to a verified canonical snapshot directory. See
Dashboard data ingestion.