headscale/hscontrol
Kristoffer Dalby ed4e19996b
Use tailscale key types instead of strings (#1609)
* upgrade tailscale

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* make Node object use actualy tailscale key types

This commit changes the Node struct to have both a field for strings
to store the keys in the database and a dedicated Key for each type
of key.

The keys are populated and stored with Gorm hooks to ensure the data
is stored in the db.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* use key types throughout the code

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* make sure machinekey is concistently used

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* use machine key in auth url

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* fix web register

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* use key type in notifier

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* fix relogin with webauth

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-11-19 22:37:04 +01:00
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
db Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
derp fix lint 2023-09-19 10:20:21 -05:00
mapper Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
notifier Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
policy Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
templates update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
types Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
util remove the use key stripping and store the proper keys (#1603) 2023-11-16 17:55:29 +01:00
app.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
auth.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
auth_legacy.go remove the use key stripping and store the proper keys (#1603) 2023-11-16 17:55:29 +01:00
auth_noise.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
grpcv1.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handler_legacy.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handler_placeholder.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handlers.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
metrics.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
noise.go move derp.go to derp module 2023-06-08 16:34:15 +02:00
oidc.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
platform_config.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
poll.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
poll_legacy.go remove the use key stripping and store the proper keys (#1603) 2023-11-16 17:55:29 +01:00
poll_noise.go Upgrade Go 1.21, Tailscale 1.50 and add Capability version support (#1563) 2023-09-28 12:33:53 -07:00
suite_test.go move Config definitions into types 2023-06-08 16:34:15 +02:00