feat(wasm): expose taildrive WebDAV server and listDrivePeers via JS bridge #10
Reference in New Issue
Block a user
Delete Branch "feat/drive-wasm-bridge"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
listDrivePeers mirrors native driveRemotesFromPeers: returns empty if DriveAccessEnabled() is false, filters peers by PeerCapabilityTaildriveSharer via the live ACL cap map (lb.PeerCaps(addr).HasCapability()).
Auth is fully handled by handleServeDrive in peerapi_drive.go before our code runs — the JS handler only receives pre-authenticated, permission-scoped requests.
Test plan
The end-to-end item requires ACL
nodeAttrs/grants/Taildrive support on the control plane, which only landed in Headscale v0.29.0 (not yet released stably — onlyv0.29.0-beta.4exists as of writing). Deferred until a stable v0.29.0 release. webnet/webnet#27 has unit tests covering the JS-side bridge and IPN methods without requiring a live network.🤖 Generated with Claude Code
7c5ecfe50fto40e1346ab540e1346ab5tocada6936b9