1
0
mirror of https://github.com/juanfont/headscale.git synced 2026-02-23 13:50:36 +01:00
juanfont.headscale/cmd/headscale/cli
Kristoffer Dalby 82f2faaa32 node: implement disable key expiry via CLI and API
Wire up the disable_expiry proto field through gRPC, state, database
and CLI layers to allow clearing a node expiry.

- Update NodeSetExpiry to accept *time.Time (nil disables expiry)
- Fix SetNodeExpiry to persist via db.NodeSetExpiry directly instead
  of persistNodeToDB which omits the expiry field
- Add mutual exclusion validation for expiry vs disable_expiry in gRPC
- Add --disable flag to headscale nodes expire CLI command
- Fix missing return after ErrorOutput in both expire and disable paths
- Add unit test TestDisableNodeExpiry in db/node_test.go
- Add integration test TestDisableNodeExpiry in general_test.go

Fixes #2681

Co-authored-by: Marco Santos <me@marcopsantos.com>
2026-02-19 07:23:27 +00:00
..
api_key.go all: apply golangci-lint 2.9.0 fixes 2026-02-19 08:21:23 +01:00
configtest.go all: use lowercase log messages 2026-02-06 07:40:29 +01:00
debug.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01: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 all: apply golangci-lint 2.9.0 fixes 2026-02-19 08:21:23 +01:00
mockoidc.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
nodes.go node: implement disable key expiry via CLI and API 2026-02-19 07:23:27 +00:00
policy.go all: apply golangci-lint 2.9.0 fixes 2026-02-19 08:21:23 +01:00
preauthkeys.go all: apply golangci-lint 2.9.0 fixes 2026-02-19 08:21:23 +01: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 all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
serve.go all: upgrade to Go 1.26rc2 and modernize codebase 2026-02-08 12:35:23 +01:00
users.go all: apply golangci-lint 2.9.0 fixes 2026-02-19 08:21:23 +01:00
utils.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
version.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00