From 3ec82d922ca7caab4a34ffdc60ed32561b2c1090 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Wed, 18 Oct 2023 14:27:50 +0200 Subject: [PATCH] fix auth service env variable --- changelog/unreleased/fix-auth-service-jwt.md | 5 +++++ services/auth-service/pkg/config/reva.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/fix-auth-service-jwt.md diff --git a/changelog/unreleased/fix-auth-service-jwt.md b/changelog/unreleased/fix-auth-service-jwt.md new file mode 100644 index 0000000000..368dd17f55 --- /dev/null +++ b/changelog/unreleased/fix-auth-service-jwt.md @@ -0,0 +1,5 @@ +Bugfix: Fix the auth service env variable + +We the auth service env variable to the service specific name. Before it was configurable via `AUTH_MACHINE_JWT_SECRET` and now is configurable via `AUTH_SERVICE_JWT_SECRET`. + +https://github.com/owncloud/ocis/pull/7523 diff --git a/services/auth-service/pkg/config/reva.go b/services/auth-service/pkg/config/reva.go index 14cb00d089..b5069037f1 100644 --- a/services/auth-service/pkg/config/reva.go +++ b/services/auth-service/pkg/config/reva.go @@ -2,5 +2,5 @@ package config // TokenManager is the config for using the reva token manager type TokenManager struct { - JWTSecret string `yaml:"jwt_secret" env:"OCIS_JWT_SECRET;AUTH_MACHINE_JWT_SECRET" desc:"The secret to mint and validate jwt tokens."` + JWTSecret string `yaml:"jwt_secret" env:"OCIS_JWT_SECRET;AUTH_SERVICE_JWT_SECRET" desc:"The secret to mint and validate jwt tokens."` }