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/tka
Alex Chan 6b0fbffd4f tka: move RemoveAll() to CompactableChonk
I added a RemoveAll() method on tka.Chonk in #17946, but it's only used
in the node to purge local AUMs. We don't need it in the SQLite storage,
which currently implements tka.Chonk, so move it to CompactableChonk
instead.

Also add some automated tests, as a safety net.

Updates tailscale/corp#33599

Change-Id: I54de9ccf1d6a3d29b36a94eccb0ebd235acd4ebc
Signed-off-by: Alex Chan <alexc@tailscale.com>
(cherry picked from commit c17ba64129)
2 weeks ago
..
aum.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
aum_test.go all: update copyright and license headers 3 years ago
builder.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
builder_test.go tka: block key addition when the max number of keys is reached 4 months ago
chaintest_test.go all: use Go 1.22 range-over-int 2 years ago
deeplink.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
deeplink_test.go tka: add function for generating signing deeplinks (#8385) 2 years ago
disabled_stub.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
key.go tka: use ts_omit_tailnetlock in another spot, for ed25519consensus 2 months ago
key_test.go all: update copyright and license headers 3 years ago
scenario_test.go all: cleanup unused code, part 1 (#10661) 2 years ago
sig.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
sig_test.go all: use a consistent capitalisation for "Tailnet Lock" 2 months ago
state.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
state_test.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
sync.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
sync_test.go all: update copyright and license headers 3 years ago
tailchonk.go tka: move RemoveAll() to CompactableChonk 2 weeks ago
tailchonk_test.go ipn/ipnlocal: use an in-memory TKA store if FS is unavailable 2 weeks ago
tka.go tka: use ts_omit_tailnetlock in another spot, for ed25519consensus 2 months ago
tka_clone.go cmd/tl-longchain: tool to re-sign nodes with long rotation signatures 1 year ago
tka_test.go all: implement lock revoke-keys command 2 years ago
verify.go tka: use ts_omit_tailnetlock in another spot, for ed25519consensus 2 months ago
verify_disabled.go tka: use ts_omit_tailnetlock in another spot, for ed25519consensus 2 months ago