Bug fixes and a split-host feature ready to contribute: how would you like to receive them? (crowdsec_manager #139)

:octopus: GitHub issue crowdsec_manager #139, opened by fklnc94 on GitHub

Hi, and thanks for CrowdSec Manager.

I run it in a split setup: CrowdSec and the manager on one Docker host, Traefik, Pangolin and Gerbil on another. While setting that up I found several bugs and fixed them on a fork.

  • Each fix is its own commit with tests: Go tests against a fake Docker Engine API, and vitest for the UI.
  • In #69 you asked to discuss large changes first, so I’d like to ask how you want to receive these before opening more PRs.

Already opened: #138 builds with Go 1.27.1 and updates golang.org/x/crypto, x/net and x/text.

  • It fixes CVE-2025-68121 (critical, crypto/tls) and the rest of Trivy’s findings for the image: 1 critical and 38 high become 0.
  • It is small and does not depend on anything below.

Bugs that affect every installation

  • Simulation mode does not work.
    • cscli simulation status -o json prints text, so the page always shows global simulation as disabled and lists no scenarios.
    • The global switch sends the scenario name *, which cscli does not know.
    • Toggling a scenario does not reload CrowdSec, so CrowdSec keeps applying its decisions.
    • An unknown scenario reports success.
  • Changes that only take effect after a restart.
    • Whitelist and captcha profile changes run cscli parsers reload and cscli profiles reload. Neither command exists; they exit 1 and the error is ignored.
    • POST /api/hub/:category/install and /remove, POST /api/hub/upgrade and config snapshot restores don’t reload …

:speech_balloon: Discuss it here. Status, fixes and code review stay on GitHub.