1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-07-22 13:48:40 +02:00
juanfont.headscale/hscontrol
seiuneko d325211617
feat: add verify client config for embedded DERP (#2260)
* feat: add verify client config for embedded DERP

* refactor: embedded DERP no longer verify clients via HTTP

- register the `headscale://` protocol in `http.DefaultTransport` to intercept network requests
- update configuration to use a single boolean option `verify_clients`

* refactor: use `http.HandlerFunc` for type definition

* refactor: some renaming and restructuring

* chore: some renaming and fix lint

* test: fix TestDERPVerifyEndpoint

- `tailscale debug derp` use random node private key

* test: add verify clients integration test for embedded DERP server

* fix: apply code review suggestions

* chore: merge upstream changes

* fix: apply code review suggestions

---------

Co-authored-by: Kristoffer Dalby <kristoffer@dalby.cc>
2025-06-18 09:24:53 +02:00
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
capver update capmap and deps for release (#2522) 2025-05-02 22:12:29 +02:00
db policy: remove v1 code (#2600) 2025-05-20 13:57:26 +02:00
derp feat: add verify client config for embedded DERP (#2260) 2025-06-18 09:24:53 +02:00
dns fixes to extra-record file watcher (#2298) 2024-12-16 11:26:56 +01:00
mapper policy: remove v1 code (#2600) 2025-05-20 13:57:26 +02:00
notifier policy: reduce routes sent to peers based on packetfilter (#2561) 2025-05-04 21:52:47 +02:00
policy policy: remove v1 code (#2600) 2025-05-20 13:57:26 +02:00
routes Multi network integration tests (#2464) 2025-03-21 11:49:32 +01:00
templates web: change node registration parameter order (#2607) 2025-05-21 11:18:53 +02:00
types feat: add verify client config for embedded DERP (#2260) 2025-06-18 09:24:53 +02:00
util fix webauth + autoapprove routes (#2528) 2025-04-30 07:54:04 +02:00
app.go feat: add verify client config for embedded DERP (#2260) 2025-06-18 09:24:53 +02:00
auth_test.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
auth.go auth: ensure that routes are autoapproved when the node is stored (#2550) 2025-05-01 07:05:42 +02:00
debug.go Make matchers part of the Policy interface (#2514) 2025-05-01 07:06:30 +02:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
grpcv1.go auth: ensure that routes are autoapproved when the node is stored (#2550) 2025-05-01 07:05:42 +02:00
handlers.go feat: add verify client config for embedded DERP (#2260) 2025-06-18 09:24:53 +02:00
metrics.go Handle /derp/latency-check (#2227) 2024-11-06 15:59:38 +01:00
noise.go Fix /machine/map endpoint vulnerability (#2642) 2025-06-06 12:14:11 +02:00
oidc.go auth: ensure that routes are autoapproved when the node is stored (#2550) 2025-05-01 07:05:42 +02:00
platform_config.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
poll.go bring back last_seen in database (#2579) 2025-05-10 09:49:08 +02:00
suite_test.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
tailsql.go fix typo in TailSQL's log 2025-05-18 07:15:41 +02:00