We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb9ffa8 commit 9dbad1dCopy full SHA for 9dbad1d
1 file changed
src/semantic-router/pkg/extproc/processor_req_header.go
@@ -88,7 +88,7 @@ func captureRequestHeaders(
88
// is false, preventing clients from spoofing user identity for role-based routing,
89
// per-user rate limits, and memory isolation.
90
func (r *OpenAIRouter) stripUntrustedIdentityHeaders(ctx *RequestContext) {
91
- if r.Config.Authz.ShouldTrustIdentityHeaders() {
+ if r.Config == nil || r.Config.Authz.ShouldTrustIdentityHeaders() {
92
return
93
}
94
userIDHeader := r.Config.Authz.Identity.GetUserIDHeader()
0 commit comments