Skip to content

docs(security): add Model Armor guide with Python LangChain#3542

Merged
twishabansal merged 18 commits into
docs-model-armorfrom
docs/model-armor-security
Jul 9, 2026
Merged

docs(security): add Model Armor guide with Python LangChain#3542
twishabansal merged 18 commits into
docs-model-armorfrom
docs/model-armor-security

Conversation

@twishabansal

@twishabansal twishabansal commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Description

This base PR covers the shared setup and the primary Python + LangChain path.
First in a series — ADK, Agent Gateway, Google Cloud MCP servers, and Go/Node.js/Java will be added in follow-up PRs. Step 2 is built as a tabpane so those land as additional tabs without rework.

Tested manually.

Docsy v0.11.0's scripts/mermaid.html uses Resource.Err, removed in Hugo
0.141.0 and replaced by the try keyword. The repo builds with Hugo
>= 0.146, so any page with a mermaid block fails the build. Docsy v0.12.0
switched the partial to try, so bump to it. Also pin the mermaid version.
@twishabansal
twishabansal requested a review from a team as a code owner June 29, 2026 08:21

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request adds a new security documentation section, featuring a comprehensive guide on integrating Google Cloud Model Armor with MCP Toolbox to protect against prompt injection and sensitive data leakage. The review feedback points out an invalid import and function call (create_agent from langchain.agents) in the Python LangChain example, which would cause an ImportError.

Comment thread docs/en/documentation/security/model-armor.md Outdated
@twishabansal twishabansal added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 29, 2026
@twishabansal
twishabansal marked this pull request as draft June 29, 2026 12:14
@twishabansal
twishabansal marked this pull request as ready for review June 30, 2026 06:19
@twishabansal twishabansal assigned averikitsch and unassigned Yuan325 Jun 30, 2026
@twishabansal twishabansal added the docs: deploy-preview Label to trigger Github Action docs preview. label Jun 30, 2026
@github-actions github-actions Bot removed the docs: deploy-preview Label to trigger Github Action docs preview. label Jun 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Cloudflare Preview Ready!

🔎 View Preview: https://pr-3542.toolbox-docs-6xc.pages.dev

(Note: Subsequent pushes to this PR will automatically update the preview at this same URL)

Comment thread docs/en/documentation/configuration/security/_index.md
Comment thread docs/en/documentation/security/model-armor.md Outdated
Comment thread docs/en/documentation/security/model-armor.md Outdated
Base automatically changed from fix/mermaid-hugo-compat to main July 9, 2026 09:20
@twishabansal
twishabansal changed the base branch from main to docs-model-armor July 9, 2026 09:25
@twishabansal twishabansal removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 9, 2026
@twishabansal
twishabansal merged commit c6a2e26 into docs-model-armor Jul 9, 2026
26 checks passed
@twishabansal
twishabansal deleted the docs/model-armor-security branch July 9, 2026 09:26
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

🧨 Preview deployments removed.

Cloudflare Pages environments for pr-3542 have been deleted.

twishabansal added a commit that referenced this pull request Jul 9, 2026
Adds a **Python (ADK)** tab to the Model Armor security guide, stacked
on top of #3542 (the LangChain sample).

Tested manually
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.

4 participants