Skip to content

Commit 9dbad1d

Browse files
committed
fix: nil-guard Config in stripUntrustedIdentityHeaders
Signed-off-by: Yossi Ovadia <yovadia@redhat.com>
1 parent bb9ffa8 commit 9dbad1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/semantic-router/pkg/extproc/processor_req_header.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func captureRequestHeaders(
8888
// is false, preventing clients from spoofing user identity for role-based routing,
8989
// per-user rate limits, and memory isolation.
9090
func (r *OpenAIRouter) stripUntrustedIdentityHeaders(ctx *RequestContext) {
91-
if r.Config.Authz.ShouldTrustIdentityHeaders() {
91+
if r.Config == nil || r.Config.Authz.ShouldTrustIdentityHeaders() {
9292
return
9393
}
9494
userIDHeader := r.Config.Authz.Identity.GetUserIDHeader()

0 commit comments

Comments
 (0)