Commit Graph

7 Commits

Author SHA1 Message Date
2f76905880 Add c3box mesh dashboard theme variables to sidebar.js
- Added --bg, --fg, --dim variables for c3box mesh dashboard
- Light theme: #e8f5e9 (bg), #006622 (fg), #c8e6c9 (dim)
- Dark theme: #0a0e14 (bg), #33ff66 (fg), #1a1f2e (dim)
- Added body class="crt-light" to c3box frontend source

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-26 06:50:43 +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
2f85e01095 Add mDNS peer discovery, mock topology visualization, and navbar to C3BOX
mDNS Discovery:
- Implement zeroconf mDNS service registration (_secubox._udp)
- Implement peer discovery via mDNS browsing
- TXT records contain DID, role, version
- Auto-discovery of other SecuBox nodes on LAN

Topology Visualization:
- Add 7 mock nodes for demo (2 relays, 4 edges, 1 air-gapped)
- Generate edges connecting edge nodes to relays
- Force-directed layout with role-based positioning
- Node coordinates calculated based on role

C3BOX Dashboard:
- Add shared sidebar navigation (consistent with other modules)
- Responsive layout with main-content wrapper
- Air-gapped node role styling

Control Server:
- Enhanced topology endpoint with node IPs and calculated positions
- Edge generation logic for relay-link and edge-link types

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-25 08:35:09 +01:00
12fb41fd30 Add Unix socket control server for secuboxd CLI communication
Implement control server at /run/secuboxd/topo.sock for secuboxctl:
- internal/control/server.go: Unix socket server with command handling
- Commands: mesh.status, mesh.peers, mesh.topology, mesh.nodes
- Commands: node.info, node.rotate, telemetry.latest, ping
- JSON responses with proper error handling
- Graceful shutdown and socket cleanup

Expand secuboxctl CLI with new commands:
- mesh topology: Show mesh topology graph
- mesh nodes: List mesh nodes with ZKP status
- telemetry latest: Show system metrics

All commands tested and working on VM.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-25 08:19:37 +01:00
26a826f4a5 Fix systemd services for VM deployment
- secuboxd.service: Change Type from notify to simple, run as root
- c3box.service: Remove config file requirement, use command-line flags
- Add secuboxd-prod.yaml with production paths
- Add daemon/build/ to gitignore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-25 08:09:20 +01:00
19f60232a0 Implement Go daemon telemetry functions
- hamiltonian.go: Fix currentTimestamp() to use time.Now().Unix()
- telemetry.go: Implement getCPUPercent() from /proc/stat
- telemetry.go: Implement getDiskPercent() via syscall.Statfs
- telemetry.go: Implement getNFTablesRuleCount() from nft output
- telemetry.go: Implement getCrowdSecBans() from cscli

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-25 08:02:28 +01:00
4901143c78 Reorganize Go daemon and fix module compliance
- Move Go mesh daemon code to daemon/ directory
  - secuboxd mesh daemon with mDNS discovery
  - secuboxctl CLI management tool
  - c3box situational awareness dashboard
  - GK-HAM-2025 ZKP authentication system

- Add Debian packaging for secubox-daemon and secubox-c3box

- Fix maintainer in 12 packages to Gerald KERMA <devel@cybermind.fr>
  - secubox-backup, device-intel, mesh, meshname, p2p
  - roadmap, soc, tor, vortex-dns, vortex-firewall
  - watchdog, zkp

- Add JWT authentication to secubox-mesh API

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-25 07:51:17 +01:00