Skip to content
CyberbladeAssay
SourceSign in

Operations and troubleshooting

The health signals to watch, treating guardrail liveness as one of them, and the kill-first procedure when something looks wrong.

Running Assay day to day comes down to a few health signals and one emergency move. The first action for any “is Assay doing something it shouldn’t?” moment is to stop it, then investigate: never remediate blind.

Health checks

  • cbctl assay doctor: config, secrets, database, cache, TLS, and the signing key. Fails closed in production on any of them.
  • /livez: the process is up. Reports draining, still 200, during graceful shutdown so an orchestrator does not kill a pod finishing work.
  • /readyz: real dependency checks covering Postgres (required), Valkey (required), OpenBao (optional: its absence degrades grant issuance, not enforcement). MinIO is not checked.
  • /metrics: Prometheus, on the admin listener only; keep it off the public interface.

Guardrail liveness is a health signal

Check these like any other health signal, not just at go-live: a no-grant validation attempt is refused and audited; the safe-mode default excludes intrusive work; the kill switch is reachable. If any of these is off, that is a P0: stop testing until it is fixed.

When something’s wrong

  1. Kill first, then investigate

    Shell
    cbctl assay kill --reason "<what you saw>"

    Preserve evidence rather than remediating blind. The hash-chained audit is the record of exactly what ran and what was refused.

  2. Check readiness and the circuit breaker

    Check /readyz, then the target-health circuit breaker for the target in question: it may already be backing off a struggling target on its own.

  3. Restart stateless services

    Graceful shutdown drains in-flight work, and the container’s restart policy brings it back. OpenBao returns sealed after a restart and needs an unseal before the stack resumes.

The report-export queue

Export runs as a retried, dead-lettered background task. Watch queue depth and the dead-letter count, and drain dead-lettered tasks only after fixing whatever made the destination reject them, or you will just refill the queue. See Reports.