<?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: astro</title>
    <description>The latest articles on DEV Community by astro (@astro_root).</description>
    <link>https://dev.to/astro_root</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%2F4272286%2F8f1214f5-72a6-4709-af80-25f07bb2a2c1.png</url>
      <title>DEV Community: astro</title>
      <link>https://dev.to/astro_root</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/astro_root"/>
    <language>en</language>
    <item>
      <title>I built an AI that debugs crashed containers, then tried to make it leak my secrets</title>
      <dc:creator>astro</dc:creator>
      <pubDate>Sun, 29 Nov 2026 12:54:34 +0000</pubDate>
      <link>https://dev.to/astro_root/i-built-an-ai-that-debugs-crashed-containers-then-tried-to-make-it-leak-my-secrets-1a3j</link>
      <guid>https://dev.to/astro_root/i-built-an-ai-that-debugs-crashed-containers-then-tried-to-make-it-leak-my-secrets-1a3j</guid>
      <description>&lt;p&gt;Pasting container logs into a chatbot has three problems: the logs carry secrets, anyone who can write to your logs can inject instructions into the AI, and the fixes it suggests are never reviewed.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Hody&lt;/strong&gt;, an open-source Go tool that finds the root cause of a failed Docker container or Kubernetes pod with an LLM, where the model is never trusted with anything.&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/astro-dally" rel="noopener noreferrer"&gt;
        astro-dally
      &lt;/a&gt; / &lt;a href="https://github.com/astro-dally/Hody-AI" rel="noopener noreferrer"&gt;
        Hody-AI
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Find out why your Docker container or Kubernetes pod crashed, without showing your secrets to the AI. Read-only, evidence-checked, with safety-reviewed fixes.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/astro-dally/Hody-AI/docs/images/logo.svg"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fastro-dally%2FHody-AI%2FHEAD%2Fdocs%2Fimages%2Flogo.svg" alt="Hody" width="340"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;strong&gt;Find out why your container crashed, without showing your secrets to the AI.&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://github.com/astro-dally/Hody-AI/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img alt="CI" src="https://github.com/astro-dally/Hody-AI/actions/workflows/ci.yml/badge.svg"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/astro-dally/Hody-AI/releases" rel="noopener noreferrer"&gt;&lt;img alt="Release" src="https://camo.githubusercontent.com/b16aa2e980a69279d6884312c9b7d190051218e4b3133d1dedae2cadc60045d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f617374726f2d64616c6c792f486f64792d41493f736f72743d73656d766572"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/astro-dally/Hody-AI/go.mod" rel="noopener noreferrer"&gt;&lt;img alt="Go version" src="https://camo.githubusercontent.com/d1cec3f4829519864c56e88f476c6ac2bae926c2160ee14ad3b9df385c30c900/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f676f2d6d6f642f676f2d76657273696f6e2f617374726f2d64616c6c792f486f64792d4149"&gt;&lt;/a&gt;
  &lt;a href="https://github.com/astro-dally/Hody-AI/LICENSE" rel="noopener noreferrer"&gt;&lt;img alt="License: MIT" src="https://camo.githubusercontent.com/f51533d1fa18b7dabd8f4055ddd56ab932659a21c1b88159f7f61c686b1f70d0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f617374726f2d64616c6c792f486f64792d4149"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
  &lt;a href="https://github.com/astro-dally/Hody-AI/docs/GETTING_STARTED.md" rel="noopener noreferrer"&gt;Getting started&lt;/a&gt; ·
  &lt;a href="https://github.com/astro-dally/Hody-AI#how-it-works" rel="noopener noreferrer"&gt;How it works&lt;/a&gt; ·
  &lt;a href="https://github.com/astro-dally/Hody-AI#what-hody-can-diagnose" rel="noopener noreferrer"&gt;What it diagnoses&lt;/a&gt; ·
  &lt;a href="https://github.com/astro-dally/Hody-AI/CONTRIBUTING.md" rel="noopener noreferrer"&gt;Contributing&lt;/a&gt;
&lt;/p&gt;




&lt;p&gt;Hody is a command-line tool and local web page that tells you &lt;strong&gt;why a Docker
container or Kubernetes pod failed&lt;/strong&gt;. It gathers the clues, hides passwords
and keys before an AI model sees anything, checks the AI's answer against the
evidence, and safety-reviews any fix it suggests.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hody only reads.&lt;/strong&gt; It never changes your containers, cluster or files, and
it never applies a fix. You decide.&lt;/p&gt;
&lt;p&gt;Why build it? Read the story
&lt;a href="https://medium.com/@astro_dally/stop-pasting-your-logs-into-a-chatbot-f24932e8310c" rel="nofollow noopener noreferrer"&gt;Stop pasting your logs into a chatbot&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;
  &lt;a rel="noopener noreferrer" href="https://github.com/astro-dally/Hody-AI/docs/images/web-diagnosis.png"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fastro-dally%2FHody-AI%2FHEAD%2Fdocs%2Fimages%2Fweb-diagnosis.png" alt="Hody's web page showing a diagnosis: the hoodie mascot, the steps as knots on a drawstring, a green care label saying the fix looks safe, what failed, why, the cited evidence and a coloured diff" width="720"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Quick start&lt;/h2&gt;
