You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When declaring only the environment variable KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS keda-add-ons-http-interceptor fails to launch because it looks first in the folder KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS for a tls.crt file and fails when logging
Expected Behavior
Log without failure
Actual Behavior
Fails when logging the ignore key
Steps to Reproduce the Problem
Setup the env variable KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS but do not set KEDA_HTTP_PROXY_TLS_KEY_PATH nor KEDA_HTTP_PROXY_TLS_KEY_PATH
keda-add-ons-http-interceptor starts looking into the folder specified by KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS and if it finds no tls.crt here, it fails instead of recursively searching (there are certificates at $KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS/app1 and KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS/app2 though)
Logs from KEDA HTTP operator
2024-12-02T12:46:07Z DPANIC odd number of arguments passed as key-value pairs for logging {"ignored key": "open /certs/tls.crt: no such file or directory"}
main.runProxyServer
github.com/kedacore/http-add-on/interceptor/main.go:258
main.main.func5
github.com/kedacore/http-add-on/interceptor/main.go:176
golang.org/x/sync/errgroup.(*Group).Go.func1
golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78
panic: odd number of arguments passed as key-value pairs for logging
goroutine 71 [running]:
go.uber.org/zap/zapcore.CheckWriteAction.OnWrite(0x8c?, 0xb?, {0x0?, 0x0?, 0xc000512200?})
go.uber.org/zap@v1.27.0/zapcore/entry.go:196 +0x54
go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc000275a00, {0xc000300240, 0x1, 0x1})
go.uber.org/zap@v1.27.0/zapcore/entry.go:262 +0x24e
go.uber.org/zap.(*Logger).DPanic(0x1d9888c?, {0x1df617a?, 0x1b36900?}, {0xc000300240, 0x1, 0x1})
go.uber.org/zap@v1.27.0/logger.go:275 +0x51
github.com/go-logr/zapr.(*zapLogger).handleFields(0xc00029d080, 0xffffffffffffffff, {0xc0002be0b0, 0x1, 0xc0003c08a0?}, {0xc0003001c0, 0x1, 0x7fe960969f18?})
github.com/go-logr/zapr@v1.3.0/zapr.go:147 +0xd33
github.com/go-logr/zapr.(*zapLogger).Error(0xc00029d080, {0x204a980, 0xc0002be090}, {0x1d90265?, 0xc0003c0948?}, {0xc0002be0b0, 0x1, 0x1})
github.com/go-logr/zapr@v1.3.0/zapr.go:207 +0x18d
sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).Error(0xc0001b9b00, {0x204a980, 0xc0002be090}, {0x1d90265, 0x5}, {0xc0002be0b0, 0x1, 0x1})
sigs.k8s.io/controller-runtime@v0.17.3/pkg/log/deleg.go:142 +0xed
github.com/go-logr/logr.Logger.Error({{0x2070300?, 0xc0001b9b00?}, 0x5?}, {0x204a980, 0xc0002be090}, {0x1d90265, 0x5}, {0xc0002be0b0, 0x1, 0x1})
github.com/go-logr/logr@v1.4.1/logr.go:301 +0xec
main.runProxyServer({0x206aa70, 0xc000282000}, {{0x2070300?, 0xc0001b9b00?}, 0x0?}, {0x206f7c8, 0xc0000104e0}, 0xc00051a6c0, {0x206aeb0, 0xc0001ec9a0}, ...)
github.com/kedacore/http-add-on/interceptor/main.go:258 +0x445
main.main.func5()
github.com/kedacore/http-add-on/interceptor/main.go:176 +0x2f5
golang.org/x/sync/errgroup.(*Group).Go.func1()
golang.org/x/sync@v0.7.0/errgroup/errgroup.go:78 +0x56
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
golang.org/x/sync@v0.7.0/errgroup/errgroup.go:75 +0x96
HTTP Add-on Version
0.8.0
Kubernetes Version
1.28
Platform
Microsoft Azure
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Report
When declaring only the environment variable KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS
keda-add-ons-http-interceptor
fails to launch because it looks first in the folder KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS for a tls.crt file and fails when loggingExpected Behavior
Log without failure
Actual Behavior
Fails when logging the ignore key
Steps to Reproduce the Problem
keda-add-ons-http-interceptor
starts looking into the folder specified by KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS and if it finds no tls.crt here, it fails instead of recursively searching (there are certificates at $KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS/app1 and KEDA_HTTP_PROXY_TLS_CERT_STORE_PATHS/app2 though)Logs from KEDA HTTP operator
HTTP Add-on Version
0.8.0
Kubernetes Version
1.28
Platform
Microsoft Azure
Anything else?
No response
The text was updated successfully, but these errors were encountered: