REFERENCE

Running the server: probes, storage and settings

You run the Attestree server yourself and want a health check for your monitoring, to move the installer store between local disk and Azure Blob, or to see which settings the deployment fixes and which ones someone changed.

UPDATED

This page is for whoever runs the server: what to point monitoring at, how to move the stored installers, and where to see how the deployment is configured. The full list of settings is on the architecture page.

Health and readiness probes

Both answer without signing in, so a load balancer, an orchestrator or an external monitor can call them.

  • GET /health is liveness. It answers 200 with {"status":"healthy"} while the process serves requests (since platform 0.3.1). The image’s Docker HEALTHCHECK calls it every 30 seconds, after a 300-second start period that leaves room for migrations at boot.
  • GET /readiness is readiness (since 0.3.3). On Community Edition it runs a query against the database and signs a test span with the audit signer. It answers 200 with {"status":"ready"} only when both work; otherwise 503 with {"status":"not-ready","dbCheck":"OK","signerCheck":"FAIL"}, each check reading OK or FAIL. The body never carries an error message, a connection string or a stack trace; the reason is in the server log.

Point uptime monitoring at /readiness: a server that answers /health can still be unable to reach its database.

The database role

Since platform 26.11.501 the platform refuses to start when a database connection uses a PostgreSQL superuser or a role with BYPASSRLS. It logs a [db-role] line naming the role and stops with exit code 91 before it serves anything, so neither probe answers. The reference compose file connects as a restricted application role; an install created before that role still connects as POSTGRES_USER, and moves to the application role once by the restricted-database-role.md runbook. Upgrades and rollback has the way through an upgrade.

Since 26.11.1600 the platform keeps its database connections within a budget it reads from PostgreSQL at start (Wep:Database:PoolBudget; PoolHeadroom 10 and PoolAcquireTimeoutSeconds 5 by default), and an /api request that cannot get a connection in time is answered 503 with a Retry-After of about 30 seconds.

Since 26.11.1901 the server also turns away agent requests over a limit before it checks them. When more agent requests are in flight than Wep:Agents:AdmissionMaxInFlight allows, the next one is answered at once with 503 and a Retry-After of 23 to 37 seconds, before its token is checked or the database is touched. The agent keeps its session: a turned-away check-in waits for the next poll, and telemetry stays buffered on the endpoint. Every agent request counts, enrollment included, except the agent update and agent installer downloads. Unset, the limit is twice the database connections the server sets aside for agent work, and 0 turns it off. The platform log’s [agent-admission] lines say which limit applies and how many requests were turned away. The console does not show the limit yet.

Moving installer bytes between storage backends

The installers the platform keeps live in its byte store: local disk by default, or Azure Blob storage. You choose the backend under Settings › Storage (/community/settings/storage), and the change applies on restart. Since 26.11.1300 the Storage, Network and Advanced settings show an Apply now strip. An admin re-authenticates, the startup checks run, settings.restartRequested is recorded, and the instance restarts itself. Changing the backend, the blob endpoint, the container or the credential does not move the bytes already stored.

The Installer-byte migration panel on the same page copies them, from the active backend to the one you configured but have not switched to, in either direction (since platform 0.81.0):

  • Copy, then verify. Each installer is streamed to the target, hashed, and committed only if its digest matches. An installer the target already holds is skipped, so a run can be repeated. One that fails is counted and the run goes on; repeated failures that look systemic stop it.
  • Live, and cancellable. The panel shows progress as it runs. Cancelling leaves no half-written installer in the target.
  • A verdict before the switch. A verification pass checks the target, and the panel gives a readiness verdict that fails closed: it reads safe to switch only when every installer is accounted for, and gaps you choose to accept must be acknowledged. Saving the new backend consults that verdict and warns before it switches.
  • Who. On Community Edition the admin starts, cancels and acknowledges a run, and each start is recorded in the audit trail.

The source is never deleted. Once the new backend is in service, clearing the old one is up to you.

The deployment config page

Some settings can still be set only in the deployment config: environment variables in your compose file, or appsettings. Settings › Deployment config (/community/settings/deployment-config, since platform 0.226.0) lists them read-only, grouped by area (agent rollout, the rollback evaluator, the update pipeline, the wake channel, CVE sync, detonation and others). Each entry gives its live value, its config key, one line on what it does, and where the value came from: deployment config when the key is set, code default when it is not. A change needs a restart.

The page is an allow-list: it reads only the keys it names, so no secret, connection string, path or URL can appear on it. Settings that have moved into the console are on Settings › Rollout & safety instead: since platform 26.11.2200, reading the public winget repository, refusing agents without a device key and the feed token lifetime, and since 26.11.2600 the agent rollout loop. For each, a deployment value of false still holds it off.

The duration trap. The page shows a duration as the service parsed it. .NET reads 24:00:00 as 24 days, not 24 hours, so a value set that way shows as 24 days. Write one day as 1.00:00:00.

Changed from default

Settings › Advanced (/community/settings/advanced) carries a Changed from default panel (since platform 0.237.0). It lists every setting someone has written and every per-package install-argument override, oldest first, each with who wrote it, when, how long ago and through which path. A value older than 30 days carries a neutral mark, because many stored values are meant to stay. A secret is listed with who and when, never with its value.

A setting can name a recommended value. While one is off it, a banner above the lists names the setting, both values, who set it and why the other value is recommended. Today one setting names one: Wep.Catalog.Detonation.HyperVSandbox.InteractiveUiProbeEnabled, the sandbox’s interactive-UI probe. It ships off until the probe is validated on a real sandbox VM, and on is recommended: without it, a test install that waits on a wizard runs to the installer timeout instead of failing as needing interaction within about a minute. Expect that banner on a new install. The panel is read-only, and each row links to the page that owns the value.

Where this stops

  • Readiness is narrow. It checks the database and the signer; broker, detonation and agent health are in the console.
  • Storage changes need a restart, and a backend change moves nothing without the migration panel.
  • The migration copies. It never removes installers from the old backend.
  • Two backends. Local disk and Azure Blob; S3-compatible storage is not built.
  • Deployment config is read-only in the console. Change the compose file or environment and restart.