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 d0daa5a398 tka: marshal AUMHash totext even if Tailnet Lock is omitted
We use `tka.AUMHash` in `netmap.NetworkMap`, and we serialise it as JSON
in the `/debug/netmap` C2N endpoint. If the binary omits Tailnet Lock support,
the debug endpoint returns an error because it's unable to marshal the
AUMHash.

This patch adds a sentinel value so this marshalling works, and we can
use the debug endpoint.

Updates https://github.com/tailscale/tailscale/issues/17115

Signed-off-by: Alex Chan <alexc@tailscale.com>

Change-Id: I51ec1491a74e9b9f49d1766abd89681049e09ce4
2 weeks ago
..
aum.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
aum_test.go tka: add a test for unmarshaling existing AUMs 3 weeks ago
builder.go various: adds missing apostrophes to comments 3 weeks 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 tka: marshal AUMHash totext even if Tailnet Lock is omitted 2 weeks ago
key.go tka: use ts_omit_tailnetlock in another spot, for ed25519consensus 2 months ago
key_test.go various: adds missing apostrophes to comments 3 weeks ago
scenario_test.go various: adds missing apostrophes to comments 3 weeks ago
sig.go various: adds missing apostrophes to comments 3 weeks ago
sig_test.go all: rename variables with lowercase-l/uppercase-I 2 weeks ago
state.go various: adds missing apostrophes to comments 3 weeks ago
state_test.go all: add ts_omit_tailnetlock as a start of making it build-time modular 3 months ago
sync.go various: adds missing apostrophes to comments 3 weeks ago
sync_test.go various: adds missing apostrophes to comments 3 weeks ago
tailchonk.go tka: mark young AUMs as active even if the chain is long 2 weeks ago
tailchonk_test.go tka: mark young AUMs as active even if the chain is long 2 weeks ago
tka.go tka: fix typo in comment 2 weeks 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 various: adds missing apostrophes to comments 3 weeks ago
verify_disabled.go tka: use ts_omit_tailnetlock in another spot, for ed25519consensus 2 months ago