tailscale-policy: preserve outbound for tagged client physicals via tag:physical #139
Labels
No labels
burndown-2026-06
burndown-2026-08
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/advocate
role/director
role/exec
role/frontend
role/gamedev
role/human
role/platform
role/qa
role/science
role/sysadmin
state
ambient
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/infrastructure#139
Loading…
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
The current tailnet policy grants outbound traffic via one rule:
Once
tailscale_device_tags.physicalassigns tags to a device, Tailscale reassigns its owner fromcoilysiren@to the meta-usertagged-devices. Tagged devices fall out ofautogroup:member, so they lose this universal outbound permit.That's fine for
kai-server, which is already tagged and only ever a destination (k3s NodePorts, forgejo, etc.). It's a regression for the three client physicals (kais-macbook-pro,kai-windows-laptop,kai-desktop-tower), which initiate connections constantly: SSH into kai-server, reach k3s services, etc.Same gotcha applies to SSH: the existing SSH rule has
src: [autogroup:member], so tagged clients would lose SSH-out too.Change
terraform/tailscale-policy/main.tfadds two parallel rules:{action: accept, src: [tag:physical], dst: [*:*]}rule mirroring the autogroup:member outbound permit.tag:physicalto thesrclist of the existing autogroup:member → tag:server SSH rule.tag:physicalis the cross-cutting bucket carried by every physical device, so this lights up the moment apply lands. Per-host tags remain available for future ACL granularity (e.g. "only kai-server reaches the database").Filed by Claude.