Skip to content

Commit

Permalink
Merge pull request #7523 from owncloud/auth-service-jwt
Browse files Browse the repository at this point in the history
fix auth service env variable
  • Loading branch information
wkloucek committed Oct 18, 2023
2 parents b3a9254 + 3ec82d9 commit c300b89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-auth-service-jwt.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion services/auth-service/pkg/config/reva.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."`
}

0 comments on commit c300b89

Please sign in to comment.