Tailnet Lock is the feature that stops even a compromised coordination server from adding devices behind your back. The flip side is that a new device doesn’t just join. Someone with a signing key has to approve it, and this is the command for that.
tailscale lock sign nodekey:1abddef1 tlpub:abcdef12
That is the example from the docs, with shortened keys. You run it on a signing node. It signs the new node’s key and sends the signature to the coordination server.
You don’t have to compose the arguments yourself. The docs say you can copy the ready-made command from the admin console (Machines, then Sign node, then CLI), or take it from the output of tailscale lock status on the new node.
If you create nodes with auth keys, you can sign the key ahead of time instead:
tailscale lock sign $AUTH_KEY
A locked-out node shows a Locked out badge on the Machines page, or you can search for it with the property:locked-out filter.
A few limits from the docs are worth knowing before you start. You must pick at least two signing nodes when you initialize the lock, and a tailnet can have at most 20. Android devices can’t be signing nodes. Tailnet Lock and device approval are mutually exclusive, so you use one or the other.
The caveat that matters most: a node signed by a key that is later revoked loses its authorization and needs a new signature.
Further reading: Tailnet Lock