Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add windows stub to fix build issue

Maidul Islama16dc3aef60e
diff --git a/cli/packages/gateway/relay.go b/cli/packages/gateway/relay.go
index 0db5fd387e..bbd1332a4a 100644
--- a/cli/packages/gateway/relay.go
+++ b/cli/packages/gateway/relay.go
@@ -1,3 +1,6 @@
+//go:build !windows
+// +build !windows
+
package gateway
import (
diff --git a/cli/packages/gateway/relay_windows.go b/cli/packages/gateway/relay_windows.go
new file mode 100644
index 0000000000..f3bf89bd06
--- /dev/null
+++ b/cli/packages/gateway/relay_windows.go
@@ -0,0 +1,37 @@
+//go:build windows
+// +build windows
+
+package gateway
+
+import (
+ "errors"
+)
+
+var (
+ errMissingTlsCert = errors.New("Missing TLS files")
+ errWindowsNotSupported = errors.New("Relay is not supported on Windows")
+)
+
+type GatewayRelay struct {
+ Config *GatewayRelayConfig
+}
+
+type GatewayRelayConfig struct {
+ PublicIP string
+ Port int
+ Realm string
+ AuthSecret string
+ RelayMinPort uint16
+ RelayMaxPort uint16
+ TlsCertPath string
+ TlsPrivateKeyPath string
+ TlsCaPath string
+}
+
+func NewGatewayRelay(configFilePath string) (*GatewayRelay, error) {
+ return nil, errWindowsNotSupported
+}
+
+func (g *GatewayRelay) Run() error {
+ return errWindowsNotSupported
+}