rayfin login fails in WSL2 + Dev Container environment when Global Secure Access is enabled
@cpeth is already working on this.
Since Jul 29, 2026.
- Dominant language
- No language data
- Stars
- 610
- Forks
- 62
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 3
Description
Problem statement
When using Rayfin CLI inside a WSL2-based Dev Container on Windows, rayfin login fails if Microsoft Global Secure Access (GSA) is enabled on the host machine.
The issue is reproducible in a WSL2 + Dev Container development environment. Disabling GSA immediately restores normal behavior and rayfin login succeeds.
This appears to be related to networking differences between the Windows host and the Linux container environment. GSA traffic interception works on the Windows host through its TUN driver, but the Linux container does not appear to have access to the same network path required for the authentication flow.
Proposed solution
Investigate whether Rayfin CLI can:
- Detect when it is running inside WSL2 or a Dev Container.
- Provide a clearer error message when the authentication flow cannot be completed because of Global Secure Access networking.
- Document known limitations and workarounds for WSL2 + Dev Container environments when GSA is enabled.
- Provide an alternative authentication flow that does not depend on host-only networking behavior, if applicable.
Alternatives considered
- Disabling Global Secure Access on the Windows host. This workaround allows
rayfin loginto succeed, but it is not practical in enterprise environments where GSA is mandated. - Running Rayfin CLI directly from the Windows host instead of the Dev Container.
Additional context
Environment:
- Windows 11
- WSL2
- VS Code Dev Container
- Microsoft Global Secure Access enabled
Observed behavior:
rayfin loginfails when GSA is enabled.rayfin loginsucceeds immediately after GSA is disabled.
Possible root cause:
GSA uses a Windows-based TUN driver for traffic redirection. Since the driver operates on the Windows host network stack, Linux containers running inside WSL2 may not have access to the same network path or authentication redirection mechanism required by rayfin login.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.