<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by William Guilherme on Medium]]></title>
        <description><![CDATA[Stories by William Guilherme on Medium]]></description>
        <link>https://medium.com/@willguibr?source=rss-d5ab87369987------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WJ8NRkL5XOFxVi4-726GMg.jpeg</url>
            <title>Stories by William Guilherme on Medium</title>
            <link>https://medium.com/@willguibr?source=rss-d5ab87369987------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:48:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@willguibr/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What the MCP 2026–07–28 Spec Means for Zero Trust Security]]></title>
            <link>https://systemweakness.com/when-the-protocol-matures-93c005e8e33e?source=rss-d5ab87369987------2</link>
            <guid isPermaLink="false">https://medium.com/p/93c005e8e33e</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[mcp-protocol]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[William Guilherme]]></dc:creator>
            <pubDate>Tue, 02 Jun 2026 04:35:07 GMT</pubDate>
            <atom:updated>2026-06-03T05:54:20.507Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lm-vW3md_-8tKkRn55ZZ-w.png" /><figcaption><em>Where the control lives — Zero Trust governance, the MCP protocol, and the server layer, with controls descending from bolt-on to built-in.</em></figcaption></figure><p>For the last year, most of the conversation around MCP security has been about servers. How do you authenticate them? How do you authorize them? How do you audit what they did? How do you make sure an agent stays within its intended boundaries once it has access? Good questions, all of them — and all squarely the implementer’s problem to solve.</p><p>Then two developments arrived within months of each other. Anthropic published <a href="https://cdn.prod.website-files.com/6889473510b50328dbb70ae6/6a1611a04085d7cd3dadc924_Claude-eBook-Zero-Trust-for-AI-Agents-05182026.pdf"><em>Zero Trust for AI Agents</em></a>, a practical framework for securing agentic systems. Around the same time, the MCP working group shipped the largest protocol revision since MCP launched. At first glance, they look like unrelated events. They’re not.</p><p>Several of the controls Anthropic describes as implementation responsibilities aren’t purely implementation responsibilities anymore. The protocol now provides standard mechanisms for them. That’s the interesting part — not that MCP got new features, but that the line between what the protocol owns and what the implementer owns just moved.</p><p>This is a look at where that line sits today, and what remains firmly on the implementer’s side of it.</p><h4><strong>What the protocol just absorbed</strong></h4><p>Map the MCP 2026–07–28 change list against the Anthropic pillars and five of the framework’s recommendations change character: they stop being controls you design from scratch and become controls the protocol now hands you a standard mechanism for. You still have to adopt them — but you’re implementing a spec, not inventing one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*VKC9KPVHL_GtMNntcgj4lA.png" /><figcaption><em>Five Anthropic recommendations and the MCP 2026–07–28 mechanism that now gives each one a standard shape.</em></figcaption></figure><p><strong>Traceability got a standard mechanism instead of a per-vendor one: </strong>Anthropic’s traceability ladder runs request-IDs → distributed tracing (OpenTelemetry) → full provenance, and explicitly names OTEL as the Enterprise-tier mechanism. The new spec documents W3C Trace Context propagation in <em>_meta</em> (SEP-414), pinning the <em>traceparent</em>, <em>tracestate</em>, and <em>baggage</em> key names so a trace <em>can </em>follow a call from the host app through the client SDK, the server, and whatever it calls downstream — as one span tree. In the same release, the old MCP <em>logging</em> capability is <em>deprecated in favor of OpenTelemetry</em>. The protocol is no longer neutral about observability; it points at the exact tool the framework recommends. The work isn’t free — a server still has to actually propagate the context and export the spans — but it no longer has to invent the scheme first.</p><p><strong>Step-up authorization got real plumbing: </strong>Anthropic’s access-control tier wants context-aware, step-up authentication for sensitive records. The authorization hardening in this release — scope accumulation during step-up (SEP-2350), plus RFC 9207 <em>iss</em> validation to defang the mix-up attacks that thrive in MCP’s “one client, many servers” topology — gives that pattern a standardized shape instead of a per-vendor improvisation.</p><p><strong>Parameter validation got a real schema. </strong>The framework asks for schema-and-length validation at Foundation and pattern matching at Enterprise. Tool <em>inputSchema</em> is now full JSON Schema 2020–12 (SEP-2106): <em>oneOf</em>, <em>anyOf</em>, conditionals, <em>$ref/$defs</em>. More of your validation can live declaratively at the boundary — with the spec’s own caveats (don’t auto-dereference external <em>$ref</em>, bound schema depth and validation time) that are themselves Zero Trust thinking about denial-of-service.</p><p><strong>Out-of-band prompting got closed off at the transport. </strong>Anthropic treats escalation triggers and human-in-the-loop approval as design choices. The new spec <em>requires </em>that a server may only issue a request to the client while it is actively processing a client request (SEP-2260). A user can no longer be prompted out of nowhere <em>through the MCP transport</em>; every elicitation traces back to something they started. It’s a clean example of the design test running through Anthropic’s whole framework — <em>does a control make the attack impossible, or just tedious? </em>— landing on the impossible side at the protocol layer: a whole class of unsolicited-prompt social engineering loses its ride on the wire. (It doesn’t address prompts a compromised application injects by other means; the transport is just no longer one of those means.)</p><p><strong>Cross-tenant cache bleed got a declaration. </strong>The paper warns about shared-context poisoning in multi-tenant environments. List and read results now carry <em>ttlMs</em> and a <em>cacheScope</em> (SEP-2549) that states whether a response is safe to share across users. Multi-tenancy hygiene that used to be an implementation worry is now something the protocol lets a server <em>declare</em>.</p><p>None of this makes the framework redundant. The protocol gives you the mechanism; the framework still decides the policy — which scopes count as sensitive, what your retention window is, when a human must sign off. But the cost of reaching those pillars dropped, and the floor rose for everyone who simply adopts the spec correctly.</p><h4><strong>The stateless core changes your threat model, not just your load balancer</strong></h4><p>The headline of the release is that MCP is now stateless at the protocol layer. The <em>initialize</em> handshake is gone (SEP-2575); the <em>Mcp-Session-Id</em> header and the protocol-level session it carried are gone (SEP-2567). Any request can land on any instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*hb8Pr653O_lTmn_BYnA6Lg.png" /><figcaption><em>Before and after the stateless core: sticky sessions and a shared store give way to round-robin routing with no store.</em></figcaption></figure><p>The operational read is obvious — round-robin load balancing, no shared session store, <em>tools/list</em> responses that cache for as long as <em>ttlMs</em> allows. The security read is the one worth dwelling on.</p><p>Anthropic devotes real space to <strong>memory-based privilege retention</strong> and <strong>shared context poisoning</strong> — attacks that work precisely <em>because</em> state persists across calls and sessions. A protocol-managed session store is one instance of exactly that kind of shared, long-lived state. Removing it from the protocol layer takes the transport off the board as a place where poisoned context can quietly accumulate.</p><p>What it doesn’t do is solve poisoning. An application that keeps its own conversation memory, a vector store that feeds RAG, an agent that persists context between runs — all of those still carry the same risk they did before, and the framework’s controls around them still apply in full. The stateless core narrows the attack surface to the layers you actually own; it doesn’t shrink the problem to zero.</p><p>The spec also doesn’t abolish state; it makes it <em>explicit</em>. When a server needs continuity, it mints a handle — a <em>basket_id</em>, a <em>browser_id</em> — and the model passes it back as an ordinary argument. State stops hiding in transport metadata and becomes visible to the model, auditable, and bounded to the call chain that created it. That’s the framework’s “design for breach” instinct expressed in protocol shape: there’s less hidden shared state to poison, and what state remains is passed in the open where you can audit it. Servers already built this way mostly get to recognize their design in the spec; servers leaning on protocol sessions to carry state now have a cleaner pattern to migrate toward.</p><h4>Where MCP Apps cut the other way</h4><p>It would be too tidy to claim the spec only tightens things. It also opens a door.</p><p><strong>MCP Apps</strong> (SEP-1865) let a server ship interactive HTML that the host renders in a sandboxed iframe. The design is careful — tools declare their UI templates ahead of time so hosts can prefetch, cache, and security-review them, and every UI-initiated action runs back through the same JSON-RPC audit and consent path as a direct tool call. Good plumbing.</p><p>But Anthropic is emphatic that any agent processing untrusted content — web pages, documents, <em>rendered markup</em> — belongs in a sandbox, and treats indirect prompt injection as “the more insidious threat.” Server-rendered UI is a new surface for exactly that. The spec hands you the sandbox (the iframe) and the audit path; the framework reminds you a sandbox is table stakes, not a finish line, and that the content inside it is untrusted until proven otherwise. Adopt MCP Apps for the capability, and keep the framework’s input-isolation discipline pointed straight at the iframe.</p><h4>A reference point: the maturity models are tracking the same target</h4><p>Anthropic’s paper isn’t the only framework circling this space. The Cloud Security Alliance’s <a href="https://cloudsecurityalliance.org/artifacts/ai-security-maturity-model">AI Security Maturity Model (AISMM)</a>, is a useful contrast because it sits one layer up — a <em>security-program</em> maturity model, not a protocol guide. Yet several of its control objectives name MCP directly: OAuth-scoped authorization at Level 3, fine-grained per-operation scopes with deny-by-default policy-as-code at Level 4, agent-and-delegation-chain tracing that cites OpenTelemetry by name. The mechanisms it puts at its upper tiers are, increasingly, the ones the spec now standardizes.</p><p>One detail makes the point: the AISMM pins its MCP authorization references to the <em>2026–03–15 spec </em>— the version this release candidate supersedes. Not a flaw; the model calls itself a living document. But it’s a dated illustration of the thread running through all of this. The protocol moves; the frameworks built on top of it run a step behind. Read the maturity models for where the bar should sit; read the spec for where the floor just moved.</p><h4>What stays the implementer’s job</h4><p>It’s tempting to read all this as the protocol quietly closing the gaps, but it’s worth being precise about which gaps. The spec standardizes <em>mechanisms</em>. It says nothing about policy, and policy is most of the work.</p><p>The clearest line is the one Anthropic itself draws in Part V: securing the agents you deploy is only half the job, and the other half is security operations. A whole set of the framework’s pillars — SIEM streaming, anomaly detection, SOAR playbooks, a governance committee — live in that second half. No protocol revision touches them, the same way a database doesn’t ship its own SIEM. They belong to the program around the server, not the server, and certainly not the wire.</p><p>Even the mechanisms the spec <em>does</em> hand you only become controls once someone decides how to use them. Trace context is propagation, not a retention policy or an alerting rule. A cacheScope of user is a declaration, not a decision about which data is sensitive enough to warrant it. Scope accumulation on step-up is a flow, not a judgment about which operations deserve a second factor. The protocol moved the mechanism into reach; the framework still decides when it fires, who approves the exception, and what happens when it trips. That division — protocol owns the mechanism, implementer owns the policy — is the thing to hold onto.</p><h4>The takeaway</h4><p>The thesis is simple: <strong>Anthropic’s paper defines the security bar; MCP 2026–07–28 moves part of that bar into the protocol — but the protocol only standardizes mechanisms, while policy, enforcement, governance, and operational response still belong to implementers.</strong></p><p>The line that made this concrete was the logging deprecation — easy to skim past in a changelog, but it’s the protocol telling an entire category of servers that their home-grown observability is now a migration target, and naming the replacement in the same breath. That’s the whole pattern in miniature: the spec doesn’t add a security feature so much as relieve every server of inventing the same one independently.</p><h4>What this changes in practice</h4><p>For anyone maintaining a server, the practical implications are concrete. The home-grown request-ID logging becomes a migration toward W3C Trace Context in <em>_meta</em> and OTEL export — the same observability the framework wanted, now with a wire format you don’t define. Any code leaning on <em>Mcp-Session-Id</em> or the <em>initialize</em> handshake to carry state becomes a candidate for explicit handles passed as arguments, which removes a shared-state surface rather than securing it. Bespoke parameter checks can move toward declarative JSON Schema at the boundary; ad-hoc authorization can adopt the standardized step-up scope flow instead of a per-vendor one; multi-tenant cache behavior becomes a <em>cacheScope</em> you declare rather than a property you hope holds. And if MCP Apps are on the roadmap, the iframe is new untrusted-input surface that belongs in your threat model from the start, not after.</p><p>None of those are switches you flip. They’re places where the spec now gives you a standard to implement instead of a problem to solve from scratch — which is exactly the point. The mechanism arrives standardized; the decision to adopt it, and the policy wrapped around it, is still the work.</p><h4><strong>Final thought</strong></h4><p>A protocol matures not when it adds features, but when it starts absorbing the responsibilities that everyone building on it was solving separately. That is what this MCP revision quietly does. The controls that used to live in scattered implementations — trace propagation, scoped step-up, schema validation, cache boundaries — now have one agreed shape, which means they can be reasoned about, audited, and trusted in a way that a thousand bespoke versions never could.</p><p>That narrows what each implementer has to build. It does not narrow what each implementer is accountable for. The spec can hand you a standard mechanism; it cannot decide when that mechanism should fire, what counts as sensitive, or who answers for it when something goes wrong. Those decisions don’t move. They were the hard part before this release, and they remain the hard part after it.</p><p>So the practical reading is straightforward: treat Anthropic’s framework as the statement of where the bar sits, and the protocol as a growing set of mechanisms for reaching it at lower cost. The work that remains is the work that was always yours: deciding policy, drawing boundaries, and owning the response. The protocol just stopped making everyone build the same plumbing first.</p><p><strong>References:</strong></p><ul><li><a href="https://cdn.prod.website-files.com/6889473510b50328dbb70ae6/6a1611a04085d7cd3dadc924_Claude-eBook-Zero-Trust-for-AI-Agents-05182026.pdf">Anthropic — <em>Zero Trust for AI Agents</em></a></li><li><a href="https://blog.modelcontextprotocol.io/posts/2026-07-28-release-candidate/">Model Context Protocol — <em>2026–07–28 Specification Release Candidate</em></a></li><li><a href="https://cloudsecurityalliance.org/artifacts/ai-security-maturity-model">Cloud Security Alliance — <em>AI Security Maturity Model</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93c005e8e33e" width="1" height="1" alt=""><hr><p><a href="https://systemweakness.com/when-the-protocol-matures-93c005e8e33e">What the MCP 2026–07–28 Spec Means for Zero Trust Security</a> was originally published in <a href="https://systemweakness.com/">System Weakness</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Terraform 1.5 — Import and Automatic Code Generation]]></title>
            <link>https://medium.com/@willguibr/terraform-1-5-import-and-automatic-code-generation-caa4debfef28?source=rss-d5ab87369987------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa4debfef28</guid>
            <category><![CDATA[hashicorp]]></category>
            <category><![CDATA[terraform-import]]></category>
            <category><![CDATA[hashicorp-terraform]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[William Guilherme]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 22:45:13 GMT</pubDate>
            <atom:updated>2023-06-15T02:49:54.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Terraform 1.5 — Import and Automatic Code Generation" src="https://cdn-images-1.medium.com/max/1024/1*y_JsdXS7hOKUt6GUq29mCg.png" /><figcaption>Terraform 1.5 — Import and Automatic Code Generation</figcaption></figure><h3>Terraform 1.5 — Import and Automatic Code Generation</h3><p>HashiCorp Terraform has become the defacto standard in the industry, when it comes to infrastructure as code tools. Its adoption has increased exponentially in the past few years specially among multi-cloud organizations. It uses a declarative language and stores the current state of all deployed and managed infrastructure into a file, which can be stored locally or remotely. This file, also called the <a href="https://developer.hashicorp.com/terraform/tutorials/state/state-cli">state file</a>, describes the current infrastructure configurations and is used to plan and deploy changes via files and modules that define the new infrastructure state.</p><p>Occasionally, there is a need to manage resources via Terraform that were created externally. That leads to one of the common questions asked by teams when they are considering to standardize their environment using Infrastructure as code with Terraform. How can they migrate their pre-existing infrastructure into Terraform compliant HCL code without spending too much time writing thousands of lines of code or going through the sometimes steep learning curve that may be required in some cases.</p><p>In this article, I’ll talk about how HashiCorp addressed this challenge in previous Terraform versions, and the improvements they have recently announced with the launch of <a href="https://www.hashicorp.com/blog/terraform-1-5-brings-config-driven-import-and-checks">Terraform v1.5.0 </a>to facilitate the migration and adoption of Terraform to manage organization’s cloud resources, by saving teams valuable time during the process.</p><p><strong>The Good Old Days</strong></p><p>To help teams move their infrastructure to Terraform, HashiCorp, introduced the <a href="https://developer.hashicorp.com/terraform/cli/import">terraform import</a> command. The import Terraform CLI command is used to read real-world infrastructure and update the state, so that future updates to the same set of infrastructure are applied via IaC.</p><p>The previous import functionality was very helpful; however, there were some challenges which were not addressed. For example, it did not create the corresponding HCL configuration automatically, which required the resource code to be manually written or the output of command `terraform show` copied and pasted into the configuration file.</p><p>It also involved a multi-step process of running plans to identify the required attribute values until you could achieve a clean run of Terraform. The import command also could only import one resource at a time. If the organization had only a few resources they wanted to import, that was not much of a problem, but when the migration involved hundreds or even thousands of resources, that task was absolutely daunting and could lead to a lot of mistakes.</p><p><strong>Terraform v1.5.x — Config-Driven Import and Improvements</strong></p><p>HashiCorp recently launched <a href="https://www.hashicorp.com/blog/terraform-1-5-brings-config-driven-import-and-checks">Terraform v1.5.0</a>, which introduces a new config-driven import feature, that improves the import workflow with the use of a new import block that is declared inside your configuration containing the resources to import.</p><h3><strong>Improvements</strong></h3><h4><strong>Bulk Import</strong></h4><p>The new import block allows you to perform bulk import <br>Each block will take the ID of the resource of the provider as well as the Terraform resource address, which will be imported. As you can see in the example below, you can do this for multiple resources at once</p><p><strong>-</strong> <strong>Step 1:</strong> Define your provider configuration block as usual:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*LobsZIfhlkhgzKzsOzyMfw.png" /></figure><p><strong>- Step 2:</strong> Define your import configuration block with each resource you would like to import. As previously mentioned, notice that the import block takes to arguments: `id` and `to`. In this example, I am importing 4 AWS resources</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*bbVEbuvRQi1xO0nxHEq64Q.png" /></figure><p><strong>- Step 3: </strong>Once you define your provider configuration and import block(s), you can then initialize Terraform as usual via the command `terraform init`</p><p><strong>- Step 4:</strong> Finally, you can then generate your configuration, by using the newly introduced command `terraform plan -generate-config-out=generated.tf`, where `generated.tf` is the name of the output file which will contain the generated HCL configuration.</p><p>The end result, is that Terraform will import, and generate both the state file (Similar to previous versions), but most important, it will generate the HCL code, as per the following output example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*DpxfEc3o0nCQIBjwJRNhwQ.png" /></figure><p>Notice that for each configuration block, the following comment is automatically added “__generated__ by Terraform”</p><h3>Terraform Cloud Support</h3><p>The new Config-Driven Import is also available in Terraform Cloud, with the objective of providing a more secure workflow when working in import operations. The advantage of this integration, is that developers no longer need direct access to the state file, or cloud credentials stored locally.</p><p>Below is a comparison table between the import capabilities available before v1.5.x and the new ones recently introduced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*AFLAG_UNsiVcHUP35KjDig.png" /></figure><h3>Limitations</h3><p>Although the Config-Driven Import functionality is a big step from where it all began, there are some obvious and other not so obvious limitations:</p><p>- Terraform import does not detect or generate relationships between infrastructure. In other words, it won’t make references to other ID or name attributes, using data sources or other resources itself.</p><p>- The current import method, imports every single attribute, including unused, empty ones. Meaning, that it does not detect which default attributes you can skip setting.</p><p>- Not all providers and resources support Terraform import.</p><p>This is not an exhaustive list of the limitations but only the ones which I personally consider important to mention before you get started.</p><p>Despite the limitations, if you are looking for more practical ways to migrate your cloud configuration to infrastructure as code using Terraform, I strongly recommend taking a look at this new capabilities in Terraform v1.5.x.</p><h3>Alternative Options to Config-Driven Import</h3><p>I would be remiss, if I didn’t mention in this article, that over the years, other open source projects and vendors have created dedicated tools to assist with the migration process either for multiple cloud providers, or vendor specific provider migration tools.</p><p>I won’t be going in details about each one of the available tools out there, but here is a small list of the ones I could find. Each one of its own advantages and disadvantages as well as limitations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Mz1xsLsxLsGmgWgXE5X1wQ.png" /></figure><p><strong>References:</strong></p><ul><li><a href="https://developer.hashicorp.com/terraform/tutorials/state/state-import">Import Terraform Configuration</a></li><li><a href="https://www.hashicorp.com/blog/terraform-1-5-brings-config-driven-import-and-checks">Terraform 1.5 brings config-driven import and checks</a></li><li><a href="https://www.hashicorp.com/blog/new-terraform-cloud-capabilities-to-import-view-and-manage-infrastructure">Config-driven import simplifies migration to Terraform</a></li><li><a href="https://github.com/zscaler/zscaler-terraformer">Zscaler Terraformer Migration Tool</a></li><li><a href="https://github.com/GoogleCloudPlatform/terraformer">Terraformer — Google Cloud Platform</a></li><li><a href="https://github.com/cycloidio/terracognita">TerraCognita — Cycloidio</a> (Open Source)</li><li><a href="https://github.com/dtan4/terraforming">Terraforming — dtan4(Inactive) — Deprecated</a></li><li><a href="https://github.com/cloudflare/cf-terraforming">Cf-Terraforming — Cloudflare</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa4debfef28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>