How shokirjonmk/firesec-uz works
Firesec is a centralized IT and security management platform: operators manage infrastructure through the web console or fsctl, while gateway agents enforce firewall policy and collectors ingest gateway and external syslog. The console also provides authentication, licensing, audit, and operational services. The graph emphasizes those documented product stages and the sampled log pipeline. Some subsystem connections are documented only at product level; those edges cite the README rather than implying unsampled implementation details were inspected.
Main entry points: api.go REST API · main.go Console runtime · searchservice.go Log search · compile.go Policy compiler
Components 20
Operator interfaces
- Web console
ui/src/routes.tsx - Firewall screens
ui/src/firewall/RulesScreen.tsx - UI API client
ui/src/api/client.ts - fsctl CLI
cli/internal/cmd/root.go
Console services
- Console runtime
console/cmd/firesec-console/main.go - REST API
console/core/api/api.go - Identity services
console/core/auth/service.go - License service
console/core/lls/service.go - Log search
console/core/logstore/searchservice.go - PostgreSQL
Gateway enforcement
- Gateway agent
gateway/cmd/gwagent/main.go - Policy compiler
gateway/compile/compile.go - nftables
Log telemetry
- ClickHouse
- Syslog collector
collector/cmd/firesec-collector/main.go - Ingest pipeline
collector/internal/pipeline/pipeline.go - ClickHouse sink
collector/internal/chsink/chsink.go - Disk spool
collector/internal/spool/spool.go
Shared domain
- Policy model
pkg/policy/model.go
Other components
- Operator
Connections 21
- Operator → Web console: uses
README.md - Operator → fsctl CLI: uses
README.md - Web console → Firewall screens: routes to
ui/src/routes.tsx - Firewall screens → UI API client: requests
- UI API client → REST API: calls
- fsctl CLI → REST API: manages through
README.md - Console runtime → REST API: configures
console/cmd/firesec-console/main.go - Console runtime → Identity services: initializes
console/cmd/firesec-console/main.go - Console runtime → License service: initializes
console/cmd/firesec-console/main.go - REST API → License service: serves license requests
- REST API → Log search: serves log search
- Log search → ClickHouse: queries
console/core/logstore/searchservice.go - Log search → PostgreSQL: resolves rule links
console/core/logstore/searchservice.go - Gateway agent → Policy compiler: compiles policy
gateway/cmd/gwagent/main.go - Policy compiler → Policy model: compiles
README.md - Policy compiler → nftables: generates rules for
README.md - REST API → Gateway agent: controls remotely
- Syslog collector → Ingest pipeline: starts
collector/cmd/firesec-collector/main.go - Ingest pipeline → ClickHouse sink: writes batches
collector/internal/pipeline/pipeline.go - Ingest pipeline → Disk spool: buffers overflow
collector/internal/pipeline/pipeline.go - ClickHouse sink → ClickHouse: stores logs