---
title: "#policy-as-code articles | Hashnode"
description: "Explore 48 articles tagged #policy-as-code on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/policy-as-code"
---

Tag

# #policy-as-code

48 posts · 3 followers

[Xccelera AI](https://hashnode.com/@xccelera) · [3d ago](https://hashnode.com/posts/detect-risky-ai-agent-actions-policies-kill-switches/6afac3a8076f7836547f8d74)

### [Detecting Risky AI Agent Actions With Policies and Kill Switches](https://xccelera.hashnode.dev/detect-risky-ai-agent-actions-policies-kill-switches?utm_source=hashnode&utm_medium=feed)

Learn how to detect risky AI agent actions with policy as code, graded kill switches, and human approval backed by tamper-evident audit evidence.

6 min read · [xccelera.hashnode.dev](https://xccelera.hashnode.dev/detect-risky-ai-agent-actions-policies-kill-switches?utm_source=hashnode&utm_medium=feed)

[a21ai](https://hashnode.com/@a21ai) · [Nov 3](https://hashnode.com/posts/securing-model-context-protocol-mcp-in-production-building-a-sub-millisecond-policy-as-code-proxy-in-rust/6afb29e2cbddd73812c20595)

### [Securing Model Context Protocol (MCP) in Production: Building a Sub-Millisecond Policy-as-Code Proxy in Rust](https://a21ai.hashnode.dev/securing-model-context-protocol-mcp-in-production-building-a-sub-millisecond-policy-as-code-proxy-in-rust?utm_source=hashnode&utm_medium=feed)

In 2026, the Model Context Protocol (MCP) has become the standard nervous system connecting enterprise foundation models to live databases, internal microservices

10 min read · [a21ai.hashnode.dev](https://a21ai.hashnode.dev/securing-model-context-protocol-mcp-in-production-building-a-sub-millisecond-policy-as-code-proxy-in-rust?utm_source=hashnode&utm_medium=feed)

[Sulakshana Karunarathne](https://hashnode.com/@sulaa29) · [Oct 15](https://hashnode.com/posts/catching-over-permissive-iam-in-the-pull-request/6ad0d4e2bd52b4e4b431f0bd)

### [Catching over-permissive IAM in the pull request, not in production](https://devseccloud.hashnode.dev/catching-over-permissive-iam-in-the-pull-request?utm_source=hashnode&utm_medium=feed)

Why I built Cloud Policy Guard: a small Python CLI that reads a Terraform plan, scores IAM risk, and fails the pipeline before a wildcard policy ever reaches AWS.

3 min read · [devseccloud.hashnode.dev](https://devseccloud.hashnode.dev/catching-over-permissive-iam-in-the-pull-request?utm_source=hashnode&utm_medium=feed)

[Xccelera AI](https://hashnode.com/@xccelera) · [Oct 13](https://hashnode.com/posts/designing-guardrails-for-ai-agent-driven-deployments/6ace2691bea866af0cd2f432)

### [Designing Guardrails for AI Agent-Driven Deployments](https://xccelera.hashnode.dev/designing-guardrails-for-ai-agent-driven-deployments?utm_source=hashnode&utm_medium=feed)

Set guardrails for AI agent-driven deployments with scoped access, policy checks as code, human approvals, automated rollback, and audit trails.

6 min read · [xccelera.hashnode.dev](https://xccelera.hashnode.dev/designing-guardrails-for-ai-agent-driven-deployments?utm_source=hashnode&utm_medium=feed)

[Victor Okoroafor](https://hashnode.com/@okoroaforvic) · [Oct 9](https://hashnode.com/posts/how-to-block-over-privileged-iam-roles-in-aws-using-policy-as-code/6ac8cb601aa52d06d71bb168)

### [How to Block Over-Privileged IAM Roles in AWS Using Policy-as-Code](https://victorokoroafor.hashnode.dev/how-to-block-over-privileged-iam-roles-in-aws-using-policy-as-code?utm_source=hashnode&utm_medium=feed)

Chances are, your AWS account has an over-privileged IAM role right now, and you may not know which one. When you build infrastructure, you write Terraform that declares your resources and assigns IAM

5 min read · [victorokoroafor.hashnode.dev](https://victorokoroafor.hashnode.dev/how-to-block-over-privileged-iam-roles-in-aws-using-policy-as-code?utm_source=hashnode&utm_medium=feed)

[Christian Johannsen](https://hashnode.com/@cjohannsen) · [Sep 10](https://hashnode.com/posts/permissions-vs-policies-in-llm-systems-what-matters-where/6aa2d6ca02629ff0ef91bd19)

### [Permissions vs. Policies in LLM Systems: What Matters Where](https://breakglass.hashnode.dev/permissions-vs-policies-in-llm-systems-what-matters-where?utm_source=hashnode&utm_medium=feed)

Permissions set what an LLM agent can do. Policies decide what it should do. Why system prompts aren't security controls, and where each belongs.

7 min read · [breakglass.hashnode.dev](https://breakglass.hashnode.dev/permissions-vs-policies-in-llm-systems-what-matters-where?utm_source=hashnode&utm_medium=feed)

[Gustavo Martin Ortega Marmenti](https://hashnode.com/@t-a-v-o) · [Aug 3](https://hashnode.com/posts/cloud-custodian-ships-an-engine-and-no-rules-here-are-325/6a70e9acae864254b51c00f4)

### [Cloud Custodian ships an engine and no rules. Here are 325.](https://gustavoortega.hashnode.dev/cloud-custodian-ships-an-engine-and-no-rules-here-are-325?utm_source=hashnode&utm_medium=feed)

No rulepack to download, no control IDs in the official examples. So I published mine.

6 min read · [gustavoortega.hashnode.dev](https://gustavoortega.hashnode.dev/cloud-custodian-ships-an-engine-and-no-rules-here-are-325?utm_source=hashnode&utm_medium=feed)

[Farid Nouri Neshat](https://hashnode.com/@faridnsh) · [Jun 16](https://hashnode.com/posts/fast-and-secure-cloud-delivery-in-regulated-industries/6a3167950e210f6e63573618)

### [Fast and Secure Cloud Delivery in Regulated Industries](https://blog.faridnsh.ninja/fast-and-secure-cloud-delivery-in-regulated-industries?utm_source=hashnode&utm_medium=feed)

Paved roads, policy as code, and proving you're secure without becoming the bottleneck in cloud infrastructure

15 min read · [blog.faridnsh.ninja](https://blog.faridnsh.ninja/fast-and-secure-cloud-delivery-in-regulated-industries?utm_source=hashnode&utm_medium=feed)

[a21ai](https://hashnode.com/@a21ai) · [May 8](https://hashnode.com/posts/policy-as-code-translating-pdf-rulebooks-into-executable-ai-logic/69fd6df6a3269edad89915d8)

### [Policy-as-Code: Translating PDF Rulebooks into Executable AI Logic](https://a21ai.hashnode.dev/policy-as-code-translating-pdf-rulebooks-into-executable-ai-logic?utm_source=hashnode&utm_medium=feed)

One of the biggest bottlenecks in enterprise AI engineering is the disconnect between the legal department and the development team.

2 min read · [a21ai.hashnode.dev](https://a21ai.hashnode.dev/policy-as-code-translating-pdf-rulebooks-into-executable-ai-logic?utm_source=hashnode&utm_medium=feed)

[Ivan Porta](https://hashnode.com/@gtrekter) · [May 6](https://hashnode.com/posts/kyverno-explained-why-modern-platforms-need-policy-as-code/69fb33c550ecad4533235434)

### [Kyverno Explained: Why Modern Platforms Need Policy-as-Code](https://todea.hashnode.dev/kyverno-explained-why-modern-platforms-need-policy-as-code?utm_source=hashnode&utm_medium=feed)

A practitioner's guide to what Kyverno actually does, what it takes off your platform team's plate, and how its CEL-native CRDs and admission architecture deliver it.

7 min read · [todea.hashnode.dev](https://todea.hashnode.dev/kyverno-explained-why-modern-platforms-need-policy-as-code?utm_source=hashnode&utm_medium=feed)
