Major Features: - Add comprehensive 6-step setup wizard for CrowdSec initial configuration - Automated hub update, collection installation, and bouncer configuration - Complete turnkey solution requiring zero manual configuration Wizard Flow: 1. Welcome & Prerequisites - Check CrowdSec and LAPI status 2. Update CrowdSec Hub - Fetch latest security collections 3. Install Collections - Pre-selected security packs (ssh-bf, http-cve, linux) 4. Configure Firewall Bouncer - Auto-register with API key generation 5. Enable & Start Services - Start bouncer and verify nftables 6. Verification & Summary - Show completion status with statistics UI Components: - Visual stepper with active/complete/pending states - Real-time progress indicators and status badges - Auto-advancement after successful operations - Professional dark-themed styling with animations - Fully responsive design (mobile/tablet/desktop) New Files: - htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js (815 lines) - htdocs/luci-static/resources/crowdsec-dashboard/wizard.css (578 lines) Backend Enhancements: - Add check_wizard_needed() RPC method for first-time setup detection - Add wizard_state() RPC method for wizard initialization - Update API module with wizard method declarations - Add wizard menu item (order: 5, appears first in CrowdSec section) - Update ACL permissions for wizard RPC methods User Experience: - < 2 minute complete CrowdSec setup from fresh install - Clear visual feedback at each step - Error handling with retry capability - Final verification shows all systems operational Version: 0.6.0-1 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
# Copyright (C) 2024 CyberMind.fr - Gandalf
|
|
#
|
|
# LuCI CrowdSec Dashboard - Real-time security monitoring interface
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=luci-app-crowdsec-dashboard
|
|
PKG_VERSION:=0.6.0
|
|
PKG_RELEASE:=1
|
|
PKG_ARCH:=all
|
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_MAINTAINER:=CyberMind <contact@cybermind.fr>
|
|
|
|
LUCI_TITLE:=LuCI CrowdSec Dashboard
|
|
LUCI_DESCRIPTION:=Real-time security monitoring dashboard for CrowdSec on OpenWrt
|
|
LUCI_DEPENDS:=+luci-base +luci-app-secubox +luci-lib-jsonc +rpcd +rpcd-mod-luci
|
|
|
|
LUCI_PKGARCH:=all
|
|
|
|
|
|
# File permissions (CRITICAL: RPCD scripts MUST be executable 755)
|
|
# Format: path:owner:group:mode
|
|
# - RPCD scripts: 755 (executable by root, required for ubus calls)
|
|
# - Helper scripts: 755 (if executable)
|
|
# - Config files: 644 (readable by all, writable by root)
|
|
# - CSS/JS files: 644 (set automatically by luci.mk)
|
|
PKG_FILE_MODES:=/usr/libexec/rpcd/luci.crowdsec-dashboard:root:root:755
|
|
|
|
include $(TOPDIR)/feeds/luci/luci.mk
|
|
|
|
define Package/$(PKG_NAME)/conffiles
|
|
/etc/config/crowdsec-dashboard
|
|
endef
|
|
|
|
# call BuildPackage - OpenWrt buildance
|