04 · Public-Safe Operations & Deployment Runbook

SSOT Status: Authoritative Specification

Machine Source: spec/fiderail.manifest.json (schemaVersion: 1.0.0)

Release: v2.3.5

This runbook is public-safe and never contains server IPs, SSH ports, private keys, or RPC/proxy tokens.


1. Production Topology

Internet / AI Agents
   │
   ▼ HTTPS (Cloudflare Proxy · Full Strict TLS)
┌──────────────────────────────────────────────────────────┐
│ fiderail.com     (Trust Radar Web UI + Audit Report)     │
│ api.fiderail.com (REST / MCP HTTP / Well-Known Keys)     │
└──────────────┬───────────────────────────────────────────┘
               │ reverse_proxy (Caddy 2 · TLS :443 / :80)
               ▼
┌──────────────────────────────────────────────────────────┐
│ 127.0.0.1:8787 (fiderail-api.service, Node.js >= 22.13)  │
│        ▲                                                 │
│  [Primary]:  PostgreSQL 16 (127.0.0.1:5432, partitioned) │
│  [Dev / CI]: SQLite WAL (FIDERAIL_DB_PATH)               │
│        ▲                                                 │
│ fiderail-indexer.service (4-Chain Workers + Bazaar + L1) │
│        ▲ Daily compressed pg_dump (.timer)               │
│ /var/backups/fiderail/                                   │
└──────────────────────────────────────────────────────────┘

Public Endpoints & Contacts


2. Host Baseline & Hardening (Debian 12)


3. Environment Configuration & Ed25519 State Root Signing

Configure /etc/fiderail/fiderail.env from deploy/fiderail.env.example:


4. Backup, Migration, and Verification Checklist

  1. Daily PostgreSQL 16 Compressed Backup:
   pg_dump "$DATABASE_URL" --format=custom --compress=6 --file="/var/backups/fiderail/fiderail-pg16-$(date -u +%Y%m%dT%H%M%SZ).dump"
  1. Lossless SQLite to PostgreSQL 16 Migration:
   npm run migrate:sqlite-to-pg -- ./data/fiderail-backup.db "$DATABASE_URL"
  1. Post-Deploy Verification: