headscale/hscontrol
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
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
db move logic for validating node names (#2127) 2024-09-11 18:27:49 +02:00
derp test embedded derp with derp updater, check client health (#2030) 2024-08-11 07:44:59 +02:00
mapper chore: fix some comments (#2069) 2024-09-09 14:17:25 +02:00
notifier Fix slow shutdown (#2113) 2024-09-09 14:10:22 +02:00
policy reformat code (#2019) 2024-07-22 08:56:00 +02:00
templates Simplify windows setup instructions (#2114) 2024-09-09 13:18:16 +02:00
types make cli mode respect log.level (#2124) 2024-09-11 10:43:22 +02:00
util 2068 AutoApprovers tests (#2105) 2024-09-05 16:46:20 +02:00
app.go Fix slow shutdown (#2113) 2024-09-09 14:10:22 +02:00
auth.go move logic for validating node names (#2127) 2024-09-11 18:27:49 +02:00
auth_noise.go metrics, tuning in tests, db cleanups, fix concurrency issue (#1895) 2024-04-21 18:28:17 +02:00
grpcv1.go move logic for validating node names (#2127) 2024-09-11 18:27:49 +02:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
handlers.go Make registration screen easier to use (#1975) 2024-06-15 09:40:49 +02:00
metrics.go reformat code (#2019) 2024-07-22 08:56:00 +02:00
noise.go Redo DNS configuration (#2034) 2024-08-19 11:41:05 +02:00
oidc.go Fix self notification on expiry update via oidc relogin (#2080) 2024-08-30 08:20:29 +02:00
platform_config.go Simplify windows setup instructions (#2114) 2024-09-09 13:18:16 +02:00
poll.go make stream shutdown if self-node has been removed (#2125) 2024-09-11 12:00:32 +02:00
suite_test.go new IP allocator and add postgres to integration tests. (#1756) 2024-02-18 19:31:29 +01:00
tailsql.go Use result of fmt.Errorf call (#1668) 2024-02-15 11:02:54 +01:00