headscale/hscontrol/types
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
..
api_key.go Split code into modules 2023-05-26 12:24:50 +02:00
common.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
config.go General fixups discovered by checking errors 2023-09-05 08:47:43 +02:00
const.go fix lint 2023-06-08 16:34:15 +02:00
node.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
node_test.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
preauth_key.go Split code into modules 2023-05-26 12:24:50 +02:00
routes.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
users.go Upgrade Go 1.21, Tailscale 1.50 and add Capability version support (#1563) 2023-09-28 12:33:53 -07:00