From 00679c735fe6c14e6b2661d4b12badef8ee99524 Mon Sep 17 00:00:00 2001 From: colmsnowplow Date: Mon, 1 Aug 2022 13:41:42 +0100 Subject: [PATCH] Remove support for GCP auth via env vars (closes #181) --- cmd/init.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cmd/init.go b/cmd/init.go index 939425c8..a73a671a 100644 --- a/cmd/init.go +++ b/cmd/init.go @@ -9,7 +9,6 @@ package cmd import ( "encoding/json" "fmt" - "os" "github.com/getsentry/sentry-go" "github.com/pkg/errors" @@ -17,7 +16,6 @@ import ( sentryhook "github.com/snowplow-devops/go-sentryhook" config "github.com/snowplow-devops/stream-replicator/config" - "github.com/snowplow-devops/stream-replicator/pkg/common" ) var ( @@ -43,15 +41,6 @@ func Init() (*config.Config, bool, error) { return nil, false, errors.Wrap(err, "Failed to build config") } - // Configure GCP Access (if set) - if cfg.Data.GoogleServiceAccountB64 != "" { - targetFile, err := common.GetGCPServiceAccountFromBase64(cfg.Data.GoogleServiceAccountB64) - if err != nil { - return nil, false, errors.Wrap(err, "Failed to store GCP Service Account JSON file") - } - os.Setenv("GOOGLE_APPLICATION_CREDENTIALS", targetFile) - } - // Configure Sentry sentryEnabled := cfg.Data.Sentry.Dsn != "" if sentryEnabled {