1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-11-10 01:20:58 +01:00
juanfont.headscale/cmd/headscale/cli
Kristoffer Dalby c54e9171cd
cli: only validate bypass-grpc set policy
When adding the mode to bypass gRPC, a naive policy validation
was added to both the gRPC set, and the bypass mode.

This caused the policy to invalidate in unexpected ways as the gRPC
already handles this validation in the backend.

This commit moves the validation logic into the bypass branch.

Fixes #2825

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-11-02 10:32:29 +01:00
..
api_key.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
configtest.go Only load needed part of configuration (#2109) 2024-09-07 09:23:58 +02:00
debug.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
dump_config.go add integration test for headscale -c 2022-06-05 23:13:58 +08:00
generate.go feat(aliases): add 'gen' alias for 'generate' command 2022-03-02 14:29:33 +10:00
health.go add health command (#2659) 2025-10-16 12:00:11 +00:00
mockoidc.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
nodes.go expire nodes with a custom timestamp (#2828) 2025-11-01 08:09:13 +01:00
policy.go cli: only validate bypass-grpc set policy 2025-11-02 10:32:29 +01:00
preauthkeys.go fix: change FormatUint base from 64 to 10 in preauthkeys list command (#2588) 2025-05-13 18:40:17 +00:00
pterm_style.go Fix lint 2022-02-12 19:42:55 +00:00
root_test.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
root.go cli: do not show new pre-releases on stable (#2813) 2025-10-24 13:15:53 +02:00
serve.go db: add sqlite "source of truth" schema 2025-07-07 15:48:38 +01:00
users.go cmd: add option to get and set policy directly from database (#2765) 2025-09-12 16:55:15 +02:00
utils.go cmd: add option to get and set policy directly from database (#2765) 2025-09-12 16:55:15 +02:00
version.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00