Menu

1 / 3

I planted 7 bugs in my Terraform for local LLMs to find. The best find was one I didn't plant.

DEV Community: terraform·Claudio Taverna·7 days ago
#uDDho9A4
#devtoterraform#devto#dev#model#qwen
Long article (3937 words) — no AI summary yet.
Reading 0:00
15s threshold

The most useful thing a model found in my Terraform was a bug I had not planted. The host role of my own server attaches an AWS managed policy that lets it read any SSM parameter in the account, which quietly defeats the careful restriction I had written a few lines below. I checked: it is true, and it is in my real code, not just in the copy.

The irony is that it was found by the one model in this experiment that did not run on my laptop. And this is an article about code that should not leave it.

Why local, and what I tested

Infrastructure code is the map of a system: which ports are open, which roles trust whom, where the data lives and, more often than anyone likes to admit, a secret that should not be there. It is exactly the code you want a second pair of eyes on, and exactly the code you may not be allowed, or may not want, to paste into a cloud service. Sometimes a policy says no.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.