tailscale-devices: sweep existing sidecars to re-auth with rich tag set #146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
After coilysiren/infrastructure#144 + #145 landed, every
tailscale_tailnet_keyminted byterraform/tailscale-devices/carries the rich tag set:[tag:k8s, tag:svc-<service>, tag:host-kai-server]. But the existing sidecar devices still carry onlytag:k8s, because they're using their persistedts-stateSecret from first boot and won't re-auth on their own.Consequence: the tailnet admin console answers "which deployment is this device" only for future sidecars (re-deployed or new). Existing devices stay anonymous under
tag:k8suntil manually bounced.Change
Per-namespace sweep:
The actual command shape varies per deployment - some sidecars share a Deployment with the app, some are separate. Best to do this as a per-service issue tree or a single sweep script that knows each service's namespace + pod selector.
Expected outcome
After the sweep,
coily tailscale statusshows each sidecar with itstag:svc-<service>+tag:host-kai-server, and the admin console can answer "which physical host runs this deployment" without operator knowledge.Out of scope
tag:svc-<service>(e.g. "only tag:svc-forgejo reaches the forgejo DB"). Tags are now in place to support that work but no rules are using them yet.tag:svc-<service>to actual ACL src/dst - the rich tags just sit in tagOwners until someone uses them.Filed by Claude.