<?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: Arthaud Poupard</title>
    <description>The latest articles on DEV Community by Arthaud Poupard (@arthaud_poupard_35c0fe631).</description>
    <link>https://dev.to/arthaud_poupard_35c0fe631</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4267832%2F1b1446d3-2a5f-4c00-997a-5467f0964adc.png</url>
      <title>DEV Community: Arthaud Poupard</title>
      <link>https://dev.to/arthaud_poupard_35c0fe631</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arthaud_poupard_35c0fe631"/>
    <language>en</language>
    <item>
      <title>How to Catch AWS Terraform Cost Spikes and Docker Security Flaws Directly in GitHub PRs</title>
      <dc:creator>Arthaud Poupard</dc:creator>
      <pubDate>Thu, 26 Nov 2026 23:37:52 +0000</pubDate>
      <link>https://dev.to/arthaud_poupard_35c0fe631/how-to-catch-aws-terraform-cost-spikes-and-docker-security-flaws-directly-in-github-prs-5e44</link>
      <guid>https://dev.to/arthaud_poupard_35c0fe631/how-to-catch-aws-terraform-cost-spikes-and-docker-security-flaws-directly-in-github-prs-5e44</guid>
      <description>&lt;p&gt;We've all seen it happen: a Pull Request introduces a harmless-looking &lt;code&gt;aws_instance&lt;/code&gt; or switches an RDS instance class, passes all unit tests, gets merged on a Friday afternoon, and turns into a four-figure surprise on next month's AWS bill.&lt;/p&gt;

&lt;p&gt;At the same time, keeping track of &lt;code&gt;Dockerfile&lt;/code&gt; best practices, &lt;code&gt;docker-compose.yml&lt;/code&gt; hardening, and accidental secret leaks usually means stitching together three or four separate CI linters—each posting its own noisy comment thread on every commit.&lt;/p&gt;

&lt;p&gt;To solve both problems in a single step, I built &lt;strong&gt;&lt;a href="https://github.com/marketplace/actions/infraguard-finops-security" rel="noopener noreferrer"&gt;InfraGuard FinOps &amp;amp; Security&lt;/a&gt;&lt;/strong&gt;—a zero-config GitHub Action that runs natively on your GitHub Runner in under 10 seconds, audits only the files touched in the Pull Request, and maintains &lt;strong&gt;one clean, idempotent Markdown report&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Consolidate FinOps and IaC Security in the PR?
&lt;/h2&gt;

&lt;p&gt;Most existing tools fall into two extremes:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Heavyweight FinOps platforms&lt;/strong&gt; that require external SaaS accounts, cloud IAM credentials, and per-seat monthly subscriptions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single-purpose linters&lt;/strong&gt; (one for Dockerfiles, one for Terraform, one for secrets) that flood your Pull Request with separate comment threads and duplicate alerts on every push.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;InfraGuard takes a different approach:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero external infrastructure:&lt;/strong&gt; Runs 100% on the GitHub Actions runner (&lt;code&gt;node20&lt;/code&gt;) with zero telemetry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PR-diff scoped:&lt;/strong&gt; Only inspects files added or modified in the Pull Request—no noisy dumps across untouched legacy infrastructure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One self-updating comment:&lt;/strong&gt; Uses a hidden HTML marker (&lt;code&gt;&amp;lt;!-- infraguard-report --&amp;gt;&lt;/code&gt;) to update the existing PR comment in place on new commits instead of spamming your team.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  30-Second Setup (Free Tier — No Account or API Key Required)
&lt;/h2&gt;

&lt;p&gt;Out of the box, the Free tier audits &lt;code&gt;Dockerfile&lt;/code&gt; and &lt;code&gt;docker-compose.yml&lt;/code&gt; changes for security and reproducibility issues (unpinned &lt;code&gt;:latest&lt;/code&gt; tags, missing &lt;code&gt;USER&lt;/code&gt; directives, missing &lt;code&gt;HEALTHCHECK&lt;/code&gt;, missing CPU/RAM limits).&lt;/p&gt;

&lt;p&gt;Create &lt;code&gt;.github/workflows/infraguard.yml&lt;/code&gt; in your repository:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
yaml
name: InfraGuard FinOps &amp;amp; Security

on:
  pull_request:

permissions:
  contents: read
  pull-requests: write

jobs:
  infraguard:
    runs-on: ubuntu-latest
    steps:
      - name: Run InfraGuard Audit
        uses: arthepitech/infraguard-finops-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
Every time a Pull Request modifies a container configuration, InfraGuard posts inline code annotations directly on the offending lines alongside a consolidated summary table.

---

## Catching AWS Terraform Cost Spikes &amp;amp; Secret Leaks (Pro)

For teams managing AWS infrastructure with Terraform or wanting hard CI merge gates, adding a license key unlocks:
* **AWS Terraform FinOps &amp;amp; Security Auditing:** Flags GPU instances, unscaled large EC2/RDS instances, unencrypted EBS/RDS volumes, oversized disks, and `gp2` to `gp3` migration opportunities—complete with estimated monthly USD cost impact right inside the PR.
* **Secret Leak Detection:** Scans added PR lines for exposed AWS keys, OpenAI/Anthropic tokens, Stripe keys, and GitHub tokens with strict value masking.
* **Custom Policy &amp;amp; CI Merge Blocking:** Configure `.infraguard.yml` to enforce monthly budget thresholds (`IG-FIN-001`), ignore specific rules/paths, and fail the CI check (`fail_on_error: 'true'`) before expensive or insecure infrastructure gets merged.

    - name: Run InfraGuard Audit (Pro)
      uses: arthepitech/infraguard-finops-action@v1
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        license_key: ${{ secrets.INFRAGUARD_LICENSE_KEY }}
        fail_on_error: 'true'

*(Need to silence a known false positive on a specific line? Inline suppressions like `# infraguard:ignore IG-DKR-001` work in both Free and Pro modes.)*

---

## What the Pull Request Report Looks Like

Instead of digging through raw CI logs, reviewers get an immediate breakdown of severity counts, estimated monthly AWS cost impact, and actionable remediation steps:

| Severity | Rule | File | Resource / Issue | Est. Monthly Cost | Remediation |
| :--- | :--- | :--- | :--- | :--- | :--- |
| Warning | `IG-DKR-001` | `Dockerfile:1` | Unpinned base image (`node:latest`) | — | Pin an explicit version tag or `@sha256` digest |
| Error | `IG-TF-001` | `infra/main.tf:12` | `aws_instance.gpu` | ~$2,234/mo | Verify necessity; consider Spot, Savings Plans, or smaller instance |
| Error | `IG-SEC-001` | `.env:3` | `AKIA************XYZ1` | — | Revoke key in IAM immediately and use OIDC / GitHub Secrets |

---

## Try It on Your Next Pull Request

You can install **InfraGuard FinOps &amp;amp; Security** directly from the **[GitHub Marketplace](https://github.com/marketplace/actions/infraguard-finops-security)** or inspect the open-source MIT codebase on **[GitHub](https://github.com/arthepitech/infraguard-finops-action)**.

If you have ideas for new Terraform cost rules or Docker checks, feel free to open an issue or PR!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>devops</category>
      <category>githubactions</category>
      <category>terraform</category>
      <category>docker</category>
    </item>
  </channel>
</rss>
