Repository navigation
fix(ai-mcp-sanitizer): Verify and update docs - #8355
tomek-labuk wants to merge 8 commits into
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
✅ KSAI Review: Finished Run report (federated) · 1 paid run · $0.5722 total
Reviewing cost $0.5722 |
10ef90b to
ea474f2
Compare
There was a problem hiding this comment.
| Check | Result |
|---|---|
| Scope | Complete frozen scope: the seven policy examples, the policy page, the AI Gateway scope data, the new how-to, the sanitizer log and PII service includes, and the audit log reference. |
| Mandate | Default adversarial code review, plus the AI Gateway, core, how-to, output block, prose, plugin reference, related resources, schema restate and UI inventory rules on the files each covers. |
| Findings | 2 Medium, 3 Low |
| Findings audit | Independent audit completed: 5 kept, 0 removed, 0 with insufficient evidence, 0 added. |
All five candidate findings survive the audit. The rewritten error-handling bullets contradict the schema that renders the reference the page links to, the how-to's first placeholder output is reversed against its own second check and the sibling pages, and the image bump leaves stale v0.3.1 copies in sibling files.
One disagreement is the only behavioral risk, at Medium; the reversed sample output is the other Medium. The remaining three are Low: two stale version copies, a missing output-block marker and a conditional opener. No additional defect met the evidence bar, so the added list is empty.
Coverage was complete over the frozen scope: the seven examples, the policy page, the scope data, the how-to, the log and service includes and the audit log reference were read against the pinned schema, sibling how-tos, the cookbook and the entity docs.
7249678 to
7ea9b78
Compare
| render_output: false | ||
| {% endvalidation %} | ||
| <!--vale on--> | ||
|
|
There was a problem hiding this comment.
should we mention something here about the email and phone being redacted too?
There was a problem hiding this comment.
Good call, added. The validation output now shows both email and phone as placeholders, and the text says so.
| sanitize_targets: | ||
| - tool_arguments | ||
| - tool_results | ||
| port: 8080 |
There was a problem hiding this comment.
can we use a variable for the host too?
There was a problem hiding this comment.
Switched to using ${host} in that example,
| paths: | ||
| - /petstore | ||
| tools: | ||
| - name: add-pet |
There was a problem hiding this comment.
can we use a different endpoint for the how-to? /user actually has email and phone number and makes more sense than setting a phone number and email to a pet's name
There was a problem hiding this comment.
Switched to /user (create-user and get-user-by-name), so the email and phone are real fields now. I ran it and the output in the doc matches.
Co-authored-by: kong-ksai[bot] <313415923+kong-ksai[bot]@users.noreply.github.com>
b98d209 to
9df244c
Compare
| docker run -d \ | ||
| --name ai-pii-service \ | ||
| --network kong-ai-quickstart-net \ | ||
| kong/ai-pii-service:v0.3.1-en |
There was a problem hiding this comment.
| kong/ai-pii-service:v0.3.1-en | |
| kong/ai-pii-service:latest-en |
Description
Fixes #8305
Open items
1004and its message, "never sanitizes authentication tools", and the hard-codedPLACEHOLDER1/PLACEHOLDER2numbering in the how-to.sanitizerlog object depends on a logging setting. Needs a live test.payloadswarning: reword once kong-ee PR 25720 merges.app/_data/policies/ai-gateway/scopes.jsonneeds theai-mcp-sanitizerentry (added here) so the examples render.redact-pii-in-mcp-tool-callsstill has to be tested.Testing
For testing, use Konnect API instead of kongctl (it isn't ready yet)
Step 1: Create an AI MCP Sanitizer Policy
Step 2: Crerate an AI MCP Server
Preview Links
Pages with changes:
Examples:
Checklist