1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-11-10 01:20:58 +01:00
juanfont.headscale/cmd/headscale/cli
Kristoffer Dalby c31217b62b
types: make pre auth key use bcrypt
this commit changes the underlying implementation of
pre auth keys to the same as our API keys. This means that
instead of having a key in the database, it will consist
of a prefix and a bcrypt hash.

This improves the security of the keys as they can not be
read back in the case of a database getting away.

Old keys still work, but all new keys are created in the
new format.

All keys are prefixed with "hskey-auth" to indicate their
purpose.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-11-02 15:26:54 +01:00
..
api_key.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
configtest.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
debug.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02: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
health.go add health command (#2659) 2025-10-16 12:00:11 +00:00
mockoidc.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
nodes.go expire nodes with a custom timestamp (#2828) 2025-11-01 08:09:13 +01:00
policy.go cli: only validate bypass-grpc set policy (#2854) 2025-11-02 09:42:59 +00:00
preauthkeys.go types: make pre auth key use bcrypt 2025-11-02 15:26:54 +01:00
pterm_style.go Fix lint 2022-02-12 19:42:55 +00:00
root_test.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
root.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
serve.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
users.go cmd: add option to get and set policy directly from database (#2765) 2025-09-12 16:55:15 +02:00
utils.go cmd: add option to get and set policy directly from database (#2765) 2025-09-12 16:55:15 +02:00
version.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00