From 7836aef5c3231fb434fb8234e838c7b5cc07ce6e Mon Sep 17 00:00:00 2001 From: David Allen Date: Wed, 3 Jul 2024 11:41:17 -0600 Subject: [PATCH] Added CONFIGURATOR_JWKS_URL var for key verification --- cmd/root.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index d376654..353523e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -55,4 +55,14 @@ func initConfig() { } else { config = configurator.NewConfig() } + + // + // set environment variables to override config values + // + + // set the JWKS url if we find the CONFIGURATOR_JWKS_URL environment variable + jwksUrl := os.Getenv("CONFIGURATOR_JWKS_URL") + if jwksUrl != "" { + config.Server.Jwks.Uri = jwksUrl + } }