Skip to content

Daemon Phase 1: Peer Infrastructure #23

@koad

Description

@koad

Summary

Implement daemon peer port, TLS listener, and certificate infrastructure per VESTA-SPEC-014 Phase 1.

This is the foundation for daemon-to-daemon peer networking. Without this, the portal cannot connect to live daemon state.

What to build

  • Add peer port configuration to ~/.{entity}/.env: PEER_PORT, PEER_LISTEN_ADDR, PEER_TLS_CERT, PEER_TLS_KEY
  • Generate peer certificates (RSA 2048 or ECDP P-256) at ~/.{entity}/id/peer/certificate.pem and private.key
  • Implement TLS listener on daemon peer port (default 6379)
  • Validate certificate CN matches daemon hostname
  • Log peer connections to ~/.{entity}/.logs/peers.log

Dependencies

  • VESTA-SPEC-014 Section 5 (Cryptographic Authentication)
  • Daemon startup must load peer certificate and listen before spawning workers

Acceptance criteria

  • Daemon listens on PEER_PORT with valid TLS cert
  • Can telnet to peer port and see TLS handshake
  • Certificate hash matches SHA256(certificate.pem)
  • peers.log shows "LISTENING on port 6379"

Blocks

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildBuild taskshorizon-40kVision — 3-5 year architecture

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions