<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: alejny</title>
    <description>The latest articles on DEV Community by alejny (@alejny).</description>
    <link>https://dev.to/alejny</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3986746%2F8e8a66c3-40e9-4db1-8e6c-e953c64c1ec6.jpg</url>
      <title>DEV Community: alejny</title>
      <link>https://dev.to/alejny</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alejny"/>
    <language>en</language>
    <item>
      <title>I built a Terraform security scanner that lives inside GitHub PRs</title>
      <dc:creator>alejny</dc:creator>
      <pubDate>Tue, 16 Jun 2026 06:30:15 +0000</pubDate>
      <link>https://dev.to/alejny/i-built-a-terraform-security-scanner-that-lives-inside-github-prs-2220</link>
      <guid>https://dev.to/alejny/i-built-a-terraform-security-scanner-that-lives-inside-github-prs-2220</guid>
      <description>&lt;p&gt;&lt;strong&gt;The problem&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;IAM wildcards and public S3 buckets keep slipping through &lt;br&gt;
Terraform code review. Tools like Checkov and tfsec exist &lt;br&gt;
but they live in CI, require config files, and developers &lt;br&gt;
ignore the output because it's not where they're working.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I built&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;TerraWatch is a GitHub App that scans every pull request &lt;br&gt;
that touches .tf files automatically. If it finds a security &lt;br&gt;
issue it blocks the merge and posts the exact code fix as a &lt;br&gt;
PR comment.&lt;/p&gt;

&lt;p&gt;The developer sees something like this in their PR:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⚠️ PUBLIC_S3_BUCKET - main.tf (Line 6)&lt;/strong&gt;&lt;br&gt;
Severity: HIGH&lt;br&gt;
Risk: S3 bucket allows public read access.&lt;br&gt;
Fix:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;acl = "public-read"&lt;/li&gt;
&lt;li&gt;acl = "private"&lt;/li&gt;
&lt;li&gt;block_public_acls = true&lt;/li&gt;
&lt;li&gt;restrict_public_buckets = true&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They copy the fix, push, and the merge unblocks automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it's different&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No YAML, no CI config - installs in 2 minutes via GitHub App&lt;/li&gt;
&lt;li&gt;Fixes are hardcoded diffs, not AI generated&lt;/li&gt;
&lt;li&gt;Nothing auto-applied - you review every fix&lt;/li&gt;
&lt;li&gt;No Checkov dependency - own lightweight rules engine&lt;/li&gt;
&lt;li&gt;Only reads changed .tf files in the PR, never your full codebase&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;29 rules covering&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;S3 public access, IAM wildcards, open ports (SSH/RDP/MySQL/Postgres), &lt;br&gt;
unencrypted EBS/RDS, public databases, hardcoded secrets, &lt;br&gt;
EKS public endpoints, CloudTrail disabled, IMDSv1, and more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Try it&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Free during beta - terrawatch.dev&lt;/p&gt;

&lt;p&gt;Also launching on Product Hunt today if you want to show some support!&lt;/p&gt;

</description>
      <category>devops</category>
      <category>terraform</category>
      <category>aws</category>
      <category>security</category>
    </item>
  </channel>
</rss>
