1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00
juanfont.headscale/cmd/headscale/cli
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 create DB struct 2023-05-26 12:24:50 +02:00
configtest.go Fix various linting issues + golang-lint upgrade (#1245) 2023-03-03 18:22:47 +01:00
debug.go Use tailscale key types instead of strings (#1609) 2023-11-19 22:37:04 +01:00
dump_config.go add integration test for headscale -c 2022-06-05 23:13:58 +08:00
generate.go feat(aliases): add 'gen' alias for 'generate' command 2022-03-02 14:29:33 +10:00
mockoidc.go oidc: add test for expiring nodes after token expiration 2023-01-04 09:23:52 +01:00
nodes.go remove the use key stripping and store the proper keys (#1603) 2023-11-16 17:55:29 +01:00
preauthkeys.go Mark -n and --namespace as deprecated 2023-01-26 10:22:38 +01:00
pterm_style.go Fix lint 2022-02-12 19:42:55 +00:00
root.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
routes.go Rename Machine to Node (#1553) 2023-09-24 06:42:05 -05:00
server.go Rename one char var 2022-06-05 17:52:28 +02:00
users.go create DB struct 2023-05-26 12:24:50 +02:00
utils.go fix lint 2023-09-19 10:20:21 -05:00
version.go Use new json wrapper for version command 2021-11-04 22:41:55 +00:00