Skip to content

feat(aigw): AI Custom Guardrail Policy overview migrate - #5781

Merged
cloudjumpercat merged 4 commits into
release/ai-gateway-2.0from
feat/ai-custom-guardrail-policy-overview
Jul 14, 2026
Merged

feat(aigw): AI Custom Guardrail Policy overview migrate#5781
cloudjumpercat merged 4 commits into
release/ai-gateway-2.0from
feat/ai-custom-guardrail-policy-overview

Conversation

@cloudjumpercat

@cloudjumpercat cloudjumpercat commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

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

  • Tested how-to docs. If not, note why here.
  • All pages contain metadata.
  • Any new docs link to existing docs.
  • All autogenerated instructions render correctly (API, decK, Konnect, Kong Manager).
  • Style guide (capitalized gateway entities, placeholder URLs) implemented correctly.
  • Every page has a description entry in frontmatter.
  • Add new pages to the product documentation index (if applicable).

@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for kongdeveloper ready!

Name Link
🔨 Latest commit 150075f
🔍 Latest deploy log https://app.netlify.com/projects/kongdeveloper/deploys/6a557484aa210c000893c62d
😎 Deploy Preview https://deploy-preview-5781--kongdeveloper.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
fabianrbz force-pushed the release/ai-gateway-2.0 branch from 060a5e2 to 7d7d76c Compare July 3, 2026 16:40
@cloudjumpercat
cloudjumpercat force-pushed the feat/ai-custom-guardrail-policy-overview branch from 1a20bc9 to 2851d21 Compare July 9, 2026 20:34
@fabianrbz
fabianrbz force-pushed the release/ai-gateway-2.0 branch 2 times, most recently from 1d04e98 to 9b111c6 Compare July 13, 2026 13:07
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
@cloudjumpercat
cloudjumpercat force-pushed the feat/ai-custom-guardrail-policy-overview branch from 2851d21 to 8f79a95 Compare July 13, 2026 21:45
Signed-off-by: Diana <75819066+cloudjumpercat@users.noreply.github.com>
@cloudjumpercat
cloudjumpercat marked this pull request as ready for review July 13, 2026 21:46
@cloudjumpercat
cloudjumpercat requested a review from a team as a code owner July 13, 2026 21:46
Copilot AI review requested due to automatic review settings July 13, 2026 21:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_type from plugin to policy.
  • 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.

Comment thread app/_ai_gateway_policies/ai-custom-guardrail/index.md Outdated
Comment thread app/_ai_gateway_policies/ai-custom-guardrail/index.md Outdated
Comment thread app/_ai_gateway_policies/ai-custom-guardrail/index.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@cloudjumpercat
cloudjumpercat merged commit 072c159 into release/ai-gateway-2.0 Jul 14, 2026
17 checks passed
@cloudjumpercat
cloudjumpercat deleted the feat/ai-custom-guardrail-policy-overview branch July 14, 2026 00:08
@Guaris Guaris added this to the AI-Gateway 2.0 GA milestone Aug 14, 2026
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.

3 participants