Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.

fix(node): bootstrap dials are best-effort#11

Closed
filinvadim wants to merge 1 commit intomainfrom
claude/compress-nodeauthinfo-CWZ4u
Closed

fix(node): bootstrap dials are best-effort#11
filinvadim wants to merge 1 commit intomainfrom
claude/compress-nodeauthinfo-CWZ4u

Conversation

@filinvadim
Copy link
Copy Markdown
Member

@filinvadim filinvadim commented Apr 26, 2026

Closing — superseded. The bootstrap PSK-reset issue was the camouflage transport (now fixed via github.com/Warp-net/libp2p-camouflage-transport). New PR for the Message envelope fix follows.

@filinvadim filinvadim marked this pull request as draft April 26, 2026 19:38
The server's auth middleware unmarshals every external stream payload as
the canonical Message envelope (body / message_id / node_id / path /
timestamp / version / signature) before routing to the handler.
WarpnetClient.pair() was sending the AuthNodeInfo JSON unwrapped, so the
middleware refused the stream:

    middleware: auth: unmarshaling data: /private/post/admin/pair/0.0.0
    {"user_id":"...","token":"...","psk":"...",...} <nil>

Mirror request(): build a WarpnetEnvelope around the raw AuthNodeInfo
JSON, sign the body, and send the envelope JSON. The body inside the
envelope is the original AuthNodeInfo JSON the QR carried, so the pair
handler's token comparison against serverAuthInfo.Token still matches
byte-for-byte.
@filinvadim filinvadim force-pushed the claude/compress-nodeauthinfo-CWZ4u branch from 671a33e to 77b3192 Compare April 26, 2026 21:33
@filinvadim filinvadim closed this Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants