1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-11-10 01:20:58 +01:00
juanfont.headscale/cmd/headscale
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
..
cli types: make pre auth key use bcrypt 2025-11-02 15:26:54 +01:00
headscale_test.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
headscale.go use newer fork of termcolor (#1842) 2024-04-16 23:48:51 +02:00