Commit Graph

8 Commits

Author SHA1 Message Date
877fb9e19a fix(portal): bind Active bans to /crowdsec/decisions count (2.2.2)
Some checks are pending
License Headers / check (push) Waiting to run
2026-06-29 17:25:16 +02:00
5e4c0d2dac fix(portal): reskin to standard SecuBox template (shared sidebar + C3BOX palette)
Replace the bespoke top navbar with the shared menu-driven sidebar, swap the
P31 green theme for design-tokens/crt-light (C3BOX), wrap content in
main.main + crt-engine. Dashboard content, IDs and data-fetch JS unchanged.
Bumps secubox-portal 2.2.0 -> 2.2.1.
2026-06-29 16:49:30 +02:00
CyberMind
c2f1682c59
feat(portal): regenerate full dashboard — navbar+vhosts+certs+attacks+metrics+cookies (closes #192) (#193)
Some checks failed
License Headers / check (push) Failing after 6s
Public-facing operational dashboard for /portal/. Replaces the previous
services-grid (links to admin modules) with a live overview of:

  - Navbar: portal/soc/metablogs/publish/cookies/repo
  - Hero: overall health % + uptime + SSL days + vhost/cert/ban totals
  - Services LED grid: waf/crowdsec/haproxy/nginx/system status
  - System: CPU/RAM/Disk/Load/LXC with progress bars
  - Certificates: total/valid/expiring/critical/expired + next renewal
  - Cookie Audit RGPD: violations + by_category breakdown
  - Attacks tiles: active bans + WAF blocked % + today alerts
  - Top vhosts (last 60 min from live-hosts)
  - Top visitor ASN (geographic attribution from visitor-origin)

Wires 6 unauthenticated CORS-open endpoints:
  /api/v1/metrics/health/summary
  /api/v1/metrics/cert-status
  /api/v1/metrics/visitor-origin
  /api/v1/metrics/live-hosts
  /api/v1/cookie-audit/summary
  /api/v1/crowdsec/decisions

Auto-refresh 30s. Vanilla HTML/CSS/JS (no framework, no build step).
P31 phosphor green CRT theme preserved.

Co-authored-by: CyberMind-FR <gandalf@Gk2.net>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 05:59:17 +02:00
68e7763fc3 docs: Add Eye Remote Multigadget skill and wiki
- Add /multigadget skill covering autorun, storage, round UI, tooling
- Add Eye-Remote-Multigadget.md unified wiki hub
- Add Build-System.md to wiki with build documentation
- Add AI-BUILD-PROMPT.md for GPT/Gemini assistance
- Update sidebar and home page with new links
- Update WIP.md with #70 and #71 done

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-05-10 09:12:42 +02:00
87f6e34c01 Fix theme toggle to apply across all page content
- Updated updateInlineThemeVars() with comprehensive CSS variables
- Dark theme now uses blue-tinted colors (#0a0e14, #1a1f2e) matching c3box
- Added legacy mapping variables (--bg-dark, --bg-card, --text, etc.)
- Fixed portal body class from duplicated dark classes to crt-light

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 06:44:23 +01:00
cbe7e4ac3a Add CRT light theme across all UI modules
- Create crt-light.css with lighter P31 phosphor colors
- Create sidebar-light.css matching light theme
- Update 49 HTML files to use light theme CSS
- Add apply-light-theme.py script for automated theme application

Theme changes:
- Background: #050803 (dark) -> #e8f5e9 (mint green)
- Cards: #080d05 -> #c8e6c9 (pale green)
- P31 peak: #33ff66 -> #00dd44 (darker for contrast)
- Font: JetBrains Mono / Courier Prime

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-25 08:55:45 +01:00
e3ef51ba8b Apply CRT P31 Phosphor theme to all 38 module UIs
Converted all SecuBox module frontends to CRT design system:
- P31 Phosphor color palette (green phosphor with amber accents)
- Bloom text-shadow effects on headers and active elements
- Monospace Courier Prime typography throughout
- Dark tube glass backgrounds (#050803, #080d05)
- CRT overlays (scanlines, vignette via body classes)

Updated components across all modules:
- Buttons: CRT border glow on hover
- Cards: Inset shadows, ghost borders
- Tables: Amber headers, green data rows
- Badges: Phosphor glow variants
- Modals: Dark backdrop, dim border
- Tabs: Uppercase with letter-spacing
- Forms: Dark inputs with focus glow

Each module now includes:
- crt-system.css (design tokens)
- crt-engine.js (typewriter, audio, toasts)
- Courier Prime font preconnect
- body.crt-body.crt-scanlines classes

Modules updated (38):
auth, backup, c3box, cdn, crowdsec, dns, dpi, droplet,
exposure, gitea, haproxy, hardening, hub, mail, mail-lxc,
mediaflow, metablogizer, mitmproxy, nac, netdata, netmodes,
nextcloud, portal, publish, qos, repo, streamforge, streamlit,
system, tor, traffic, users, vhost, waf, watchdog, webmail,
webmail-lxc, wireguard

Added: scripts/apply-crt-theme.py for future theme updates

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-23 18:56:11 +01:00
7c42a80baf feat: modular nginx config + hub roadmap + new modules
Nginx architecture:
- Modular config: each module installs /etc/nginx/secubox.d/<module>.conf
- Auto-register on install, auto-remove on purge
- Main config includes from secubox.d/*.conf
- 27 module snippets for dynamic component management

Hub enhancements:
- Add roadmap widget showing migration progress (84% complete)
- Add /api/v1/hub/roadmap endpoint with category breakdown
- Shared sidebar.css for consistent styling across modules

New modules:
- secubox-portal: JWT authentication, session management
- secubox-dns: DNS server management
- secubox-mail: Mail server (Postfix) management
- secubox-webmail: Roundcube webmail
- secubox-users: User account management
- secubox-publish: Content publishing
- secubox-waf: Web Application Firewall
- secubox-mail-lxc: Mail LXC container
- secubox-webmail-lxc: Webmail LXC container

Debian packaging:
- All modules updated with modular nginx support
- postinst: creates secubox.d/, reloads nginx
- prerm: removes snippet, reloads nginx
- rules: installs nginx/<module>.conf

Scripts:
- new-package.sh: generates modular nginx files for new modules
- retrofit-nginx-modular.sh: updates existing packages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-21 20:34:01 +01:00