How linagora/crowdsieve works
CrowdSieve is a CrowdSec filtering proxy with a local dashboard. CrowdSec sends alerts to the proxy; it stores them locally, applies configured rules, and selectively forwards alerts to CAPI. The dashboard exposes local alerts, analytics, decisions, bouncer metrics, and analyzer controls; analyzers query Loki and can push bans to LAPI servers. The graph also shows the proxy’s database and validation layers. Some dashboard-to-proxy wiring and route internals are unsampled, so uncertain links are omitted or marked unverified.
Main entry points: server.ts Proxy server · analyzers/index.ts Analyzer scheduler · storage/index.ts Alert and metrics storage · src/index.ts Application entry point
Components 25
Proxy and filtering
- Proxy server
src/proxy/server.ts - Signal routes
src/proxy/routes/signals.ts - Proxy API routes
src/proxy/routes/api.ts - Usage metrics routes
src/proxy/routes/usage-metrics.ts - Filter engine
src/filters/implementations/expression.ts - Configuration
src/config/index.ts - Client validation
src/validation/index.ts
Analysis and decisions
- Analyzer scheduler
src/analyzers/index.ts - Analyzer rules
src/analyzers/config.ts - Loki source
src/analyzers/sources/loki.ts - Detection engine
src/analyzers/detection.ts - Decision pusher
src/analyzers/pusher.ts - Decision replication
src/replication/index.ts
Persistence and enrichment
- Alert and metrics storage
src/storage/index.ts - Database adapter
src/db/index.ts - GeoIP enrichment
src/geoip/index.ts
Dashboard and access
- Dashboard interface
dashboard/components - Dashboard API
dashboard/app/api - Dashboard authentication
dashboard/lib/oidc
Other components
- CrowdSec LAPI clients
- CrowdSec CAPI
- CrowdSec LAPI servers
- Dashboard user
- OIDC provider
- Application entry point
src/index.ts
Connections 34
- CrowdSec LAPI clients → Proxy server: sends requests
README.md - Proxy server → Signal routes: registers routes
src/proxy/server.ts - Proxy server → Proxy API routes: registers routes
src/proxy/server.ts - Proxy server → Usage metrics routes: registers routes
src/proxy/server.ts - Proxy server → Filter engine: uses filters
src/proxy/server.ts - Proxy server → Alert and metrics storage: uses storage
src/proxy/server.ts - Proxy server → Client validation: uses validation
src/proxy/server.ts - Proxy server → Decision replication: uses replication
src/proxy/server.ts - Proxy server → Configuration: uses config
src/proxy/server.ts - Signal routes → CrowdSec CAPI: forwards alerts
README.md - Signal routes → Alert and metrics storage: records alerts
- Usage metrics routes → Alert and metrics storage: records metrics
- Alert and metrics storage → Database adapter: reads and writes
src/storage/index.ts - Alert and metrics storage → GeoIP enrichment: enriches IPs
src/storage/index.ts - Client validation → CrowdSec CAPI: validates clients
src/validation/index.ts - Application entry point → Database adapter: initializes database
src/index.ts - Application entry point → Proxy server: starts server
src/index.ts - Application entry point → Analyzer scheduler: starts analyzers
src/index.ts - Application entry point → GeoIP enrichment: initializes GeoIP
src/index.ts - Analyzer scheduler → Analyzer rules: loads rules
src/analyzers/index.ts - Analyzer scheduler → Loki source: resolves source
src/analyzers/index.ts - Analyzer scheduler → Detection engine: analyzes logs
src/analyzers/index.ts - Analyzer scheduler → Decision pusher: pushes decisions
src/analyzers/index.ts - Loki source → Loki source: queries logs
src/analyzers/sources/loki.ts - Decision pusher → CrowdSec LAPI servers: pushes bans
README.md - Signal routes → Decision replication: replicates decisions
README.md - Decision replication → CrowdSec LAPI servers: sends decisions
src/replication/index.ts - Dashboard user → Dashboard interface: views dashboard
README.md - Dashboard interface → Dashboard API: requests data
- Dashboard API → Proxy server: queries proxy
- Dashboard API → CrowdSec LAPI servers: queries decisions
README.md - Dashboard API → CrowdSec LAPI servers: sends manual bans
README.md - Dashboard user → Dashboard authentication: authenticates
README.md - Dashboard authentication → OIDC provider: uses OIDC
README.md