How northernside/wiredshield works
Main Components Identification
a) Core Proxy Layer
• HTTP/HTTPS handling (http/https.go)
• DNS resolution (dns/dns.go)
• Reverse proxy functionality
b) Security Components
• WAF functionality
• PGP authentication system (modules/pgp/*)
• SSL handling (commands/libs/ssl.go)
c) Database Layer
Multiple database support:
• LMDB (modules/db/lmdb.go)
• PostgreSQL (modules/db/psql.go)
• DNS database (modules/db/dns.go)
d) Service Layer
• Core services (services/services.go)
• WHOIS functionality (modules/whois/whois.go)
[Incoming Traffic]
• ↓
[DNS Resolution Layer]
• ↓
[Reverse Proxy Layer]
• ↓
[WAF Security Layer]
• ↓
[Backend Services]
Component Relationships
• Blue: Traffic flow components (DNS, Proxy)
• Red: Security components (WAF, PGP, SSL)
• Green: Database components
• Yellow: Service components
Detailed Component Breakdown
a) Proxy Layer:
[HTTPS Handler] ← → [SSL Manager]
• ↓
[Route Handler]
• ↓
[Proxy Authentication]
b) Security Layer:
[WAF Rules Engine]
• ↓
[PGP Authentication]
• ↙ ↓ ↘
[Public] [Private] [Token]
c) Database Layer:
[Database Interface]
• ↙ ↓ ↘
[LMDB] [PostgreSQL] [DNS DB]
Important Elements
• Command interface connections (commands/*)
• Environment configuration flow (modules/env/env.go)
• Logging system integration (modules/logging/logging.go)
• Service discovery and management
• Database interaction paths
Implementation Details
Use these symbols:
• Diamonds: Decision points (security checks, routing)
• Rectangles: Processing components