From dbd5780e068bc38a16685e384337a5989c233984 Mon Sep 17 00:00:00 2001
From: Lyuben Penkovski <lyuben.penkovski@vereign.com>
Date: Thu, 24 Nov 2022 13:27:18 +0200
Subject: [PATCH] Disable auth middleware by default and update Go to 1.19.3

---
 .gitlab-ci.yml                | 6 +++---
 deployment/ci/Dockerfile      | 2 +-
 deployment/compose/Dockerfile | 2 +-
 internal/config/config.go     | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8802254..eec40c5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,7 @@ include:
   - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
 
 lint:
-  image: golangci/golangci-lint:v1.50.0
+  image: golangci/golangci-lint:v1.50.1
   stage: test
   tags:
     - amd64-docker
@@ -28,7 +28,7 @@ lint:
     - cd /go/src/gitlab.com/${CI_PROJECT_PATH}
 
 unit tests:
-  image: golang:1.19
+  image: golang:1.19.3
   extends: .gotest
   stage: test
   tags:
@@ -36,7 +36,7 @@ unit tests:
   before_script: []
 
 govulncheck:
-  image: golang:1.19
+  image: golang:1.19.3
   stage: test
   tags:
     - amd64-docker
diff --git a/deployment/ci/Dockerfile b/deployment/ci/Dockerfile
index cb67fc4..dbea56f 100644
--- a/deployment/ci/Dockerfile
+++ b/deployment/ci/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.19-alpine3.15 as builder
+FROM golang:1.19.3-alpine3.15 as builder
 
 RUN apk add git
 
diff --git a/deployment/compose/Dockerfile b/deployment/compose/Dockerfile
index f5a086b..5aa4744 100644
--- a/deployment/compose/Dockerfile
+++ b/deployment/compose/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.19
+FROM golang:1.19.3
 
 ENV GO111MODULE=on
 
diff --git a/internal/config/config.go b/internal/config/config.go
index 3d7b270..3a2c8ea 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -38,7 +38,7 @@ type metricsConfig struct {
 }
 
 type authConfig struct {
-	Enabled         bool          `envconfig:"AUTH_ENABLED" default:"true"`
+	Enabled         bool          `envconfig:"AUTH_ENABLED" default:"false"`
 	JwkURL          string        `envconfig:"AUTH_JWK_URL"`
 	RefreshInterval time.Duration `envconfig:"AUTH_REFRESH_INTERVAL" default:"1h"`
 }
-- 
GitLab