0.27.4 — fix: StartRefreshLoop was blocking startup, wrap in goroutine
This commit is contained in:
@@ -96,9 +96,9 @@ func NewHandler(ctx context.Context, pool *db.Pool, cfg config.Config) http.Hand
|
|||||||
s.secretsManager = secrets.NewManager(primary, fallback)
|
s.secretsManager = secrets.NewManager(primary, fallback)
|
||||||
slog.Info("secrets backend wired", "backend", "infisical+sops", "site", cfg.InfisicalSiteURL)
|
slog.Info("secrets backend wired", "backend", "infisical+sops", "site", cfg.InfisicalSiteURL)
|
||||||
|
|
||||||
// Start background secret refresh loop.
|
// Start background secret refresh loop (non-blocking).
|
||||||
if mgr, ok := s.secretsManager.(*secrets.Manager); ok {
|
if mgr, ok := s.secretsManager.(*secrets.Manager); ok {
|
||||||
mgr.StartRefreshLoop(ctx)
|
safego.Go("secrets:refresh", func() { mgr.StartRefreshLoop(ctx) })
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pre-load SSH host keys from Infisical for host verification.
|
// Pre-load SSH host keys from Infisical for host verification.
|
||||||
|
|||||||
Reference in New Issue
Block a user