Kristoffer Dalby
c8306bb91f
write out flag
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-19 20:10:43 +01:00
Kristoffer Dalby
ac34acb29a
temp comment out not ported tests to new cli
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-18 21:15:22 +01:00
Kristoffer Dalby
3e353c3e59
initial work on new route cli
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 19:43:40 +01:00
Kristoffer Dalby
c6ef1c61d4
gen: remove routes api
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:40:32 +01:00
Kristoffer Dalby
7bee615c33
remove routes api
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:39:46 +01:00
Kristoffer Dalby
ff96ac5259
run route integration tests offline
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:36:44 +01:00
Kristoffer Dalby
404eb53092
remove last seen from database
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:32:37 +01:00
Kristoffer Dalby
7633c2e4cc
fixups
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:32:14 +01:00
Kristoffer Dalby
d28194ac86
missing
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:32:14 +01:00
Kristoffer Dalby
a48843bfd0
wire through primare router
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:32:14 +01:00
Kristoffer Dalby
d3bce2d7ff
ipv6 is sorted last
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:32:13 +01:00
Kristoffer Dalby
898784cb27
dont preload non existing releation
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:32:13 +01:00
Kristoffer Dalby
df85797954
initial work on db migration
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-17 18:32:13 +01:00
Kristoffer Dalby
fe9557a729
chop chop
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-14 18:41:07 +01:00
Kristoffer Dalby
45566cc11d
delete all, rebuild
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-14 18:41:06 +01:00
Kristoffer Dalby
bbe57f6cd4
use tailscale version in all unsupported errs ( #2426 )
2025-02-14 13:43:33 +01:00
Kristoffer Dalby
604f7f6282
update to go 1.24 ( #2427 )
2025-02-14 10:56:03 +01:00
badsmoke
c61fbe9c5f
activate json logs ( #2424 )
...
Co-authored-by: jan.sulimma <jan.sulimma@zigpos.com>
2025-02-12 15:31:24 +01:00
Kristoffer Dalby
b943cce868
set 0.25.0 changelog date ( #2423 )
...
* date in changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update docs version
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-11 16:25:53 +01:00
Kristoffer Dalby
6403c8d5d2
use tsweb debugger ( #2420 )
...
This PR switches the homegrown debug endpoint to using tsweb.Debugger, a neat toolkit with batteries included for pprof and friends, and making it easy to add additional debug info:
I've started out by adding a bunch of "introspect" endpoints
image
So users can see the acl, filter, config, derpmap and connected nodes as headscale sees them.
2025-02-11 11:18:59 +01:00
github-actions[bot]
b3fa16fbda
flake.lock: Update ( #2419 )
2025-02-09 08:45:06 +00:00
Kristoffer Dalby
1f0110fe06
use helper function for constructing state updates ( #2410 )
...
This helps preventing messages being sent with the wrong update type
and payload combination, and it is shorter/neater.
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-07 13:49:59 +01:00
Kristoffer Dalby
b92bd3d27e
remove oidc migration ( #2411 )
...
* remove oidc migration
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-07 13:49:45 +01:00
Kristoffer Dalby
3bf7d5a9c9
add git hash to binary, print on startup ( #2415 )
...
* add git hash to binary, print on startup
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-07 13:49:34 +01:00
Kristoffer Dalby
1d65865425
make version info in bug template more explicit ( #2413 )
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-07 11:36:00 +01:00
Kristoffer Dalby
c53ff2ce00
update changelog ( #2414 )
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-07 11:32:01 +01:00
Kristoffer Dalby
b4ac8cd9a3
hscontrol/db: add migration setting non existing pak on nodes to null ( #2412 )
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-07 10:22:23 +01:00
Nbelles
22277d1fc7
Spell check
2025-02-05 17:29:30 +01:00
Kristoffer Dalby
9ae3570154
drop versions older than 1.62 ( #2405 )
2025-02-05 12:02:32 +01:00
Florian Preinstorfer
f12cb2e048
Headscale now updates the user profile
2025-02-05 11:05:03 +01:00
Florian Preinstorfer
8c09afe20c
Headscale implements a single tailnet
...
Separate the term "tailnet" from user and be more explicit about
providing a single tailnet.
Also be more explicit about users. Refer to "headscale users" when
mentioning commandline invocations and use the term "local users" when
discussing unix accounts.
Fixes : #2335
2025-02-05 11:05:03 +01:00
Kristoffer Dalby
8b92c017ec
add 1.80 to capver and update deps ( #2394 )
2025-02-05 07:17:51 +01:00
github-actions[bot]
9a7890d56b
flake.lock: Update ( #2402 )
2025-02-02 07:58:12 +00:00
Kristoffer Dalby
45752db0f6
Return better web errors to the user ( #2398 )
...
* add dedicated http error to propagate to user
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* classify user errors in http handlers
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* move validation of pre auth key out of db
This move separates the logic a bit and allow us to
write specific errors for the caller, in this case the web
layer so we can present the user with the correct error
codes without bleeding web stuff into a generic validate.
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-01 15:25:18 +01:00
Kristoffer Dalby
1c7f3bc440
no edit of oidc users, minimum hostname length ( #2393 )
...
* return an error when renaming users from OIDC
* set minimum hostname length of 2
2025-02-01 09:40:37 +00:00
Kristoffer Dalby
9bd143852f
do not allow preauth keys to be deleted if assigned to node ( #2396 )
...
* do not allow preauth keys to be deleted if assigned to node
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-01 10:31:13 +01:00
Kristoffer Dalby
d57a55c024
Rewrite authentication flow ( #2374 )
2025-02-01 09:16:51 +00:00
Kristoffer Dalby
e172c29360
initial capver packet tracking version ( #2391 )
...
* initial capver packet tracking version
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* Log the minimum version as client version, not only capver
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* remove old versions
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* use capver for integration tests
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* patch through m and n key
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-30 21:49:09 +00:00
Kristoffer Dalby
cd3b8e68ff
clean up handler methods, common logging ( #2384 )
...
* clean up handler methods, common logging
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* streamline http.Error calls
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-30 22:40:29 +01:00
nblock
f44b1d37c4
Remove routes without a node_id ( #2386 )
...
The routes table has a NOT NULL constraint on node_id.
Fixes : #2376
2025-01-30 14:57:06 +01:00
Kristoffer Dalby
7ba6ad3489
simplify findUserByToken in ACL, add missing testcases ( #2388 )
...
* update users doc on unique constraints
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* simplify finduser func
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* add initial tests for findUserFromToken
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* add changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-30 11:35:49 +01:00
Kristoffer Dalby
2c279e0a7b
create and rename usernames validated by new func ( #2381 )
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-27 22:58:10 +01:00
Kristoffer Dalby
4c8e847f47
use dedicated registration ID for auth flow ( #2337 )
2025-01-26 22:20:11 +01:00
github-actions[bot]
97e5d95399
flake.lock: Update ( #2378 )
2025-01-26 15:33:51 +00:00
Kristoffer Dalby
d1dbe4ece9
fix panic if derp update is 0 ( #2368 )
...
* fix panic if derp update is 0
Fixes #2362
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-23 16:16:12 +01:00
Kristoffer Dalby
9e3f945eda
fix postgres migration issue with 0.24 ( #2367 )
...
* fix postgres migration issue with 0.24
Fixes #2351
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* add postgres migration test for 2351
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-23 14:58:42 +01:00
Kristoffer Dalby
615ee5df75
make it harder to insert invalid routes ( #2371 )
...
* make it harder to insert invalid routes
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* dont panic if node is not available for route
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* update changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-23 13:40:23 +01:00
Kristoffer Dalby
c1f42cdf4b
relax user validation to allow emails, add tests from various oidc providers ( #2364 )
...
* relax user validation to allow emails, add tests from various oidc providers
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
* changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-01-22 18:10:15 +01:00
github-actions[bot]
aa76980b43
flake.lock: Update ( #2353 )
2025-01-19 09:59:29 +00:00
Kristoffer Dalby
5b986ed0a7
set oidc.map_legacy_users false ( #2350 )
2025-01-17 14:44:04 +00:00