headscale/hscontrol/db
Kristoffer Dalby 5eda9c8d2d
denormalise PreAuthKey tags (#2155)
this commit denormalises the Tags related to a Pre auth key
back onto the preauthkey table and struct as a string list.

There was not really any real normalisation here as we just added
a bunch of duplicate tags with new IDs and preauthkeyIDs, lots of
GORM cermony but no actual advantage.

This work is the start to fixup tags which currently are not working
as they should.

Updates #1369

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-09-29 13:00:27 +02:00
..
testdata denormalise PreAuthKey tags (#2155) 2024-09-29 13:00:27 +02:00
api_key_test.go Replace the timestamp based state system 2023-09-19 10:20:21 -05:00
api_key.go Replace database locks with transactions (#1701) 2024-02-08 17:28:19 +01:00
db_test.go denormalise PreAuthKey tags (#2155) 2024-09-29 13:00:27 +02:00
db.go denormalise PreAuthKey tags (#2155) 2024-09-29 13:00:27 +02:00
ip_test.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
ip.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
node_test.go move logic for validating node names (#2127) 2024-09-11 18:27:49 +02:00
node.go move logic for validating node names (#2127) 2024-09-11 18:27:49 +02:00
policy.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
preauth_keys_test.go replace ephemeral deletion logic (#2008) 2024-07-18 10:01:59 +02:00
preauth_keys.go denormalise PreAuthKey tags (#2155) 2024-09-29 13:00:27 +02:00
routes_test.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
routes.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
suite_test.go replace ephemeral deletion logic (#2008) 2024-07-18 10:01:59 +02:00
users_test.go replace ephemeral deletion logic (#2008) 2024-07-18 10:01:59 +02:00
users.go more log.Error -> fmt.Errorf cleanup 2024-04-15 12:31:53 +02:00