1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00
juanfont.headscale/hscontrol
Motiejus Jakštys c6336adb01
config: loosen up BaseDomain and ServerURL checks (#2248)
* config: loosen up BaseDomain and ServerURL checks

Requirements [here][1]:

> OK:
> server_url: headscale.com, base: clients.headscale.com
> server_url: headscale.com, base: headscale.net
>
> Not OK:
> server_url: server.headscale.com, base: headscale.com
>
> Essentially we have to prevent the possibility where the headscale
> server has a URL which can also be assigned to a node.
>
> So for the Not OK scenario:
>
> if the server is: server.headscale.com, and a node joins with the name
> server, it will be assigned server.headscale.com and that will break
> the connection for nodes which will now try to connect to that node
> instead of the headscale server.

Fixes #2210

[1]: https://github.com/juanfont/headscale/issues/2210#issuecomment-2488165187

* server_url and base_domain: re-word error message, fix a one-off bug and add a test case for the bug.

* lint

* lint again
2024-11-22 13:21:44 +01:00
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
db #2177 Added conversion of 'Hostname' to 'givenName' in a node with FQDN rules applied (#2198) 2024-10-15 18:33:03 +02:00
derp feat: derpmap field in config (#1823) 2024-10-17 05:34:20 -06:00
mapper cleanup linter warnings (#2206) 2024-10-23 10:45:59 -05:00
notifier Fix slow shutdown (#2113) 2024-09-09 14:10:22 +02:00
policy Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
templates Feature tvos documentation (#2226) 2024-11-07 14:56:18 +00:00
types config: loosen up BaseDomain and ServerURL checks (#2248) 2024-11-22 13:21:44 +01:00
util #2177 Added conversion of 'Hostname' to 'givenName' in a node with FQDN rules applied (#2198) 2024-10-15 18:33:03 +02:00
app.go Handle /derp/latency-check (#2227) 2024-11-06 15:59:38 +01:00
auth_noise.go metrics, tuning in tests, db cleanups, fix concurrency issue (#1895) 2024-04-21 18:28:17 +02:00
auth.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
grpcv1.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
handlers.go Changed all the html into go using go-elem (#2161) 2024-10-04 11:39:24 +00:00
metrics.go Handle /derp/latency-check (#2227) 2024-11-06 15:59:38 +01:00
noise.go cleanup linter warnings (#2206) 2024-10-23 10:45:59 -05:00
oidc.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
platform_config.go Changed all the html into go using go-elem (#2161) 2024-10-04 11:39:24 +00:00
poll.go #2140 Fixed reflection of hostname change (#2199) 2024-10-17 09:45:33 -06:00
suite_test.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
tailsql.go Use result of fmt.Errorf call (#1668) 2024-02-15 11:02:54 +01:00