608 words
3 minutes

11 from Terraform MCP server GA: the Apply Gate your auditor will ask about

The apply gate: an agent may plan, a named person applies

By Docker Captain · CNCF Ambassador · IBM Champion
Dark datacenter rack aisle with bone-white light and one red status LED Blueprint 11

The code an agent writes is rarely the problem. The record of who let it apply is.

Read-only is the right default for almost every team today. The steps below are what has to exist before the flag flips for any workspace, and the flag flips per deployment, never for the organization.

  1. 1

    Pin what the server can reach

    Name the toolsets explicitly (--toolsets=registry,registry-private, or --tools for single tools), leave ENABLE_TF_OPERATIONS unset, and scope TFE_TOKEN to the fewest workspaces that work. On an HTTP deployment set MCP_ORGANIZATION_ALLOWLIST to the smallest set of organizations. The deliverable is a written list of what the agent can see before it can change anything. Owner: platform engineer.

  2. 2

    Know what the flag unlocks

    It is not one capability: auto_approve and is_destroy runs, action_run, and the deletes (delete_workspace_safely, force_unlock_workspace, delete_project, delete_team). Read the list against the installed version before deciding, because it grows.

  3. 3

    Gate every workspace an agent may apply against

    Attach a Sentinel policy set to it (attach_policy_set_to_workspaces, checked with list_workspace_policy_sets). No policy set attached, no agent apply on that workspace. Owner: security or platform lead.

  4. 4

    Keep the approval with a person

    Auto-apply stays off on every workspace the agent reaches, so a run it queues waits for a named approver in HCP Terraform or Terraform Enterprise.

  5. 5

    Keep two records

    The platform's audit trail answers who triggered and who approved each run. The server's metrics, with OTEL_METRICS_ENABLED=true, answer how often the agent called a tool and how it failed: mcp_tool_calls_total, mcp_tool_errors_total, mcp_tool_duration_seconds.

  6. 6

    Flip the flag only where the first five exist

    One deployment, the workspaces it is scoped to, and a date to read both records back.

What the flag changes (server reference, read 14 November 2026, v1.4.1)

ToolFlag unset (the default)With the flag
create_runplan_and_apply with auto-apply off, refresh_state, plan_only, allow_empty_applyAdds auto_approve and is_destroy
action_runNot registeredApply, discard or cancel a run
delete_workspace_safely, delete_project, delete_teamNot registeredDelete
force_unlock_workspaceNot registeredForce-unlock a locked workspace

Where to check it

The vendor's own reference and code, read at the version named.

Read-only this week. The apply gate opens when the record can answer for it.

The long version is the post Terraform MCP server GA. HashiCorp, the GA announcement and the server reference; ISMS.online on SOC 2 CC8.1.


Vladimir Mikhalev

Docker CaptainCNCF AmbassadorIBM Champion

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Terraform MCP server GA: the Apply Gate your auditor will ask about
    DevOps & Cloud · HashiCorp's Terraform MCP server is GA and IBM Bob can write production IaC. ENABLE_TF_OPERATIONS separates a safe assistant from autonomous apply.
  2. 2
    DNS Exfiltration From an Air-Gapped VPC: No Route Out Is Not No Way Out
    DevOps & Cloud · DNS exfiltration needs no route. In a VPC with no internet gateway and no NAT, a pod and its node still resolved example.com, until a DNS Firewall refused it.
  3. 3
    Scheduled Workflows Fail Silently: A GitHub Actions Heartbeat for 122 Repositories
    DevOps & Cloud · GitHub Actions switches off a scheduled workflow after 60 quiet days, with no failed run and no red badge. What watches every schedule, and the watcher.
  4. 4
    Completed Is Not Restored: Kyverno Fail-Open, a Velero Restore and an HTTP 200 That Meant 500
    DevOps & Cloud · Scale Kyverno to zero and its webhooks vanish. A Velero restore said Completed over an empty disk. A 200 carried a 500. Three statuses that reported success.

More Blueprints

All 20
  1. 12
    The evidence join
    Signal, 11 August 2026 · Bind each agent to its governance use case, give every run a span with the same id, keep the spans for the longest obligation, and alert when a run has no evidence to match.
  2. 13
    The hardened image move
    Signal, 28 October 2026 · Write, recreate and read every stateful service on the new image, check users, tools and pull credentials, and decide which scanner the gate trusts before the first digest.
  3. 14
    The boundary gate
    Signal, 18 October 2026 · Put every tool behind a schema-checking server, score the release from the services with two zeros and a control, and set the usefulness floor from runs on each runner.
  4. 15
    The landing order
    Signal, 10 July 2025 · One worktree per agent and the shared index measured on your runners, a landing order with an owner, a cap on diff width, commits shaped before review, and two numbers that show the merge debt.
The apply gate: an agent may plan, a named person applies
https://heyvaldemar.com/blueprints/apply-gate/
Author
Vladimir Mikhalev
Published
2026-11-14
License
CC BY-NC-SA 4.0