Commit Graph
5243 Commits
Author SHA1 Message Date
Kristoffer Dalby 6ac73c76e5 policy/v2: recapture SSH forwarding from a pushed tscap commit
Same SaaS answers; drops them from untraceable.
2026-11-20 16:56:53 +01:00
Kristoffer Dalby 993d00cf0c mapper: check peer Cap against a Tailscale SaaS capture
1.86 and Cap 152 clients; each peer carries its own Cap.
2026-11-20 16:56:53 +01:00
Kristoffer Dalby 5cdc76246e mapper, state: send each peer its own capability version
Peers carried the viewer's Cap; new clients then enable hybrid
WireGuard handshakes against old peers, which never answer.
2026-11-20 16:56:53 +01:00
Kristoffer Dalby 8c1c2d5020 types: add runtime Node.CapVer, drop unused TailNodes
TailNodes stamped one capability version on every peer.
2026-11-20 16:56:53 +01:00
Kristoffer Dalby 3ad8f889d8 tools/bump: keep the Android emulator image's pins current
Temurin follows Java LTS on the same Ubuntu flavour; command-line tools
and build tools follow the stable channel of the index sdkmanager reads.
The API level stays hand-picked: it is the Android release under test.

Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
Kristoffer Dalby 6fa78f41bc github: run Android integration tests on x86 KVM runners
Arm64 runners have no KVM. Tests head (tailscale-android main, debug),
unstable and latest on Android 13. The emulator image is built once per
run and shared as an artifact; the head APK is cached by commit.

Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
Kristoffer Dalby 9888a7d0f9 docs: describe running the Android integration tests
Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
Kristoffer Dalby e48c8409f0 cmd/hi: warn when /dev/kvm is missing
Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
Kristoffer Dalby 248d2c4054 integration: test the Tailscale Android app against headscale
Covers login (alternate server, auth key, MDM, debug hook), TLS with a
private CA, restart, in-place upgrade, peer changes, MagicDNS, subnet
routes, exit nodes, Taildrop and network loss. Every test also fails on
an app crash. Lives in its own package so the arm64 matrix skips it.

Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
Kristoffer Dalby e13cf4a011 integration/androidic: add Android emulator client
Runs the official Tailscale Android app in the emulator and drives it
like a user, over adb and uiautomator: login via the alternate server
dialog, an auth key, MDM or the debug login hook, CA installation in the
user or system store, network toggles, exit node selection and Taildrop.
The app has no CLI, so tests verify externally.

Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
Kristoffer Dalby 1591cfb0f4 integration: add Android emulator image with test helper app
Headless KVM emulator (google_apis, API 33) plus a small helper app:
a device-owner DPC that sets the Tailscale app's managed configuration,
and a probe that resolves and fetches as an ordinary app, through the
VPN.

