From 5a0d102a4e2b6cb0e3adc12718347ace4dd3a2c1 Mon Sep 17 00:00:00 2001 From: Alva Zhang <140438385+Alva8756@users.noreply.github.com> Date: Mon, 29 Jan 2024 00:29:26 -0800 Subject: [PATCH] Add back SecretsKeeper (#15) It was mistaken deleted on https://github.com/metal-toolbox/fleetdb/pull/12/files --- cmd/serve.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cmd/serve.go b/cmd/serve.go index ba9e893..029691e 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -113,11 +113,12 @@ func serve(ctx context.Context) { } hs := &httpsrv.Server{ - Logger: logger.Desugar(), - Listen: viper.GetString("listen"), - Debug: config.AppConfig.Logging.Debug, - DB: db, - AuthConfigs: authCfgs, + Logger: logger.Desugar(), + Listen: viper.GetString("listen"), + Debug: config.AppConfig.Logging.Debug, + DB: db, + SecretsKeeper: keeper, + AuthConfigs: authCfgs, } // init event stream - for now, only when nats.url is specified