Repository navigation
v0.5.13
Upgrade notes
Two security fixes from the dependency and SAST review; both change
behaviour operators may notice.
Relay destinations (#862). The transparent TCP relay, the UDP
relay and the SNI passthrough (unknown_host = "passthrough", the
default) dial addresses the agent chose, from the gateway host. They
now classify the destination first. The new
defaults.relay_destinations is "public" by default and refuses
the unspecified address, loopback, link-local (cloud metadata
included), multicast and the private ranges, including 4via6, 6to4
and NAT64 wrappings of them; "any" restores the old behaviour.
defaults.relay_allow_cidrs admits specific ranges without turning
the policy off. On a gateway with a tailscale {} block the tailnet
ranges (100.64.0.0/10, Tailscale ULA) stay allowed. Declared
endpoints and tunnels are untouched: an internal ClickHouse or
Postgres reached through an endpoint keeps working. An agent that
reached an internal host through the relay or passthrough rather
than a declared endpoint now needs that range in
relay_allow_cidrs. SNI passthrough resolves the name itself and
dials only the classified address; a name resolving to a refused
address is refused even if it also resolves to a public one.
Peer identity (#863). A peer with no device row used to be folded
onto an existing device when its tailnet hostname matched exactly one
row; hostnames are self-asserted and reusable, so a node that took a
retired agent's name inherited its profile and credentials. Aliases
now bind to the node's control-plane StableID, recorded in a new
nullable devices.ts_node_id column (migration 0024, additive, ignored
by older binaries). Existing rows bind on the next daemon register or
address observation; traffic from a device's own IP never consulted
the fold and is unaffected. A host that rejoins as a genuinely new
node gets a fresh row and the default profile instead of being
coalesced onto its old one. Deleting a device in the dashboard now
also revokes its API token. The new defaults.unknown_peer = "no_profile" withholds every credential from a peer with no device
row; it applies only to peers without a row and covers the HTTPS side
(unknown_host = "deny" covers SNI; plain TCP to other ports is still
relayed). If tailscale.control_url ever changes while the database is
kept, clear ts_node_id on all rows first (#868).
What's Changed
- fix(gateway): bound the destinations an agent can steer a relay dial at by @piscisaureus in #862
- fix(gateway): bind a peer alias to its Tailscale node, not its hostname by @piscisaureus in #863
Full Changelog: v0.5.12...v0.5.13