You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "shreemaan-abhishek (via GitHub)" <gi...@apache.org> on 2026/04/08 07:28:45 UTC

[PR] fix(forward-auth): clear configured upstream headers not present in auth response [apisix]

shreemaan-abhishek opened a new pull request, #13183:
URL: https://github.com/apache/apisix/pull/13183

   ## Summary
   
   - When the auth service responds with HTTP 200 but does not include a configured `upstream_headers` header, the plugin now clears that header from the client request instead of letting the original client-supplied value pass through to upstream.
   - Adds test coverage in a new `forward-auth3.t` file to verify the fix.
   
   ## Test plan
   
   - [ ] `t/plugin/forward-auth3.t` TEST 2: verifies client-supplied `X-User-ID` is stripped when auth response omits it
   - [ ] Existing `t/plugin/forward-auth.t` tests continue to pass (no regressions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(forward-auth): clear configured upstream headers not present in auth response [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop merged PR #13183:
URL: https://github.com/apache/apisix/pull/13183


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org