## Summary
Adds a disaster recovery page.
Customers keep asking for more than the one-paragraph disaster recovery
note in the validated architecture docs.
The incident response content moved to #32402.
## Changes
- New `docs/install/operate/disaster-recovery.md` (explanation),
covering:
- database backups, including the encryption keys that live outside the
database;
- restore testing;
- what HA does and doesn't cover;
- region outages: why Coder can't fail over across regions, failing over
to a cold standby database, and what happens to workspaces in the failed
region;
- outage impact for direct and relayed connections;
- orphaned resources after a restore.
- Sidebar entry, plus links from the sizing page's disaster recovery
paragraph and the Operate landing page.
## Notes for reviewers
- The source draft says the workspace agent buffers activity while it's
disconnected. The code shows only a reconnect loop (`agent/agent.go`,
`runLoop`), so the page says the agent keeps running and reconnects, and
makes no claim about buffering.
- The claim that direct sessions survive an outage comes from
`tailnet/configmaps.go`. When the coordinator connection drops, peers
are marked lost and removed only after `lostTimeout` (15 minutes) passes
with no WireGuard handshake. The page leaves the constant out.
- The access URL step in the region failover procedure relies on agents
getting `CODER_AGENT_URL` from the access URL at build time
(`provisionersdk/scripts/bootstrap_linux.sh`,
`coderd/provisionerdserver/provisionerdserver.go`), so keeping the URL
lets agents in surviving regions reconnect without a rebuild.
- The single-region database claim rests on Coder taking one PostgreSQL
connection URL with no read-replica option, plus the latency guidance in
`docs/admin/networking/high-availability.md`.
- The PDF doesn't mention that a restored database still lists
workspaces that were deleted after the backup. The page covers this and
how to remove them with `coder delete --orphan`.
## Testing
- `make lint/emdash`, `make lint/docs-manifest`, `make lint/docs-html`,
and `make lint/docs-redirects` (offline) pass.
- markdownlint and Vale on the new and edited pages: 0 findings.
- Relative links and anchors resolve.
<details>
<summary>Plan and decision log</summary>
- Source: the "Coder Disaster Recovery" PDF attached to DOCS-1214. Its
sections cover backup, restore validation, HA, multi-region, workspace
impact, and orphaned workspaces after a restore.
- Placement: Install > Operate, next to Upgrade, because these are
day-two operations.
- Verified against code:
- Terraform state is stored in `workspace_builds.provisioner_state`.
- The built-in PostgreSQL data lives under the config root
(`cli/server.go`).
- `coder delete --orphan` removes a workspace without deleting its
resources.
- Corrected from the PDF: removed the agent "buffers activity" claim,
and added the case of workspaces that were deleted after the backup.
- Review feedback (@bpmct): added a "Plan for a region outage" section
covering no automatic cross-region failover, the single-region database,
a cold standby in a recovery region, and disk replication for workspaces
in the failed region. It replaces the two-sentence cross-region note
under the HA table.
- Split: the incident response page that this PR first included now
lives in #32402 (DOCS-1796), following review feedback that asked for a
generic incident response page.
</details>
---
_This PR was generated by Coder Agents on behalf of @nickvigilante._
---------
Co-authored-by: Ian Evans <5760366+ianjevans@users.noreply.github.com>