azcomputerguru c9eba69753 Merge feature/real-time-tunnel: Phase 1 real-time tunnel infrastructure
Complete implementation of Phase 1 tunnel infrastructure enabling
persistent secure channels between GuruRMM server and agents for
future command execution and file operations.

Key Features:
- Bidirectional WebSocket tunnel protocol
- Agent mode switching (Heartbeat ↔ Tunnel) without dropping connection
- REST API for tunnel management (/open, /close, /status)
- Database session tracking with ownership validation
- Automatic cleanup on agent disconnect
- Channel multiplexing infrastructure (ready for Phase 2)

Implementation:
- Server: Database layer, API endpoints, WebSocket handlers
- Agent: State machine, tunnel manager, WebSocket integration
- Security: JWT auth, session ownership, UUID validation, SQL injection prevention
- Database: tech_sessions and tunnel_audit tables with proper constraints

Testing:
- Code review: 3 iterations, all critical issues resolved
- API endpoints: All tested with proper HTTP status codes (400, 401, 403, 404)
- Database: Migration applied successfully to production
- Deployment: Server running at 172.16.3.30:3001

Commits:
- 7c467b0 Add stub migrations and test results for Phase 1 tunnel
- 178d580 Renumber tunnel migration from 006 to 010
- 9a6d67f Fix migration syntax: Use partial unique index
- 2e6d1a6 Implement GuruRMM Phase 1: Real-time tunnel infrastructure
- 9940faf Add GuruRMM real-time tunnel architecture and planning

Production Status: DEPLOYED and OPERATIONAL
Next Phase: Terminal command execution (Phase 2)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-04-14 08:21:20 -07:00
Description
Custom Claude Code behaviors and workflows - Multi-mode operation system
1.6 GiB
Languages
MDX 55.2%
Visual Basic 6.0 40%
Python 1.3%
QuickBASIC 0.7%
PowerShell 0.7%
Other 1.9%