Updates tailscale/tailscale#15660
2026-11-20 11:19:11 +01:00
headscale-bot[bot]andgithub-actions[bot] a491228b7f Update VOUCHED list (#3705)
https://github.com/juanfont/headscale/issues/3704#issuecomment-6928641623

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-16 20:39:19 +00:00
Kristoffer Dalby 520eb6f9c7 .github: verify actions.lock on pull requests 2026-11-12 14:03:30 +01:00
Kristoffer Dalby 963dcf353f .github: lock workflow actions
Generated: gh-actions-lock --migrate-local-actions.
2026-11-12 14:03:30 +01:00
Kristoffer Dalby b3bbf1725e .github/actions: align headscale-up pins with the workflows
Bump never read this file; hestia sat at v2.0.0.
2026-11-12 14:03:30 +01:00
Kristoffer Dalby 44e831e1fa tools/bump: lock actions with gh-actions-lock
Workflows name release tags; actions.lock holds the commits. Bump moves
tags then relocks, and now reads .github/actions. Verify checks the lock.
2026-11-12 14:03:30 +01:00
github-actions[bot] 875f9f977c all: regenerate generated files 2026-11-12 06:55:28 +01:00
github-actions[bot] ab19a74255 .github: bump 3 action pins 2026-11-12 06:55:28 +01:00
github-actions[bot] 44fca6c737 Dockerfile: bump golang builders to 1.27.4 / 1.27.3 2026-11-12 06:55:28 +01:00
github-actions[bot] 6f3322c5de go.mod: update dependencies 2026-11-12 06:55:28 +01:00
github-actions[bot] 4c6c0fc29b Makefile: bump oapi-codegen v2.8.1 to v2.8.2 2026-11-12 06:55:28 +01:00
github-actions[bot] de2d4d3403 flake.lock: update flake-utils_2, nixpkgs, systems_2 2026-11-12 06:55:28 +01:00
Kristoffer Dalby 5d44138d40 .github: give servertest 40 minutes
The package already used nearly all of 20m; the reauth-wake replay
tests push it past and the run panics mid-progress.

Updates #3370
2026-11-11 18:12:34 +01:00
Kristoffer Dalby 568eeaed2f CHANGELOG: shorten the restart entry 2026-11-11 18:12:34 +01:00
Kristoffer Dalby e8a318db71 servertest: split the relogin replay out of apply
apply crossed the gocyclo limit.
2026-11-11 18:12:34 +01:00
Kristoffer Dalby ef05aefc2b CHANGELOG: note restarts that send another auth key 2026-11-11 18:12:34 +01:00
Kristoffer Dalby 3cbf7ecdb8 github: run the restart integration test 2026-11-11 18:12:34 +01:00
Kristoffer Dalby 06b57a82b1 integration: restart a tagged node with another spent key 2026-11-11 18:12:34 +01:00
Kristoffer Dalby 5e22477e4b servertest: restart a real tsnet node with another key 2026-11-11 18:12:34 +01:00
Kristoffer Dalby 27dedae3c1 servertest: replay the reauth-wake captures
Tags asked for while awake stay a known gap.
2026-11-11 18:12:34 +01:00
Kristoffer Dalby 6d36263ac7 servertest: add reauth-wake captures from SaaS
tailscaled and tsnet restarting with another key, and asking for tags.
2026-11-11 18:12:34 +01:00
Kristoffer Dalby a1f1e30e65 servertest: replay restarts that send an auth key
tsnet sends TS_AUTHKEY on every start; up --advertise-tags may send none.
2026-11-11 18:12:34 +01:00
Kristoffer Dalby 2765031898 hscontrol: log refused registrations
The client only retries, so the log is the operator's one sign.
2026-11-11 18:12:34 +01:00
Kristoffer Dalby 7a3d2e88fe state: wake a node under its own node key, whatever key it sends
As on SaaS, the key a restart sends is not judged, spent or applied; only
a new node key logs in. Known tsnet and container nodes no longer drop.

Updates #3370
2026-11-11 18:12:34 +01:00
Kristoffer Dalby 095844e626 derp/server: return STUN bind errors to Serve
log.Fatal exited the process and skipped the graceful shutdown.

Fixes #3499
2026-11-11 18:02:00 +01:00
Kristoffer Dalby 79a036ba97 hscontrol: stop Serve through its context
Serve only stopped on signals; a failed listener left it half running.

Updates #3499
2026-11-11 18:02:00 +01:00
Kristoffer Dalby ce295d6782 nix, docs: regenerate config reference
Updates #3588
2026-11-11 17:54:31 +01:00
Kristoffer Dalby f75c7cf059 dns: read non-string provider settings from file:
A file: value of a non-string setting, such as acme-dns config,
is the JSON in that file; checks leave it unread.

Fixes #3588
2026-11-11 17:54:31 +01:00
Kristoffer Dalby c7bfe5b4f7 integration/k3sic: disable the k3s cloud controller
Its CCM can exit "forbidden" before its RBAC applies, restart-looping k3s.

Updates #3125
2026-11-11 17:39:17 +01:00
Kristoffer Dalby 07859e5ff6 types, docs, nix: regenerate config docs for write_ahead_log
Updates #1926
2026-11-11 17:32:36 +01:00
Kristoffer Dalby b7995a311c db: turn off WAL when database.sqlite.write_ahead_log is false
Since 0.27.0 false only skipped wal_autocheckpoint. Now DELETE journal,
synchronous=FULL; a database left in WAL mode is converted on open.

Updates #1926
2026-11-11 17:32:36 +01:00
Kristoffer Dalby 5a5290c174 db: validate the sqlite schema on one connection
squibble nests queries; a second connection's auto_vacuum pragma writes,
and without WAL that write waits on the first one's read until busy_timeout.

Updates #1926
2026-11-11 17:32:36 +01:00
Kristoffer Dalby 051a3f102a config: reject an empty log.level and log.format
As the other enums do; --running showed "" for the info/text in effect.

Updates #1926
2026-11-11 17:24:01 +01:00
Kristoffer Dalby 8b711055fb hscontrol: serialise OIDC user lookup and create
Concurrent first logins of one identity both missed the lookup and
both created; the loser hit the unique index and returned 500.
2026-11-11 17:07:35 +01:00
Kristoffer Dalby 687bb762e0 hscontrol: build tailsql DSN with sqliteconfig
Its hand-built file: URI did not escape the path, so tailsql
read another file than headscale. Add Config.ReadOnly for mode=ro.
2026-11-11 16:58:07 +01:00
Kristoffer Dalby 1a44a0ac54 sqliteconfig: escape database path in ToURL
SQLite ends a file: URI path at '?' or '#' and decodes '%',
so such a path opened a different file than configured.
2026-11-11 16:58:07 +01:00
Kristoffer Dalby b6e6c6f08c CHANGELOG: deleted nodes get a map 404
Updates #3688
2026-11-11 16:45:24 +01:00
Kristoffer Dalby 30a31e77cf integration: expect NeedsLogin after deletion only from 1.106
Older clients keep retrying a map 404, as against Tailscale.

Updates #3688
2026-11-11 16:45:24 +01:00
Kristoffer Dalby 2e03bee425 servertest: check a deleted tsnet node does not spin
Updates #3688
2026-11-11 16:45:24 +01:00
Kristoffer Dalby ca512f2c57 noise: answer a deleted node's map request with 404
As Tailscale does. A netmap resets the client's map backoff, so ending
the stream after one made it re-poll every few milliseconds.

Fixes #3688
2026-11-11 16:45:24 +01:00