Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(ui_server): trust tailscale ipv6 overlay peers

cyhbe048cb2beae
diff --git a/tests/test_ui_remote_access_auth.py b/tests/test_ui_remote_access_auth.py
index d008139e9..1009aa777 100644
--- a/tests/test_ui_remote_access_auth.py
+++ b/tests/test_ui_remote_access_auth.py
@@ -1332,7 +1332,7 @@ def test_setup_host_ipv6_wildcard_allows_actual_private_interface_host(monkeypat
def test_setup_host_ipv6_wildcard_allows_tailscale_ula_interface_host(monkeypatch, tmp_path):
monkeypatch.setenv("VIBE_REMOTE_HOME", str(tmp_path))
_save_config_with_setup_host(tmp_path, "::")
- _mock_interface(monkeypatch, "fd7a:115c:a1e0::5", 64, name="tailscale0")
+ _mock_interface(monkeypatch, "fd7a:115c:a1e0::5", 128, name="tailscale0")
response = app.test_client().get(
"/health",
diff --git a/vibe/ui_server.py b/vibe/ui_server.py
index 8359cab06..0652394a8 100644
--- a/vibe/ui_server.py
+++ b/vibe/ui_server.py
@@ -267,13 +267,19 @@ _TAILSCALE_IPV6_ADDRESS_SPACE = ipaddress.ip_network("fd7a:115c:a1e0::/48")
# * 100.64.0.0/10 — Tailscale CGNAT. Tailscale assigns each peer a /32 in
# this range and routes peers via its overlay; legitimate peers can be
# anywhere in the /10 even though they share the same logical network.
+# * fd7a:115c:a1e0::/48 — Tailscale IPv6 ULA. Like the IPv4 CGNAT
+# range, Tailscale can assign interface addresses as host routes while
+# legitimate peers live elsewhere in the overlay prefix.
# * 169.254.0.0/16 / fe80::/10 — link-local. Confined to the same L2
# segment by the kernel.
_OVERLAY_TRUST_NETWORKS_V4 = (
ipaddress.IPv4Network("100.64.0.0/10"),
ipaddress.IPv4Network("169.254.0.0/16"),
)
-_OVERLAY_TRUST_NETWORKS_V6 = (ipaddress.IPv6Network("fe80::/10"),)
+_OVERLAY_TRUST_NETWORKS_V6 = (
+ _TAILSCALE_IPV6_ADDRESS_SPACE,
+ ipaddress.IPv6Network("fe80::/10"),
+)
_WILDCARD_TRUST_LAN_INTERFACE_PREFIXES = (
"en",
"eth",