Skip to content

fix(guardrails): correct forwardHeaders doc example to use external check - #1023

Open
mayankjain-panw wants to merge 2 commits into
Portkey-AI:mainfrom
mayankjain-panw:feat/forward-headers-to-guardrails
Open

fix(guardrails): correct forwardHeaders doc example to use external check#1023
mayankjain-panw wants to merge 2 commits into
Portkey-AI:mainfrom
mayankjain-panw:feat/forward-headers-to-guardrails

Conversation

@mayankjain-panw

@mayankjain-panw mayankjain-panw commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix the forwardHeaders config example: replace default.regexMatch with default.webhook
  • regexMatch is a local check — it never makes an HTTP call, so forwardHeaders has no effect on it
  • webhook actually calls an external URL and forwards the configured headers
  • Update description to say "any external check" instead of "any check"

New page: product/guardrails/forwarding-headers.mdx covering the
parameters.forwardHeaders check configuration, restricted headers,
and W3C traceparent synthesis.

Updated pages:
- creating-raw-guardrails-in-json.mdx: added forwardHeaders example
- bring-your-own-guardrails.mdx: added forwarded headers table row
  and new section linking to the dedicated page
- docs.json: added nav entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant