Mining/pkg/node
snider f65db3f5c4 feat: Implement peer allowlist for P2P security (P2P-CRIT-1)
Add PeerAuthMode to control peer registration:
- PeerAuthOpen: Allow all peers (backward compatible default)
- PeerAuthAllowlist: Only allow pre-registered peers or allowlisted public keys

New features:
- PeerRegistry.SetAuthMode/GetAuthMode for mode control
- PeerRegistry.AllowPublicKey/RevokePublicKey for key management
- PeerRegistry.IsPeerAllowed check before connection acceptance
- Transport rejects unauthorized peers with proper handshake rejection

New API endpoints:
- GET/PUT /peers/auth/mode - Get/set authentication mode
- GET/POST/DELETE /peers/auth/allowlist - Manage allowlisted keys

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 15:06:52 +00:00
..
bundle.go refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00
bundle_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
controller.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
identity.go refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00
identity_test.go fix: Add NewNodeManagerWithPaths for testing isolation 2025-12-31 03:25:43 +00:00
message.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
message_test.go refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00
peer.go feat: Implement peer allowlist for P2P security (P2P-CRIT-1) 2025-12-31 15:06:52 +00:00
peer_test.go refactor: Remove unused code and fix nil dereference issues 2025-12-31 09:24:12 +00:00
protocol.go refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00
protocol_test.go refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00
transport.go feat: Implement peer allowlist for P2P security (P2P-CRIT-1) 2025-12-31 15:06:52 +00:00
worker.go refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00
worker_test.go refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00