1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-05-14 01:17:07 +02:00
juanfont.headscale/hscontrol
Kristoffer Dalby f1206328dc
fix webauth + autoapprove routes (#2528)
* types/node: add helper funcs for node tags

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

* types/node: add DebugString method for node

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

* policy/v2: add String func to AutoApprover interface

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

* policy/v2: simplify, use slices.Contains

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

* policy/v2: debug, use nodes.DebugString

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

* policy/v1: fix potential nil pointer in NodeCanApproveRoute

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

* policy/v1: slices.Contains

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

* integration/tsic: fix diff in login commands

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

* integration: fix webauth running with wrong scenario

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

* integration: move common oidc opts to func

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

* integration: require node count, more verbose

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

* auth: remove uneffective route approve

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

* .github/workflows: fmt

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

* integration/tsic: add id func

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

* integration: remove call that might be nil

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

* integration: test autoapprovers against web/authkey x group/tag/user

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

* integration: unique network id per scenario

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

* Revert "integration: move common oidc opts to func"

This reverts commit 7e9d165d4a.

* remove cmd

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

* integration: clean docker images between runs in ci

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

* integration: run autoapprove test against differnt policy modes

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

* integration/tsic: append, not overrwrite extra login args

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

* .github/workflows: remove polv2

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

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-04-30 07:54:04 +02:00
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
capver drop versions older than 1.62 (#2405) 2025-02-05 12:02:32 +01:00
db Fix goroutine leak in EphemeralGC on node cancel (#2538) 2025-04-23 11:44:24 +02:00
derp feat: derpmap field in config (#1823) 2024-10-17 05:34:20 -06:00
dns fixes to extra-record file watcher (#2298) 2024-12-16 11:26:56 +01:00
mapper policy/v2: make default (#2546) 2025-04-29 16:27:41 +02:00
notifier Fix panic on fast reconnection of node (#2536) 2025-04-23 11:52:24 +02:00
policy fix webauth + autoapprove routes (#2528) 2025-04-30 07:54:04 +02:00
routes Multi network integration tests (#2464) 2025-03-21 11:49:32 +01:00
templates use dedicated registration ID for auth flow (#2337) 2025-01-26 22:20:11 +01:00
types fix webauth + autoapprove routes (#2528) 2025-04-30 07:54:04 +02:00
util fix webauth + autoapprove routes (#2528) 2025-04-30 07:54:04 +02:00
app.go fix auto approver on register and new policy (#2506) 2025-03-31 15:55:07 +02:00
auth_test.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
auth.go fix auto approver on register and new policy (#2506) 2025-03-31 15:55:07 +02:00
debug.go Set content-type to JSON for some debug endpoints 2025-03-16 14:02:12 +01:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
grpcv1.go fix auto approver on register and new policy (#2506) 2025-03-31 15:55:07 +02:00
handlers.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
metrics.go Handle /derp/latency-check (#2227) 2024-11-06 15:59:38 +01:00
noise.go handle register auth errors (#2435) 2025-02-23 17:02:46 +01:00
oidc.go OIDC: Fetch UserInfo to get EmailVerified if necessary (#2493) 2025-03-27 10:39:29 +01:00
platform_config.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
poll.go populate serving from primary routes (#2489) 2025-03-28 13:22:15 +01: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