Skip to content
Snippets Groups Projects
Commit bd3054ba authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Merge branch 'default-disable-auth-middleware' into 'main'

Disable auth middleware by default and update Go to 1.19.3

See merge request gaia-x/data-infrastructure-federation-services/tsa/cache!4
parents 085e937a dbd5780e
No related branches found
No related tags found
No related merge requests found
Pipeline #55547 failed
...@@ -16,7 +16,7 @@ include: ...@@ -16,7 +16,7 @@ include:
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml' - template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
lint: lint:
image: golangci/golangci-lint:v1.50.0 image: golangci/golangci-lint:v1.50.1
stage: test stage: test
tags: tags:
- amd64-docker - amd64-docker
...@@ -28,7 +28,7 @@ lint: ...@@ -28,7 +28,7 @@ lint:
- cd /go/src/gitlab.com/${CI_PROJECT_PATH} - cd /go/src/gitlab.com/${CI_PROJECT_PATH}
unit tests: unit tests:
image: golang:1.19 image: golang:1.19.3
extends: .gotest extends: .gotest
stage: test stage: test
tags: tags:
...@@ -36,7 +36,7 @@ unit tests: ...@@ -36,7 +36,7 @@ unit tests:
before_script: [] before_script: []
govulncheck: govulncheck:
image: golang:1.19 image: golang:1.19.3
stage: test stage: test
tags: tags:
- amd64-docker - amd64-docker
......
FROM golang:1.19-alpine3.15 as builder FROM golang:1.19.3-alpine3.15 as builder
RUN apk add git RUN apk add git
......
FROM golang:1.19 FROM golang:1.19.3
ENV GO111MODULE=on ENV GO111MODULE=on
......
...@@ -38,7 +38,7 @@ type metricsConfig struct { ...@@ -38,7 +38,7 @@ type metricsConfig struct {
} }
type authConfig struct { type authConfig struct {
Enabled bool `envconfig:"AUTH_ENABLED" default:"true"` Enabled bool `envconfig:"AUTH_ENABLED" default:"false"`
JwkURL string `envconfig:"AUTH_JWK_URL"` JwkURL string `envconfig:"AUTH_JWK_URL"`
RefreshInterval time.Duration `envconfig:"AUTH_REFRESH_INTERVAL" default:"1h"` RefreshInterval time.Duration `envconfig:"AUTH_REFRESH_INTERVAL" default:"1h"`
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment