Repository navigation
Conversation
The shared ConfigMap uses ${...} env var placeholders for listener
addresses. In envoy-sidecar mode, proxy-sidecar env vars like
REVERSE_PROXY_ADDR are unset, so Load() preserves them as literal
"${REVERSE_PROXY_ADDR}" strings. The validator was rejecting these
non-empty values, breaking envoy-sidecar startup when the ConfigMap
contains proxy-sidecar placeholders.
Cross-mode listener fields are now logged as warnings instead of
errors, since they are unused at runtime and cause no harm. The
required-field check for proxy-sidecar (reverse_proxy_backend) is
kept as an error.
Signed-off-by: Hai Huang <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
Member
Author
|
Closing — shared ConfigMap approach doesn't work well since authbridge-runtime-config is only created by Helm for pre-declared namespaces, not at runtime by the backend. |
huang195
added a commit
to huang195/kagenti-extensions
that referenced
this pull request
Nov 6, 2026
Fixes review: CodeQL alert rossoctl#333 on the context-guru session id. The alert is dismissed as a false positive. The codeql comment from 716f27d did not suppress it, so this commit removes the comment. Fixes review: raw client host in cpex boundToDestination, token-broker server_url and forwardproxy WebSocket log lines. Fixes review: the same raw host and path values in core/auth HandleInbound and HandleOutbound, and the audience that per-host mode derives from the host. Fixes review: raw pctx.Host as "endpoint" in inference-parser and litellm-budget-track pricing warnings. Files: - core/auth/auth.go - core/auth/log_sanitize_test.go - core/listener/forwardproxy/server.go - core/listener/forwardproxy/websocket.go - core/plugins/contextguru/plugin.go - core/plugins/cpex/manager_cpex.go - core/plugins/inferenceparser/cacheblind.go - core/plugins/litellm_budgettrack/drift.go - core/plugins/tokenbroker/client/client.go - core/plugins/tokenbroker/plugin.go Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Hai Huang <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validateListeners()are now warnings instead of errors${...}placeholders for all modesreverse_proxy_backendfor proxy-sidecar) remains an errorContext
The shared
authbridge-runtime-configConfigMap uses${ENV_VAR}expansion forlistener addresses. In envoy-sidecar mode, proxy-sidecar env vars like
REVERSE_PROXY_ADDRare unset, so
Load()preserves them as literal"${REVERSE_PROXY_ADDR}"strings(by design — see
config.go:95-99). The validator was rejecting these non-empty values,breaking envoy-sidecar startup when the ConfigMap contains proxy-sidecar placeholders.
Since cross-mode fields are unused at runtime (envoy-sidecar only starts ext_proc,
proxy-sidecar only starts reverse/forward proxy), having them set to garbage strings
causes no harm. Logging a warning preserves observability without blocking startup.
Test plan
TestValidate_CrossModeFieldsAreWarningscovers all 5 cross-mode combinationsTestValidate_ProxySidecarRequiresBackendstill asserts the required-field errorgo test ./config/ -v)Assisted-By: Claude (Anthropic AI) [email protected]