1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00
juanfont.headscale/hscontrol/db
Kristoffer Dalby 064c46f2a5
move logic for validating node names (#2127)
* move logic for validating node names

this commits moves the generation of "given names" of nodes
into the registration function, and adds validation of renames
to RenameNode using the same logic.

Fixes #2121

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* fix double arg

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2024-09-11 18:27:49 +02:00
..
testdata fix route table migration wiping routes 0.22 -> 0.23 (#2076) 2024-08-27 18:54:28 +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 fix route table migration wiping routes 0.22 -> 0.23 (#2076) 2024-08-27 18:54:28 +02:00
db.go Fix FKs on sqlite migrations (#2083) 2024-08-30 08:08:54 +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 replace ephemeral deletion logic (#2008) 2024-07-18 10:01:59 +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