Mining/pkg/mining
snider 4072bdaf0d fix: Address 16 security findings from parallel code review
Critical fixes (6):
- CRIT-001/002: Add safeKeyPrefix() to prevent panic on short public keys
- CRIT-003/004: Add sync.Once pattern for thread-safe singleton initialization
- CRIT-005: Harden console ANSI parser with length limits and stricter validation
- CRIT-006: Add client-side input validation for profile creation

High priority fixes (10):
- HIGH-001: Add secondary timeout in TTMiner to prevent goroutine leak
- HIGH-002: Verify atomic flag prevents timeout middleware race
- HIGH-004: Add LimitReader (100MB) to prevent decompression bombs
- HIGH-005: Add Lines parameter validation (max 10000) in worker
- HIGH-006: Add TLS 1.2+ config with secure cipher suites
- HIGH-007: Add pool URL format and wallet length validation
- HIGH-008: Add SIGHUP handling and force cleanup on Stop() failure
- HIGH-009: Add WebSocket message size limit and event type validation
- HIGH-010: Refactor to use takeUntil(destroy$) for observable cleanup
- HIGH-011: Add sanitizeErrorDetails() with debug mode control

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 17:44:49 +00:00
..
component feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00
auth.go feat: Rename XMRig references to Miner and add miner.cpp for new platform 2025-12-31 16:38:48 +00:00
auth_test.go fix: Implement 6 quick wins from 109-finding code review 2025-12-31 15:03:46 +00:00
bufpool.go feat: Implement multiple code review improvements 2025-12-31 15:45:25 +00:00
circuit_breaker.go fix: Implement 6 quick wins from 109-finding code review 2025-12-31 15:03:46 +00:00
circuit_breaker_test.go fix: Implement 6 quick wins from 109-finding code review 2025-12-31 15:03:46 +00:00
component.go feat: Implement logging functionality for miners with log buffer and retrieval endpoint 2025-12-29 22:10:45 +00:00
config_manager.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
container.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
container_test.go test: Add error path unit tests for context cancellation and cleanup 2025-12-31 13:04:20 +00:00
dual_mining_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
errors.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
errors_test.go feat: Add rate limiter with cleanup and custom error types 2025-12-31 10:56:26 +00:00
events.go feat: Rename XMRig references to Miner and add miner.cpp for new platform 2025-12-31 16:38:48 +00:00
events_test.go feat: Add context propagation, state sync, and tests 2025-12-31 10:10:39 +00:00
file_utils.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
manager.go fix: Implement 6 quick wins from 109-finding code review 2025-12-31 15:03:46 +00:00
manager_interface.go feat: Enhance mining configuration management and API documentation 2025-12-07 16:26:18 +00:00
manager_race_test.go test: Add race condition tests and fix AVG float64 scan bug 2025-12-31 11:07:29 +00:00
manager_test.go feat: Rename XMRig references to Miner and add miner.cpp for new platform 2025-12-31 16:38:48 +00:00
metrics.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
miner.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
miner_factory.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
miner_factory_test.go refactor: Add MinerFactory to centralize miner instantiation 2025-12-31 11:12:33 +00:00
mining.go fix: Address 16 security findings from parallel code review 2025-12-31 17:44:49 +00:00
mining_profile.go feat: Add setup wizard and profile management components with styling 2025-12-10 22:17:38 +00:00
mining_test.go fix: Update tests to handle autostart behavior 2025-12-31 10:17:14 +00:00
node_service.go feat: Implement peer allowlist for P2P security (P2P-CRIT-1) 2025-12-31 15:06:52 +00:00
profile_manager.go fix: Address 16 security findings from parallel code review 2025-12-31 17:44:49 +00:00
profile_manager_test.go test: Add comprehensive profile_manager_test.go (TEST-CRIT-2) 2025-12-31 15:20:00 +00:00
ratelimiter.go feat: Add rate limiter with cleanup and custom error types 2025-12-31 10:56:26 +00:00
ratelimiter_test.go feat: Add rate limiter with cleanup and custom error types 2025-12-31 10:56:26 +00:00
repository.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
repository_test.go test: Add error path unit tests for context cancellation and cleanup 2025-12-31 13:04:20 +00:00
service.go fix: Address 16 security findings from parallel code review 2025-12-31 17:44:49 +00:00
service_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
settings_manager.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
settings_manager_test.go feat: Add CPU throttling, settings manager, and multi-miner tests 2025-12-30 16:35:02 +00:00
simulated_miner.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
stats_collector.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
stats_collector_test.go feat: Add API authentication and comprehensive code review fixes 2025-12-31 14:07:26 +00:00
supervisor.go feat: Add database migration tests and task supervisor 2025-12-31 15:50:17 +00:00
syslog_unix.go refactor: Replace log.Printf with structured logging 2025-12-31 11:48:45 +00:00
syslog_windows.go refactor: Replace log.Printf with structured logging 2025-12-31 11:48:45 +00:00
throttle_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
ttminer.go refactor: Add reliability fixes, centralized version fetching, and CHANGELOG 2025-12-31 13:33:42 +00:00
ttminer_start.go fix: Address 16 security findings from parallel code review 2025-12-31 17:44:49 +00:00
ttminer_stats.go refactor: Add StatsCollector pattern with miner type identification 2025-12-31 13:02:01 +00:00
version.go fix: Implement 6 quick wins from 109-finding code review 2025-12-31 15:03:46 +00:00
xmrig.go feat: Rename XMRig references to Miner and add miner.cpp for new platform 2025-12-31 16:38:48 +00:00
xmrig_gpu_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
xmrig_start.go feat: Rename XMRig references to Miner and add miner.cpp for new platform 2025-12-31 16:38:48 +00:00
xmrig_stats.go refactor: Add StatsCollector pattern with miner type identification 2025-12-31 13:02:01 +00:00
xmrig_test.go feat: Rename XMRig references to Miner and add miner.cpp for new platform 2025-12-31 16:38:48 +00:00