Skip to main content

Production Security

Comprehensive security hardening guide for Hystersis production deployments. Covers authentication, encryption, network security, multi-tenant isolation, and compliance.

Authentication Hardening

API Key Management

Key Rotation Strategy

Encryption

TLS Configuration

Database Encryption

Network Security

Firewall Rules

Kubernetes Network Policies

Multi-Tenant Isolation

Tenant Scoping

Data Segregation

  • Neo4j — Row-level security via tenant_id property with enforced query filters
  • Qdrant — Per-tenant collections with payload filtering
  • Redis — Namespace-prefixed keys tenant:{id}:*
  • Object Storage — Per-tenant buckets/prefixes

API Key Tenant Binding

Compliance

GDPR Compliance

SOC 2 Controls

Audit Logging

All API operations emit audit events:

Security Checklist

Pre-Production Checklist

  • All API endpoints enforce authentication (X-API-Key or session)
  • TLS 1.2+ configured on all external-facing services
  • Internal service communication uses TLS
  • API keys are scoped with minimum necessary permissions
  • Key rotation policy in place (90-day cycle)
  • RBAC roles configured and tested
  • Multi-tenant isolation verified
  • Rate limiting enabled (100r/s default)
  • Security headers configured (HSTS, CSP, X-Frame-Options)
  • Database ports not exposed externally
  • Secret management configured (not hardcoded)
  • Audit logging enabled and tested
  • Backup encryption enabled
  • Network policies restrict pod communication
  • Container images scanned for vulnerabilities
  • Dependency audit completed

Runtime Security

  • Run containers as non-root user
  • Read-only root filesystem
  • Drop all Linux capabilities
  • No privileged containers
  • Resource limits enforced (CPU, memory)
  • Pod security standards enforced
  • Network policies active
  • Secret rotation automated

See Also