tailscale/ipn/localapi
Harry Harpham 1b88e93ff5 ipn/ipnlocal: allow retrieval of serve config ETags from local API
This change adds API to ipn.LocalBackend to retrieve the ETag when
querying for the current serve config. This allows consumers of
ipn.LocalBackend.SetServeConfig to utilize the concurrency control
offered by ETags. Previous to this change, utilizing serve config ETags
required copying the local backend's internal ETag calcuation.

The local API server was previously copying the local backend's ETag
calculation as described above. With this change, the local API server
now uses the new ETag retrieval function instead. Serve config ETags are
therefore now opaque to clients, in line with best practices.

Fixes tailscale/corp#35857
Signed-off-by: Harry Harpham <harry@tailscale.com>
2026-01-16 15:28:31 -07:00
..
cert.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 2025-09-16 14:11:15 -07:00
debug.go types/key,wgengine/magicsock,control/controlclient,ipn: add debug disco key rotation 2025-11-18 12:16:15 -08:00
debugderp.go feature/featuretags: add a catch-all "Debug" feature flag 2025-09-30 11:32:33 -07:00
disabled_stubs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
localapi_drive.go feature/drive: start factoring out Taildrive, add ts_omit_drive build tag 2025-09-11 14:26:08 -07:00
localapi_test.go cmd/tailscaled,ipn: show a health warning when state store fails to open (#17883) 2025-11-20 15:52:58 -06:00
localapi.go client/local: add method to set gauge metric to a value 2025-12-16 14:11:33 -08:00
pprof.go cmd/tailscaled, ipn/localapi, util/eventbus: don't link in regexp when debug is omitted 2025-09-30 12:13:17 -07:00
serve.go ipn/ipnlocal: allow retrieval of serve config ETags from local API 2026-01-16 15:28:31 -07:00
syspolicy_api.go feature/featuretags: add a catch-all "Debug" feature flag 2025-09-30 11:32:33 -07:00
tailnetlock.go all: rename variables with lowercase-l/uppercase-I 2025-11-18 09:12:34 +00:00