Skip to content

Support TCP fallback for gRPC on Windows IT-547 - #20

Open
bbiegun wants to merge 1 commit into
hfern:masterfrom
bbiegun:IT-547-gRPC-fallback-on-windows-2
Open

Support TCP fallback for gRPC on Windows IT-547#20
bbiegun wants to merge 1 commit into
hfern:masterfrom
bbiegun:IT-547-gRPC-fallback-on-windows-2

Conversation

@bbiegun

@bbiegun bbiegun commented Jun 29, 2026

Copy link
Copy Markdown

Summary

Adds Windows support to the Terraform plugin gRPC runner by falling back to TCP loopback when Unix domain sockets are unavailable. Non-Windows platforms continue to use Unix sockets unchanged.

Changes

  • Detect Windows and switch the gRPC transport to TCP loopback, since gRPC on Windows does not support Unix domain sockets.
  • No changes on non-Windows systems.

Motivation

The runner previously hard-coded uniq domain sockets, preventing the plugin from starting on Windows. This change makes the same code path work on Windows (via TCP) while remaining identical on Uni* systems.

Testing

  • Manual: plugin starts and handshakes successfully on Windows over TCP loopback.
  • Manual: Linux path is unchanged - plugin starts and handshakes successfully on Linux.

@bbiegun
bbiegun marked this pull request as ready for review June 29, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant