<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wg-wrap.git/.gitignore, branch main</title>
<subtitle>wg-wrap runs commands in network namespaces configured with userspace wireguard tunnels.
</subtitle>
<id>https://git.theodohertyfamily.com/wg-wrap.git/atom?h=main</id>
<link rel='self' href='https://git.theodohertyfamily.com/wg-wrap.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.theodohertyfamily.com/wg-wrap.git/'/>
<updated>2026-05-30T00:11:07Z</updated>
<entry>
<title>Refactor rootless namespace joining to use C launcher</title>
<updated>2026-05-30T00:11:07Z</updated>
<author>
<name>James O'Doherty</name>
<email>james@theodohertyfamily.com</email>
</author>
<published>2026-05-30T00:11:07Z</published>
<link rel='alternate' type='text/html' href='https://git.theodohertyfamily.com/wg-wrap.git/commit/?id=4ddd0d2ffc7073f2d55ffb6777e3a168af0051f0'/>
<id>urn:sha1:4ddd0d2ffc7073f2d55ffb6777e3a168af0051f0</id>
<content type='text'>
Fix an architectural shortfall where concurrent sessions failed to share
the target network and mount namespaces. Because the Go runtime is
multi-threaded, calling unix.Setns with CLONE_NEWNS from Go always returned
EINVAL, silently forcing concurrent runs to fall back to bootstrapping separate
isolated namespaces and separate WireGuard connections.

This commit resolves the issue by extending the embedded single-threaded C
launcher to handle namespace joining, and introducing a host-to-isolated path
propagation pattern:

1. Launcher setns Support: The C launcher now checks for WG_WRAP_JOIN_PID in
   the environment. If present, it joins the User, Mount, and Network
   namespaces of the active PID in single-threaded mode before executing the Go
   binary.
2. BootstrapJoin Integration: Implemented namespace.BootstrapJoin to
   transition joining sessions via the launcher.
3. Path Preservation: Export WG_WRAP_HOST_RUNTIME_BASE_DIR from the host to ensure
   the isolated instance maps the profile and PID directories to the exact
   same location.
4. Redundant Tunnel Bypass: Detect joined sessions via WG_WRAP_JOINED=1 in the CLI
   and bypass starting a duplicate WireGuard tunnel on the occupied tun0.
5. Testing: Added tests/e2e/sharing_test.go to assert namespace ID equality,
   which now passes successfully.
6. Git Tracking: Fixed .gitignore overmatch to stop ignoring cmd/wg-wrap/.
</content>
</entry>
<entry>
<title>docs: update README and AGENTS.md to reflect embedded launcher architecture</title>
<updated>2026-05-22T14:14:03Z</updated>
<author>
<name>James O'Doherty</name>
<email>james@theodohertyfamily.com</email>
</author>
<published>2026-05-22T14:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.theodohertyfamily.com/wg-wrap.git/commit/?id=5dbc46f3c1c75bf922bcc1c3df342323c23c04ce'/>
<id>urn:sha1:5dbc46f3c1c75bf922bcc1c3df342323c23c04ce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat: implement rootless network isolation bootstrap and C launcher</title>
<updated>2026-05-22T14:05:38Z</updated>
<author>
<name>James O'Doherty</name>
<email>james@theodohertyfamily.com</email>
</author>
<published>2026-05-22T14:05:38Z</published>
<link rel='alternate' type='text/html' href='https://git.theodohertyfamily.com/wg-wrap.git/commit/?id=764d3e67fc783c487f42d398d1b85a5a1f0d8ef0'/>
<id>urn:sha1:764d3e67fc783c487f42d398d1b85a5a1f0d8ef0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Scaffold wg-wrap project structure and toolchain</title>
<updated>2026-05-22T13:13:16Z</updated>
<author>
<name>James O'Doherty</name>
<email>james@theodohertyfamily.com</email>
</author>
<published>2026-05-22T13:13:16Z</published>
<link rel='alternate' type='text/html' href='https://git.theodohertyfamily.com/wg-wrap.git/commit/?id=756ba94292b408cc4f23d137b2c4c52009b2b38d'/>
<id>urn:sha1:756ba94292b408cc4f23d137b2c4c52009b2b38d</id>
<content type='text'>
</content>
</entry>
</feed>
