Skip to content

Health

TapPass exposes three health endpoints following the Kubernetes probe contract:

EndpointProbeChecks
/health/liveLivenessProcess alive (no dep checks)
/health/readyReadinessDB + OPA + Redis
/health/startupStartupDB + OPA + Presidio models loaded
/healthLegacySame as /health/ready
Terminal window
curl http://localhost:9620/health/ready
{"status": "ok", "checks": {"database": "ok", "opa": "ok", "redis": "ok"}}

Returns 503 if any dependency is unhealthy.

Terminal window
curl http://localhost:9620/health/live
{"status": "ok"}

Always returns 200 if the process is running. Use for K8s liveness probe.

Terminal window
curl http://localhost:9620/health/startup

Returns 503 until Presidio NER models are loaded (~10-30s on cold start).

Terminal window
curl http://localhost:9620/health
{"status": "healthy", "version": "0.2.0", "storage": "postgresql"}

Backward-compatible. Prefer /health/ready for new deployments.

Fleet health overview: all agents with scores, sorted worst-first.

Prometheus metrics endpoint (requires admin auth).

Key metrics:

MetricTypeDescription
tappass_http_requests_totalCounterRequests by method, path, status
tappass_pipeline_blocks_totalCounterPipeline blocks
tappass_pii_detections_totalCounterPII detections by type
tappass_capability_tokens_totalCounterTokens minted/denied/expired
tappass_active_agentsGaugeActive agents

CLI deep diagnostic:

Terminal window
tappass doctor

Checks: server connectivity, OPA health, database connectivity, SPIRE status, license validity.