Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix: OIDC env vars ignored when no oidc.enc file exists

rcourtman5591b3006f7c
diff --git a/internal/config/config.go b/internal/config/config.go
index bf75083821..8ccff30d12 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -1163,6 +1163,10 @@ func Load() (*Config, error) {
oidcEnv["OIDC_CA_BUNDLE"] = val
}
if len(oidcEnv) > 0 {
+ // Ensure cfg.OIDC is initialized before merging env vars
+ if cfg.OIDC == nil {
+ cfg.OIDC = NewOIDCConfig()
+ }
cfg.OIDC.MergeFromEnv(oidcEnv)
}
if authUser := os.Getenv("PULSE_AUTH_USER"); authUser != "" {