From a7a778caaf8f3629cc84287bd04d8e302d4c7d05 Mon Sep 17 00:00:00 2001 From: matst80 Date: Sun, 12 Oct 2025 23:00:17 +0200 Subject: [PATCH] mer --- Dockerfile | 8 ++++---- pkg/proxy/remotehost.go | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index f5416a9..e574a98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,10 +54,10 @@ COPY . . # Build with minimal binary size and embedded metadata RUN --mount=type=cache,target=/go/build-cache \ go build -trimpath -ldflags="-s -w \ - -X main.Version=${VERSION} \ - -X main.GitCommit=${GIT_COMMIT} \ - -X main.BuildDate=${BUILD_DATE}" \ - -o /out/go-cart-actor . + -X main.Version=${VERSION} \ + -X main.GitCommit=${GIT_COMMIT} \ + -X main.BuildDate=${BUILD_DATE}" \ + -o /out/go-cart-actor . ############################ # Runtime Stage diff --git a/pkg/proxy/remotehost.go b/pkg/proxy/remotehost.go index eedbcad..c921a0d 100644 --- a/pkg/proxy/remotehost.go +++ b/pkg/proxy/remotehost.go @@ -10,6 +10,7 @@ import ( messages "git.tornberg.me/go-cart-actor/pkg/messages" "google.golang.org/grpc" + "google.golang.org/grpc/credentials/insecure" ) // RemoteHost mirrors the lightweight controller used for remote node @@ -27,8 +28,8 @@ type RemoteHost struct { func NewRemoteHost(host string) (*RemoteHost, error) { target := fmt.Sprintf("%s:1337", host) - var opts []grpc.DialOption - conn, err := grpc.NewClient(target, opts...) + + conn, err := grpc.NewClient(target, grpc.WithTransportCredentials(insecure.NewCredentials())) if err != nil { log.Printf("AddRemote: dial %s failed: %v", target, err)