VISTASecurity
  • Vista Platform
  • How it works
  • Insights
  • Docs
  • Release status
  • Mailing list
Try Core
Vista Documentation
  • Editions
  • Vista Platform Platform Overview
  • Cbom
    • CBOM Artifacts
  • Features
    • Algorithm Reference
    • AI Assistant Integration (MCP)
    • Asset Approval Workflow
    • Asset Lifecycle Management
    • AWS Cloud Resource Discovery
    • Azure Cloud Resource Discovery
    • Certificate Chain Management
    • CMDB Integrations
    • CMDB Terminology Glossary
    • Compliance Framework Management
    • Crypto Risks Dashboard
    • Cryptographic Keys
    • Device Interrogation Feature
    • Discovery Feature
    • Fortinet Device Interrogation
    • Viewing Frameworks, Controls & Measurements
    • GCP Cloud Resource Discovery
    • Getting Started checklist
    • Global search (⌘K)
    • Inventory and Lenses
    • Measurement Templates
    • Inviting Members
    • Infrastructure Assets and Crypto Configurations
    • Network Spaces Feature
    • Operational Context
    • Page-local Export
    • PCAP File Ingestion
    • Remediation
    • Scopes
    • Enhanced Sensor Registration & Management Guide
    • Spreadsheet Import
    • Third-Party Systems and External Connections
    • Unified Crypto Inventory
  • Guides
    • Audit Logging User Guide
    • Cloud and Device Management Separation – Migration Guide
    • Device Auto-Discovery Troubleshooting Guide
    • Device Interrogation User Guide
    • Tenant Administrator Guide
    • Tenant User Guide
  • Operating VistaPlatform
    • Container runtime images (source of truth)
    • Platform Administrator Guide
    • Releases & Versioning
    • Service Startup and Shutdown Procedures
    • Configuration
      • Platform Integrations Configuration Guide
    • Deployment Documentation
      • Database Deployment Readiness – Sensor Management Enhancements
      • Database Migration Guide
      • Device Agent Deployment Guide
      • Managed vs In-Cluster Data Services (EKS)
      • Deployment Migration Checklist
      • Production Deployment Checklist
      • Deployment Propagation Guide
      • Vista RKE2 v1 — Customer Documentation
        • Vista — RKE2 Cluster Provisioning Guide
        • Vista Deployment Guide — RKE2 v1
        • Vista RKE2 Deployment — Pre-Flight Checklist
        • Vista Security Overview — RKE2 v1
        • Vista Support Bundle
    • Monitoring
      • Compliance Engine Event Processing Alerts
      • Compliance Log Management & Retention
      • Production Monitoring & Alerting Setup
      • System Monitoring & Alerting Guide
    • Operations
      • Notification Provider Integration Guide
    • Security
      • 🔒 Security Architecture for Cloud-Hosted Control Plane
      • Bootstrap Certificate Management
      • Certificate Management Operations Guide
      • Secrets Management Guide
    • Troubleshooting
      • Asset Approval Workflow Issues – Resolution Documentation
      • Troubleshooting Guide
      • Runbooks
        • Gateway Runbook
        • Recovery and Resume After Reboot
Vista/Docs

Gateway Runbook

Purpose

Operational guide for the API gateway (Traefik) in dev/prod Compose.

Key behaviors

  • Gateway-first: all traffic via gateway; prefixes preserved
  • Dynamic service discovery: Traefik watches Docker labels and config files automatically
  • Resilience: Retry middleware with configurable attempts for transient backend failures
  • Auto-reload on change: Traefik watches config files and picks up changes without manual reload
  • mTLS Support: Client certificate passthrough for sensor routes
  • Binary Downloads: Direct file serving for sensor artifacts

Quick checks

# Check gateway health
curl -i http://localhost:8080/api/v1/health

# Tail logs
docker logs -f crypto-api-gateway

# Validate config in container
docker compose exec api-gateway traefik healthcheck

# Show current config
docker compose exec api-gateway cat /etc/traefik/traefik.yaml

Common fixes

# Re-generate configs (dev)
DEPLOY_ENV=development NODE_ENV=development make generate
node scripts/generate-traefik-config.mjs

# Traefik watches config files automatically and picks up changes without manual reload.

mTLS Configuration

Client Certificate Passthrough

For sensor outbound routes requiring mTLS validation, Traefik uses middleware to pass client certificate headers to backend services. Configure TLS options and passthrough headers in dynamic.yaml.

Binary Download Routes

For sensor binary downloads, Traefik routes requests to the sensor-manager backend which serves files directly. Content-Type and Content-Disposition headers are set by the backend service.

Gateway Termination Strategy

Development:

  • Gateway terminates TLS and forwards client cert headers
  • Services validate certificates using forwarded headers
  • Allows easier debugging and certificate inspection

Production:

  • Gateway can terminate TLS with client cert validation
  • Forward certificate details via headers to services
  • Or pass raw TLS to services for end-to-end encryption

Troubleshooting

Common Issues

  • 502 Bad Gateway: upstream container restarted; verify service /health (Traefik auto-detects recovered services)
  • Missing CORS headers: ensure requests go through gateway and Origin matches allowed map
  • 404 at service root: expected for many services; test a concrete endpoint
  • mTLS validation failures: check client certificate CN matches sensor ID
  • Binary download failures: verify artifacts directory exists and is accessible

mTLS Debugging

# Test sensor registration endpoint
curl -v -X POST http://localhost:8080/api/v1/sensor-manager/sensors/register 
  -H "Content-Type: application/json" 
  -d '{"registration_key": "test-key", "name": "test-sensor"}'

# Test binary download
curl -v http://localhost:8080/api/v1/sensor-manager/downloads/sensor/linux/amd64

# Check client certificate headers (if TLS terminated at gateway)
curl -v -H "X-SSL-Certificate-Subject: CN=sensor-123" 
  http://localhost:8080/api/v1/sensor-manager/sensors/sensor-123/heartbeat

Certificate Management

  • Certificate Generation: Automatic during sensor registration
  • Certificate Validation: CN must match sensor ID in route parameter
  • Certificate Rotation: Use sensor management UI or API endpoints
  • Certificate Storage: Backend services handle certificate persistence

References

  • docsv4/architecture/api-gateway-patterns.md
  • docsv4/development/standards/QUICK_REFERENCE.md
  • docsv4/operations/security/certificates.md
  • docsv4/product/features/sensor-registration.md
← Runbooks Recovery and Resume After Reboot →

View source on GitHub · Published from 470d8ee

On this page
  • Purpose
  • Key behaviors
  • Quick checks
  • Common fixes
  • mTLS Configuration
  • Client Certificate Passthrough
  • Binary Download Routes
  • Gateway Termination Strategy
  • Troubleshooting
  • Common Issues
  • mTLS Debugging
  • Certificate Management
  • References
VISTASecurity

Vista Platform is a self-hosted cryptographic system of record for continuous discovery, evaluation, action, and proof.

Vista Platform

How it works
Governance
Post-Quantum
Core, Enterprise & MSP
Try Core

Resources

About
Insights
Documentation
Release status
GitHub ↗
info@vistasecurity.io
Join the mailing list

© 2026 Lakeshore Labs LLC. Vista Security is a brand of Lakeshore Labs LLC. All rights reserved.