How esnet-security/scram works
Main Components
a) Frontend Layer:
• Nginx Web Server (reverse proxy)
• Static Assets
• Web Interface (Django Templates)
b) Application Layer:
• Django Application Server
• REST API
• WebSocket Handlers
• Celery Workers (for async tasks)
• Celery Beat (for scheduled tasks)
• Celery Flower (monitoring)
c) Data Layer:
• PostgreSQL Database
• Redis (for channel layers)
d) Network Control Layer:
• GoBGP Container
• Translator Service
Component Relationships
Client Tier -> Nginx -> Django -> Data Stores
• > Static Assets
WebSocket Clients <-> Django Channels <-> Redis
• v
• Translator
• v
• GoBGP
• v
• Network Infrastructure
Key Elements to Highlight
a) Authentication Flow:
• Both OIDC and local authentication paths
• Authentication middleware
b) Data Flow:
• REST API endpoints
• WebSocket connections
• Database interactions
• BGP route management
c) Security Boundaries:
• Docker container isolation
• Network segmentation
• Authentication boundaries
Specific Implementation Details
Key features:
• Action Types system
• IP/CIDR management
• BGP null routing capability
• WebSocket-based real-time updates
• Historical tracking system
Environment Separation
Different configurations for:
• Development environment
• Production environment
• Test environment