headscale/hscontrol/mapper
Kristoffer Dalby 64d13f77e8 types/config, types/node: model default-auto-update from auto_update.enabled
Tailscale stamps tailcfg.NodeAttrDefaultAutoUpdate on every node's
CapMap with a JSON bool reflecting the tailnet-wide auto-update
default. Headscale grows an auto_update.enabled config option and
emits the cap accordingly from TailNode -- the cap leaves the
unmodelledTailnetStateCaps strip list and is compared in full by the
nodeAttrs compat suite.

testNodeAttrsSuccess drives cfg.AutoUpdate.Enabled from
tf.Input.Tailnet.Settings.DevicesAutoUpdatesOn so each capture's
expected emission matches the SaaS state it was taken under. Two
captures cover both branches:

  - nodeattrs-tailnet-devices-auto-updates-on  -> [true]
  - nodeattrs-tailnet-devices-auto-updates-off -> [false]

The Tailscale v2 TailnetSettings API does not expose the Send Files
toggle, so the compat suite cannot vary cfg.Taildrop.Enabled per
capture. TestTaildropDisabledWithholdsFileSharingCap covers the off
path directly in servertest.
2026-05-13 14:22:30 +02:00
..
batcher.go mapper: fix phantom updateSentPeers on disconnected nodes 2026-04-10 13:18:56 +01:00
batcher_bench_test.go hscontrol/types: silence zerolog by default in tests 2026-04-17 16:31:49 +01:00
batcher_concurrency_test.go hscontrol/types: silence zerolog by default in tests 2026-04-17 16:31:49 +01:00
batcher_scale_bench_test.go hscontrol/types: silence zerolog by default in tests 2026-04-17 16:31:49 +01:00
batcher_test.go hscontrol/types: silence zerolog by default in tests 2026-04-17 16:31:49 +01:00
batcher_unit_test.go mapper: fix phantom updateSentPeers on disconnected nodes 2026-04-10 13:18:56 +01:00
builder.go types/node, mapper, policy/v2: assemble self CapMap inside TailNode 2026-05-13 14:22:30 +02:00
builder_test.go all: fix golangci-lint issues (#3064) 2026-02-06 21:45:32 +01:00
mapper.go mapper, state: deliver nodeAttrs through MapResponse and harden nextdns DoH rewrite 2026-05-13 14:22:30 +02:00
mapper_test.go mapper, state: deliver nodeAttrs through MapResponse and harden nextdns DoH rewrite 2026-05-13 14:22:30 +02:00
node_conn.go mapper: fix phantom updateSentPeers on disconnected nodes 2026-04-10 13:18:56 +01:00
tail_test.go types/config, types/node: model default-auto-update from auto_update.enabled 2026-05-13 14:22:30 +02:00