mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
Require auth_mode "encrypted" and reject any plaintext auth_token in CHANNEL_OPEN so the relay server never receives a paired phone's API credential. After X25519 KEY_EXCHANGE completes, require the first encrypted DATA frame to carry a valid channel_auth token before any proxy request is served, close unauthenticated channels after an auth deadline, reject duplicate channel_auth payloads, and send CHANNEL_OPEN with authenticated=true on success so the relay server registers push device tokens only for authenticated sessions. Update relay runtime, public relay, and security docs to reflect the zero-trust relay boundary, and add unit and managed cross-repo tests covering plaintext token refusal, pre-auth request blocking, and relay impersonation rejection. Contract-Neutral: Hardens relay channel authentication inside the encrypted tunnel without changing public HTTP API contracts