derp: reject unknown keys in derp.paths files

SaaS rejects them in a policy derpMap; a misspelt key silently did nothing.

Updates #2918
This commit is contained in:
Kristoffer Dalby committed 2026-11-05 14:11:33 +01:00
1 parent 00f9373246
commit e358a539af
6 files changed
+56 -9

No files matched your search

+2 -1
View File
@@ -57,7 +57,8 @@ The DERP map offered to clients can be customized with a [dedicated YAML-configu
file](https://github.com/juanfont/headscale/blob/main/derp-example.yaml). The file extension picks the format: `.yaml`
or `.yml`, or the JSON format Tailscale serves DERP maps in as `.json` or `.hujson`. Both JSON extensions are read as
[HuJSON](https://github.com/tailscale/hujson), so comments and trailing commas are allowed. This allows to modify previously
loaded DERP maps fetched via URL or to offer your own, custom DERP servers to nodes.
loaded DERP maps fetched via URL or to offer your own, custom DERP servers to nodes. A key that has no field in
[DERPMap](https://pkg.go.dev/tailscale.com/tailcfg#DERPMap) stops headscale from starting.
=== "Remove specific DERP regions"