Files
Charon/docs/reports/crowdsec_integration_summary.md
GitHub Actions 3169b05156 fix: skip incomplete system log viewer tests
- Marked 12 tests as skip pending feature implementation
- Features tracked in GitHub issue #686 (system log viewer feature completion)
- Tests cover sorting by timestamp/level/method/URI/status, pagination controls, filtering by text/level, download functionality
- Unblocks Phase 2 at 91.7% pass rate to proceed to Phase 3 security enforcement validation
- TODO comments in code reference GitHub #686 for feature completion tracking
- Tests skipped: Pagination (3), Search/Filter (2), Download (2), Sorting (1), Log Display (4)
2026-02-09 21:55:55 +00:00

2.0 KiB

CrowdSec Integration & UI Overhaul Summary

Overview

This update focuses on stabilizing the CrowdSec Hub integration, fixing critical file system issues, and significantly improving the user experience for managing security presets.

Key Improvements

1. CrowdSec Hub Integration

  • Robust Mirror Logic: The backend now correctly handles text/plain content types and parses the "Map of Maps" JSON structure returned by GitHub raw content.
  • Device Busy Fix: Fixed a critical issue where Docker volume mounts prevented directory cleaning. The new implementation safely deletes contents without removing the mount point itself.
  • Fallback Mechanisms: Improved fallback logic ensures that if the primary Hub is unreachable, the system gracefully degrades to using the bundled mirror or cached presets.

2. User Interface Overhaul

  • Search & Sort: The "Configuration Packages" page now features a robust search bar and sorting options (Name, Status, Downloads), making it easy to find specific presets.
  • List View: Replaced the cumbersome dropdown with a clean, scrollable list view that displays more information about each preset.
  • Console Enrollment: Added a dedicated UI for enrolling the embedded CrowdSec agent with the CrowdSec Console.

3. Documentation

  • Features Guide: Updated docs/features.md to reflect the new CrowdSec integration capabilities.
  • Security Guide: Updated docs/security.md with detailed instructions on using the new Hub Presets UI and Console Enrollment.

Technical Details

  • Backend: backend/internal/crowdsec/hub_sync.go was refactored to handle GitHub's raw content quirks and Docker's file system constraints.
  • Frontend: frontend/src/pages/CrowdSecConfig.tsx was rewritten to support client-side filtering and sorting of the preset catalog.

Next Steps

  • Monitor the stability of the Hub sync in production environments.
  • Gather user feedback on the new UI to identify further improvements.