---
title: "Discussion on \"My Policy-as-Code Check Passed. It Never Read the Policy.\" | Hashnode"
description: "Discussion on \"My Policy-as-Code Check Passed. It Never Read the Policy.\". In my last post, I showed how OPA and Conftest block over-privileged IAM roles before anything gets deployed. I ended with a warning: there's a case where the check passes when it shouldn't.\nThis is t"
url: "https://hashnode.com/posts/my-policy-as-code-check-passed-it-never-read-the-policy/6ad6331c05021c07d6ffdb4e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [My Policy-as-Code Check Passed. It Never Read the Policy.](https://victorokoroafor.hashnode.dev/my-policy-as-code-check-passed-it-never-read-the-policy?utm_source=hashnode&utm_medium=feed)

In my last post, I showed how OPA and Conftest block over-privileged IAM roles before anything gets deployed. I ended with a warning: there's a case where the check passes when it shouldn't. This is t

Oct 19 · 6 min read · victorokoroafor.hashnode.dev  
Read the article

-   [#terraform](https://hashnode.com/tag/terraform)
-   [#aws](https://hashnode.com/tag/aws)
-   [#devsecops](https://hashnode.com/tag/devsecops)
-   [#security](https://hashnode.com/tag/security)
-   [#opa](https://hashnode.com/tag/opa)

## Written by

[Victor Okoroafor](https://hashnode.com/@okoroaforvic)

@okoroaforvic · Remote

  
[View profile](https://hashnode.com/@okoroaforvic)

Code that works isn't the same as code that's safe. I build the difference into the pipeline.

I build tools that catch AWS misconfigurations before they reach production: policy-as-code checks with Terraform, Open Policy Agent, and GitHub Actions, and ZeroLeak, an offline AWS auditor. I'm AWS Certified Solutions Architect – Associate and Cloud Practitioner, with a degree in cybersecurity. I write about the gap between code that works and code that's safe, including where my own tools fall short. Right now I'm building a series on Zero Trust governance for AWS serverless apps. The code is on GitHub. Based in Nigeria and open to Cloud Security and DevSecOps roles. Say hi on LinkedIn.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
