GitHub issue crowdsec_manager #128, opened by
aficiomaquinason GitHub
Repo: GitHub - hhftechnology/crowdsec_manager: A web-based and mobile management interface and dashboard for CrowdSec security stack with Pangolin integration and multi proxy support- caddy, NPM, etc. This project replaces the bash script with a modern, user-friendly ShadcnUI built with Go and React. · GitHub
Suggested labels: enhancement, good first issue, area: independent-image
Suggested area: cmd/server/main.go (prereq check) + internal/config/config.go (new env var)
Summary
The independent image’s startup prerequisite check (checkPrerequisites in cmd/server/main.go:60-63 + :191-214) fatally aborts the manager when no Docker container with the name set in CROWDSEC_CONTAINER_NAME (default crowdsec) exists. The check is non-configurable, which forces every operator deploying crowdsec-manager:independent to also deploy a sibling crowdsec Docker container — even when their real CrowdSec deployment is a non-containerized one (apt-installed systemd unit, k8s DaemonSet, remote LAPI instance, etc.).
Please add an opt-in environment variable (e.g. SKIP_CROWDSEC_PREREQ=true) that, when set, downgrades the prereq check from Fatal to a Warn, so operators using the independent image without a co-located crowdsec container can still run the manager.
Our setup (why this hurts us)
We run SporeHarbor (a spore-based deployment platform for ~12 production hosts across WordPress, FreePBX, Zammad, ERPNext, etc.). On every host we install CrowdSec via the Debian/Ubuntu apt package, which gives us a systemd crowdsec.service running both the log-processing agent AND the Local API (LAPI) on 127.0.0.1:8080. This is intentional — the systemd-managed crowdsec is the single …
Discuss it here. Status, fixes and code review stay on GitHub.