Skip to content

Commit e7805ff

Browse files
committed
feat: allow node-to-node tailnet subscriptions
Remove the client-only restriction on coordinate subscribe. Nodes on the same network can now discover each other for peer-to-peer messaging. Network scoping is enforced by the runtime credential's NetworkID in StablePrincipalUUID -- a node cannot subscribe to nodes in other networks.
1 parent cd9af13 commit e7805ff

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

internal/relay/tailnet.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,6 @@ func tailnetCoordinateHandler(cfg RelayConfig, st store.Store, coord *tailnetlib
129129
}
130130
coord.UpdateNode(peerID, req.Node)
131131
case "subscribe":
132-
if claims.SubjectKind != networkauth.SubjectKindClient {
133-
_ = writeTailnetResponse(ctx, wsConn, peer.TailnetCoordinateResponse{
134-
Type: "error",
135-
Error: "only client peers may subscribe",
136-
})
137-
continue
138-
}
139132
target := strings.TrimSpace(req.TargetNode)
140133
if target == "" {
141134
_ = writeTailnetResponse(ctx, wsConn, peer.TailnetCoordinateResponse{

0 commit comments

Comments
 (0)