Files
tailscale/cmd
Kabir Sikand a3467e680f cmd/tailscale/cli: synthesize tag:bp//<id> for join's authkey exchange
HookResolveAuthKey requires a non-empty tag set on the OAuth-client-
secret to auth-key exchange (see feature/oauthkey/oauthkey.go), but
"tailscale join" intentionally omits --advertise-tags: the blueprint
owns the node's tag set. The join command therefore hit the hook's
"oauth authkeys require --advertise-tags" rejection before the auth
key was ever requested from the control plane.

Fill the tag in at the join call site from the resolved blueprint id:
the auto-generated tag for blueprint <id> is "tag:bp//<id>" (see
tailcfg.BlueprintTagNamespacePrefix), which is exactly the AuthTag
the paired OAuth client server-side is scoped to. The hook accepts
the request and the existing scope-mismatch validator on the corp
side catches any later drift.

Updates #cleanup

Signed-off-by: Kabir Sikand <[email protected]>
2026-05-18 16:46:21 +00:00
..