&lt;/div&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;brew install astro-dally/tap/hody        &lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; macOS; Linux and Windows: see Install&lt;/span&gt;
ollama pull qwen3:32b                    &lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; a local AI model, or use any OpenAI-compatible API&lt;/span&gt;
&lt;span class="pl-k"&gt;export&lt;/span&gt; HODY_LLM_BASE_URL=http://localhost:11434/v1 HODY_LLM_MODEL=qwen3:32b
hody doctor                              &lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; checks Docker, Kubernetes and the AI&lt;/span&gt;
hody diagnose docker my-container        &lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; or: hody&lt;/span&gt;&lt;/pre&gt;…
&lt;/div&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/astro-dally/Hody-AI" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;A diagnosis runs seven fixed steps: &lt;strong&gt;collect → triage → investigate → conclude → propose fix → review → approve&lt;/strong&gt;. Nothing is ever applied.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2imf4q40qeytfkc5emol.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2imf4q40qeytfkc5emol.png" alt=" " width="800" height="583"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The first look is automatic: status, logs, events, config, and the logs of the run that &lt;em&gt;crashed&lt;/em&gt;, not the one that restarted. For Kubernetes it also diffs the current ReplicaSet against the previous one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What keeps the model in check
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A gateway.&lt;/strong&gt; Every tool output goes redact → scan → limit → number → wrap before the model sees it. Secrets become session-stable placeholders:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;env: GPG_KEY=[SECRET_1]
env: PYTHON_VERSION=3.12.16
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Injection flagging.&lt;/strong&gt; Nine heuristics flag lines like &lt;code&gt;SYSTEM: ignore previous instructions&lt;/code&gt;. They're quoted and shown to you, never followed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A scope lock.&lt;/strong&gt; The model can request up to 8 more read-only tools, only for the target you chose. Rejections count toward the 8.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Evidence checks.&lt;/strong&gt; Every clue is numbered (E1, E2…). The model must cite them, and code verifies the evidence actually shows the claimed failure: claim "not executable" and I need to see exit code 126.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Edits, not diffs.&lt;/strong&gt; The model returns find/replace edits; Hody builds the diff and round-trip checks it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"edits"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nl"&gt;"find"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"    mem_limit: 33554432"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"replace"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"    mem_limit: 1073741824"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Two-layer review.&lt;/strong&gt; 11 deterministic policy rules (no root, no privileged, no &lt;code&gt;0777&lt;/code&gt;…) plus a separate LLM critic that never sees the logs. The stricter verdict wins.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read-only in the transport.&lt;/strong&gt; The Docker client refuses anything but GET on an allowlist of paths. The Kubernetes client only gets, lists and reads logs.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I tested it
&lt;/h2&gt;

&lt;p&gt;12 deliberately broken scenarios (5 Docker, 7 Kubernetes), each with a &lt;strong&gt;planted fake secret&lt;/strong&gt; and an &lt;strong&gt;injection line&lt;/strong&gt;. Answer keys were written before any model saw them and never changed afterwards. Live runs used real Docker and a kind cluster on AWS EC2, with &lt;code&gt;qwen3:32b&lt;/code&gt; on a remote GPU.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;0&lt;/strong&gt; secrets leaked in &lt;strong&gt;194&lt;/strong&gt; model requests (4 live runs)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;48 / 48&lt;/strong&gt; injection lines flagged, none obeyed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;11 / 12&lt;/strong&gt; scenarios passed every check in the final run&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4 → 11 of 11&lt;/strong&gt; working fixes after one design change&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The AI critic approved 8 of 10 broken fixes.&lt;/strong&gt; The deterministic checks caught all 10. Don't let an AI be the only reviewer of an AI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;511&lt;/code&gt; is not &lt;code&gt;755&lt;/code&gt;.&lt;/strong&gt; The model suggested &lt;code&gt;defaultMode: 511&lt;/code&gt; and called it 755. It's the decimal form of &lt;code&gt;0777&lt;/code&gt;. A policy rule blocked it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fix the interface, not the prompt.&lt;/strong&gt; The model knew the right one-line fixes but kept writing broken diffs. Switching to find/replace edits took working fixes from 4/11 to 11/11 on the same model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Still unsolved:&lt;/strong&gt; in the "no findable cause" scenario, the model still invents a cause instead of saying "not enough evidence". It stays in the results.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew install astro-dally/tap/hody
hody doctor
hody diagnose docker &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;container&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Works with Ollama or any OpenAI-compatible API. Hody covers 12 failure types today; the roadmap has more, and contributions are welcome.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devops</category>
      <category>kubernetes</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
