Kristoffer Dalby
7cdecd4e78
servertest: fail on skip entries no lifecycle replay reads
...
Consumers check entries under their own capture only, so a bare or
misspelled key never went stale.
2026-10-30 14:55:35 +00:00
Kristoffer Dalby
f49add10bb
servertest: check route continuity in every streamed step
...
Removal and route drops were judged only on steps SaaS sent frames for;
silent steps and a clear-then-restore within a step went unchecked.
2026-10-30 14:55:35 +00:00
Kristoffer Dalby
a391107369
servertest: fail step checks that never hold
...
A match on the last sample before the deadline no longer passes.
2026-10-30 14:55:35 +00:00
Kristoffer Dalby
6e303d0027
servertest: keep the address family in filter comparisons
...
A rule missing one family of a peer's addresses compared equal.
2026-10-30 14:55:35 +00:00
Kristoffer Dalby
6c6648b4e5
servertest: check peer visibility, routes and addresses apart
...
A listed difference in one no longer hides the others; the exit route
entries now key the AllowedIPs check alone.
2026-10-30 14:55:35 +00:00
Kristoffer Dalby
4348f6b545
servertest: check peers and filters apart after a via source loss
...
The user node's filter already matches SaaS and is now asserted.
2026-10-30 14:55:35 +00:00
Kristoffer Dalby
629eb158a3
policy/v2: add grant port list refusal capture
...
Grant and ACL refusals share one check-keyed refused/message check.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
4912ec1231
servertest, state: add map delivery golden data
...
A retag through the API, a running peer's DERP, disco, hostname and
port, down and up gaps around policy pushes; peers, filters and frames
per node.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
58982b8d8c
servertest: add via HA failover golden data
...
One route on a non-via router and a via pair through crashes and
returns, the via group down, expiry, approval loss, withdraw,
re-advertise and delete; route owner and peers per viewer per step.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
0b9f8cb6c0
servertest: join replayed routers with their routes
...
A route update sent after the join could be overtaken by the stream's
first request and dropped; the probe joined with the routes set.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
c5d037b347
servertest, hscontrol: add ephemeral, expiry, pending login golden data
...
Ephemeral devices through logout, deletes, re-auth and collection;
expired routers and nodes, a client's own expiry and logout; a login
waiting across restarts, replayed exchange by exchange.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
7f82bab0ef
servertest: add login flag, endpoint, disco rotation and expiry helpers
...
WithLoginFlags and WithEndpoints shape what a client sends; RotateDisco
logs in again on a new disco key and leaves an auth URL waiting;
SetExpirySooner asks for an earlier key expiry.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
4501c49d16
hscontrol, servertest: add v2 OAuth and policy API golden data
...
OAuth clients, tokens, keys and tag writes by principal, and policy
writes over a baseline, replayed through v1 and v2; a deleted parent
client's key joins real clients.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
f60eff1bd8
policy/v2, servertest: add via port captures
...
A port-limited ACL entry beside a via grant, and a via tag with no
advertiser. Via HA replays now compare router filters by address.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
7461d04e07
policy/v2, servertest: add multi-route router captures
...
A seven-route router and an exit node under six policies; replayed
through policy, peer map and map stream. Peer map now checked against
SaaS peers.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
7768867738
policy/v2, servertest: add via source loss captures
...
Repeated via destinations, a user via source, and an empty one.
A rename that empties the via source must reach open streams as v67.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
7249bcef71
policy/v2, servertest: add validation matrix and grant shape captures
...
SaaS answers for sshTests sources, tests semantics, failure reports,
duplicate destinations, empty and allow-all policies, and refusals.
ACL and SSH compat checks are keyed per check; differences listed.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
c5613b18b7
servertest: check refused policies leave the live policy unchanged
...
Posts every policy SaaS refused through v2; filter, SSH, body and ETag
must stay as before. Policies headscale accepts are skip entries.
2026-10-30 14:55:34 +00:00
Kristoffer Dalby
52842f4c0d
integration: guard SSH acceptEnv forwarding
...
Updates #3559
2026-10-29 20:51:36 +01:00
Kristoffer Dalby
5a4d366ce1
auth, state: keep only hostname, OS and tags in pending registrations
...
The rest arrives with the first MapRequest. A relogin keeps the node's
current Hostinfo, endpoints and disco key; an oversized merge is a 400.
Fixes ANT-2026-RQS7JAPP
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
e1de83cbdf
state: give another user's key on a tagged machine a new device
...
Only a key that speaks for a tagged node re-authenticates it: a tagged
key, or one of the user it was tagged from. Another user's key or login
adds that user's own device, or only wakes the node under its node key.
Fixes ANT-2026-AWGRB7O1
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
e67ef8619a
state: need a valid pre-auth key to re-register an expired tagged node
...
Fixes ANT-2026-LYVGXVSW
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
47d82023e7
state: never serve a single address inside the node ranges
...
Such a route names a node, not a subnet: it stays approved and listed
but no viewer gets it. Via inclusions skip the election, so the rule
sits on everything RoutesForPeer returns.
Fixes ANT-2026-MLP8ZR5T
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
c4d4e32f12
servertest, policy/v2: add re-authentication golden data
...
Expired, live, ephemeral and admin-tagged devices logging in again with
spent, revoked, valid and other users' keys, by key and by login;
tag ownership through tags per policy function.
Updates ANT-2026-LYVGXVSW
Updates ANT-2026-AWGRB7O1
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
5c2cf6ed6f
servertest: add login, profile, restart and register log helpers
...
TryNewClient returns a refused login; Login covers profile switches and
interactive logins approved through ApproveAuth; RegisterAttempts reads
the client's register log.
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
b18bbf4313
servertest: add route approval lifecycle golden data
...
Owner changes, re-auth, revokes, policy pushes, withdraw and logout
replayed step by step against SaaS approvals and served routes.
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
1716eece74
servertest: add relogin and auth key helpers
...
Relogin builds a new Direct on the same machine key and persisted
node key, as tailscaled does on up --auth-key; force rotates the key.
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
286d6ea05d
policy/v2, servertest, hscontrol: add tailnet overlap route captures
...
Routers announcing tailnet addresses, approved by policy, admin key and
devices:routes token; replayed through policy, map stream and v1/v2
APIs.
Updates ANT-2026-MLP8ZR5T
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
59f7c558a6
servertest: compare router self routes with captures
...
Replays ten routes captures through the mapper too; SaaS's address
ranges for "*" now resolve. Known gaps are skip entries per node.
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
32652326b9
servertest: compare user profiles in via captures
...
Self and peer profiles, by login and display name. A tagged self gets
its own profile in SaaS; listed as a skip entry until headscale matches.
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
7d787867c9
servertest: list passing via captures
...
Fourteen committed via captures already match at map level; run them.
2026-10-29 14:00:02 +01:00
Kristoffer Dalby
b730a2ccc1
servertest: test the newest three Terraform provider releases
...
Releases run in parallel, each on its own server, sharing one plugin cache.
A test of a provider feature runs only on releases that have it.
2026-10-29 11:04:05 +01:00
Kristoffer Dalby
cd62031b98
state: stop the auth cache TTL sweeper on Close
...
The expirable LRU ran its sweeper forever, one goroutine per State. Purge
first so pending waiters get ErrRegistrationExpired instead of hanging.
The OIDC state cache is closed at server shutdown for the same reason.
2026-10-23 18:23:53 +02:00
Kristoffer Dalby
893b7fd908
servertest: exercise control plane at explicit scales
...
Cover policy, updates and reconnects with convergence and resource reports.
2026-10-22 22:17:27 +02:00
Kristoffer Dalby
543e3b7b08
servertest: close server state during cleanup
...
Release the NodeStore and database after clients and background workers stop.
2026-10-22 22:17:27 +02:00
Kristoffer Dalby
f16d5e1857
noise: implement /machine/set-dns
...
A node may publish only its own _acme-challenge TXT value; any other
request is rejected before the provider is called. Answers once all
authoritative nameservers serve the value; 503 while shutting down.
Fixes #2137
Fixes #1921
Fixes #2527
2026-10-18 20:53:18 +02:00
Martin -nexus- Mlynář
a8d6f5be81
state: send a relogin as a whole node unless only its keys changed
...
A PeerChange patch cannot clear a peer's Expired flag or carry the
Hostinfo the relogin stored.
Fixes #3531
2026-10-09 11:44:37 +02:00
Kristoffer Dalby
785ba22c65
mapper: send SSHPolicy only when it changes for the connection
...
Any non-nil SSHPolicy forces a full client netmap rebuild; the empty
policy now sent to every node made each policy change one.
Updates #3508
2026-10-08 10:29:23 +02:00
Kristoffer Dalby
957a332d5d
policy/v2: match the login user in SSHCheckParams
...
The client picks the check rule by login user; the server took the
first rule for the node pair, so a root login could get a 12h
localpart period instead of "always", or be approved after its rule
was removed while another user's rule remained. Hold URLs now carry
the concrete user: tailssh never expanded the encoded $LOCAL_USER.
Updates #3508
2026-10-08 10:29:23 +02:00
Kristoffer Dalby
dceb584c89
noise: reject SSH checks the policy no longer requires
...
A stale check rule still held and accepted after login. Deny with a 200
Reject (tailssh retries errors); re-check after the verdict.
Updates #3508
2026-10-08 10:29:23 +02:00
Kristoffer Dalby
82df3e088a
servertest: test client drops SSH rules on policy removal
...
Updates #3508
2026-10-08 10:29:23 +02:00
Kristoffer Dalby
ea6b0bf0b7
mapper: reconcile self on policy recomputes
...
Self renders from the same state as peers, so leaving it out of policy
responses hid an exit node's approved routes until it reconnected.
Fixes #3502
2026-10-07 23:36:16 +02:00
Kristoffer Dalby
52a7f8c89c
mapper: send the logtail instruction on every full map
...
Full maps moved to buildFromChange and lost WithDebugConfig, so no
frame told clients to disable log upload. Enabled logtail sends nil.
2026-10-07 18:11:07 +02:00
Kristoffer Dalby
d4948da301
mapper: keep pings when a full update collapses pending changes
...
A full renders state at drain time but cannot carry a one-shot
PingRequest; queue each ping as a ping-only frame after the full.
2026-10-07 15:25:25 +02:00
Kristoffer Dalby
cb299184f7
servertest: check grant-v13 group via routes against SaaS
...
Updates #3513
2026-10-07 11:10:51 +02:00
Kristoffer Dalby
f1293a805a
servertest: require via compat netmaps to hold across ticks
...
Accepting the first matching tick let a netmap that matched once and
then drifted pass. Require several consecutive passing ticks; a netmap
that settles still passes, so no assertion loosens.
2026-10-07 11:08:58 +02:00
Kristoffer Dalby
fdb3646b67
servertest: name filters in the via HA convergence comment
...
The PacketFilter rule count lags route approval as well, so say so, as
the map compat driver already does.
2026-10-07 11:08:58 +02:00
Kristoffer Dalby
74121aa339
servertest: retry via compat netmap comparison until converged
...
Peer count arrives before routes; compare-once raced route delivery.
2026-10-07 11:08:58 +02:00
Kristoffer Dalby
eeaac680be
mapper: drop DNSConfig from policy responses
...
It forced every client into a full netmap rebuild; the resolver race it
guarded against was a client bug (tailscale/tailscale#19749 ).
2026-09-30 19:03:13 +02:00
Kristoffer Dalby
59030f380d
servertest: cover a node's DNS config following its NextDNS inputs
...
Profile via policy reload or tag change, device metadata via hostname;
a hostname change today waits for the next policy response to reach DNS.
2026-09-30 19:03:13 +02:00