You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/ipn/localapi
Harry Harpham fc9754b5f0
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>
20 hours ago
..
cert.go feature/featuretags, all: add ts_omit_acme to disable TLS cert support 4 months ago
debug.go types/key,wgengine/magicsock,control/controlclient,ipn: add debug disco key rotation 2 months ago
debugderp.go feature/featuretags: add a catch-all "Debug" feature flag 4 months ago
disabled_stubs.go all: update copyright and license headers 3 years ago
localapi.go client/local: add method to set gauge metric to a value 4 weeks ago
localapi_drive.go feature/drive: start factoring out Taildrive, add ts_omit_drive build tag 4 months ago
localapi_test.go cmd/tailscaled,ipn: show a health warning when state store fails to open (#17883) 2 months ago
pprof.go cmd/tailscaled, ipn/localapi, util/eventbus: don't link in regexp when debug is omitted 4 months ago
serve.go ipn/ipnlocal: allow retrieval of serve config ETags from local API 20 hours ago
syspolicy_api.go feature/featuretags: add a catch-all "Debug" feature flag 4 months ago
tailnetlock.go all: rename variables with lowercase-l/uppercase-I 2 months ago