feat(aigw): AI Custom Guardrail Policy overview migrate - #5781
Merged
cloudjumpercat merged 4 commits intoJul 14, 2026
Merged
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cloudjumpercat
commented
Jul 2, 2026
Comment on lines
+31
to
+50
| sequenceDiagram | ||
| autonumber | ||
| participant client as Client | ||
| participant custguardrail as AI Custom Guardrail Policy | ||
| participant guardrail as Guardrail service | ||
| participant proxy as AI Proxy/Advanced plugin | ||
| participant llm as Upstream AI service | ||
|
|
||
| client->>custguardrail:Send request | ||
| custguardrail<<->>guardrail:Intercept & send request body | ||
| guardrail->>guardrail:Check against moderation <br>categories and blocklists | ||
| guardrail->>custguardrail: Allow or block request | ||
| custguardrail->>proxy: Forward allowed request | ||
| proxy->>llm: Process allowed request | ||
| llm->>proxy: Return AI response | ||
| proxy->>custguardrail: Forward response | ||
| custguardrail->>guardrail: Intercept & send response body | ||
| guardrail->>guardrail: Check against moderation <br>categories and blocklists | ||
| guardrail->>custguardrail: Allow or block response | ||
| custguardrail->>client: Forward allowed response |
Contributor
Author
There was a problem hiding this comment.
This is pending Greg's feedback!
Suggested change
| sequenceDiagram | |
| autonumber | |
| participant client as Client | |
| participant custguardrail as AI Custom Guardrail Policy | |
| participant guardrail as Guardrail service | |
| participant proxy as AI Proxy/Advanced plugin | |
| participant llm as Upstream AI service | |
| client->>custguardrail:Send request | |
| custguardrail<<->>guardrail:Intercept & send request body | |
| guardrail->>guardrail:Check against moderation <br>categories and blocklists | |
| guardrail->>custguardrail: Allow or block request | |
| custguardrail->>proxy: Forward allowed request | |
| proxy->>llm: Process allowed request | |
| llm->>proxy: Return AI response | |
| proxy->>custguardrail: Forward response | |
| custguardrail->>guardrail: Intercept & send response body | |
| guardrail->>guardrail: Check against moderation <br>categories and blocklists | |
| guardrail->>custguardrail: Allow or block response | |
| custguardrail->>client: Forward allowed response | |
| sequenceDiagram | |
| autonumber | |
| participant Client | |
| participant Gateway as {{site.ai_gateway}} | |
| participant Policy as AI Custom Guardrail Policy | |
| participant Guardrail as Guardrail service | |
| participant AI as Upstream AI Service | |
| Client->>Gateway: Send request | |
| Gateway->>Policy: Route request | |
| Policy->>Guardrail: Intercept & send request body | |
| Guardrail->>Guardrail: Check against moderation <br>categories and blocklists | |
| Guardrail->>Policy: Allow or block request | |
| Policy->>Gateway: Forward allowed request | |
| Gateway->>AI: Process allowed request | |
| AI->>Gateway: Return AI response | |
| Gateway->>Policy: Forward response | |
| Policy->>Guardrail: Intercept & send response body | |
| Guardrail->>Guardrail: Check against moderation <br>categories and blocklists | |
| Guardrail->>Policy: Allow or block response | |
| Policy->>Gateway: Forward allowed response | |
| Gateway->>Client: Forward allowed response to client |
fabianrbz
force-pushed
the
release/ai-gateway-2.0
branch
from
July 3, 2026 16:40
060a5e2 to
7d7d76c
Compare
cloudjumpercat
force-pushed
the
feat/ai-custom-guardrail-policy-overview
branch
from
July 9, 2026 20:34
1a20bc9 to
2851d21
Compare
fabianrbz
force-pushed
the
release/ai-gateway-2.0
branch
2 times, most recently
from
July 13, 2026 13:07
1d04e98 to
9b111c6
Compare
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
cloudjumpercat
force-pushed
the
feat/ai-custom-guardrail-policy-overview
branch
from
July 13, 2026 21:45
2851d21 to
8f79a95
Compare
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the AI Custom Guardrail Policy overview page as part of the AI Gateway policy documentation migration, switching the page to the policy content type and adding end-user conceptual/configuration guidance.
Changes:
- Change frontmatter
content_typefromplugintopolicy. - Add an overview explaining how the policy inspects requests/responses and integrates with HTTP guardrail services.
- Add configuration guidance for
config.params, request/response handling, and metrics.
Guaris
approved these changes
Jul 13, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Description
TODO: fix diagram with AI Gateway (waiting on Greg for where this will move)
Preview Links
https://deploy-preview-5781--kongdeveloper.netlify.app/ai-gateway/policies/ai-custom-guardrail/
Checklist
descriptionentry in frontmatter.