summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorNick Khyl <nickk@tailscale.com>2025-07-28 12:23:40 -0500
committerNick Khyl <1761190+nickkhyl@users.noreply.github.com>2025-07-28 12:57:39 -0500
commit4df02bbb486d07b0ad23f59c4cb3675ab691e79b (patch)
treed0092e185b2dd3da8c5d428d0c2aceb227b42518 /control/controlknobs/controlknobs.go
parenta9f3fd1c67ca427aceee708f319a0a12df6a5de8 (diff)
downloadtailscale-4df02bbb486d07b0ad23f59c4cb3675ab691e79b.tar.xz
tailscale-4df02bbb486d07b0ad23f59c4cb3675ab691e79b.zip
util/syspolicy/setting: use a custom marshaler for time.Duration
jsonv2 now returns an error when you marshal or unmarshal a time.Duration without an explicit format flag. This is an intentional, temporary choice until the default [time.Duration] representation is decided (see golang/go#71631). setting.Snapshot can hold time.Duration values inside a map[string]any, so the jsonv2 update breaks marshaling. In this PR, we start using a custom marshaler until that decision is made or golang/go#71664 lets us specify the format explicitly. This fixes `tailscale syspolicy list` failing when KeyExpirationNotice or any other time.Duration policy setting is configured. Fixes #16683 Signed-off-by: Nick Khyl <nickk@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions