<?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: Hyelzor</title>
    <description>The latest articles on DEV Community by Hyelzor (@hyelzor).</description>
    <link>https://dev.to/hyelzor</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%2F4055001%2Fc52d0680-9111-44f5-8ee3-06bf27c866dd.png</url>
      <title>DEV Community: Hyelzor</title>
      <link>https://dev.to/hyelzor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hyelzor"/>
    <language>en</language>
    <item>
      <title>Building a K8s-Native AI Governance Platform with OPA and ML-BOM</title>
      <dc:creator>Hyelzor</dc:creator>
      <pubDate>Thu, 30 Jul 2026 12:06:32 +0000</pubDate>
      <link>https://dev.to/hyelzor/building-a-k8s-native-ai-governance-platform-with-opa-and-ml-bom-5109</link>
      <guid>https://dev.to/hyelzor/building-a-k8s-native-ai-governance-platform-with-opa-and-ml-bom-5109</guid>
      <description>&lt;p&gt;Building a K8s-Native AI Governance Platform with OPA and ML-BOM&lt;/p&gt;

&lt;p&gt;AI workloads on Kubernetes are exploding. But governance? That's a mess.&lt;/p&gt;

&lt;p&gt;We have models running in production, shadow AI workloads we don't know about, and zero visibility into who deployed what. Compliance teams are panicking. Security teams are overwhelmed.&lt;/p&gt;

&lt;p&gt;That's why I built Project-Aegis.&lt;/p&gt;

&lt;p&gt;🎯 Project-Aegis is an open-source, Kubernetes-native AI governance platform that discovers, scans, and enforces policies on AI/ML workloads in real-time.&lt;/p&gt;

&lt;p&gt;🔗 GitHub: github.com/Hyelzor/Project-Aegis&lt;/p&gt;




&lt;p&gt;🔥 The Problem: AI Governance is Broken&lt;/p&gt;

&lt;p&gt;Here's what I kept running into:&lt;/p&gt;

&lt;p&gt;· Shadow AI — Models deployed without anyone knowing&lt;br&gt;
· No audit trail — Who deployed what, and when?&lt;br&gt;
· Manual policy enforcement — Good luck applying consistent rules across 50+ clusters&lt;br&gt;
· Compliance nightmares — Finance, healthcare, and regulated industries need proof, not promises&lt;/p&gt;

&lt;p&gt;Most existing solutions are either:&lt;/p&gt;

&lt;p&gt;· Cloud-specific (lock-in)&lt;br&gt;
· Too heavy (enterprise bloat)&lt;br&gt;
· Not designed for Kubernetes-native workflows&lt;/p&gt;

&lt;p&gt;I wanted something that works out of the box with Helm, integrates with OPA for policies, and gives me tamper-evident audit logs out of the box.&lt;/p&gt;

&lt;p&gt;So I built it.&lt;/p&gt;



&lt;p&gt;🏗️ Architecture Overview&lt;/p&gt;

&lt;p&gt;Here's how Project-Aegis works:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────────────────────────┐
│                    Kubernetes Cluster                       │
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐ │
│  │  AI Agent   │  │  AI Agent   │  │    k8s-aibom        │ │
│  │  (LangChain)│  │  (LangChain)│  │    Controller       │ │
│  └──────┬──────┘  └──────┬──────┘  └──────────┬──────────┘ │
│         │                │                     │            │
│         └────────────────┼─────────────────────┘            │
│                          │                                  │
│                    [WebSocket]                              │
│                          │                                  │
└──────────────────────────┼──────────────────────────────────┘
                           │
                           ▼
┌──────────────────────────────────────────────────────────────┐
│                    Aegis Backend (FastAPI)                  │
│  ┌────────────────────────────────────────────────────────┐ │
│  │  • ML-BOM Ingestion  • Policy Engine (OPA Rego)       │ │
│  │  • OpenA2A Scanner   • Audit Logger (HMAC chain)      │ │
│  └────────────────────────────────────────────────────────┘ │
│                           │                                  │
│                    ┌──────▼──────┐                          │
│                    │ PostgreSQL  │                          │
│                    │   (16)      │                          │
│                    └─────────────┘                          │
└──────────────────────────────────────────────────────────────┘
                           │
                           ▼
┌──────────────────────────────────────────────────────────────┐
│                    React Dashboard                          │
│              (Real-time policy visualization)               │
└──────────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tech stack:&lt;/p&gt;

&lt;p&gt;· Backend: Python 3.11 + FastAPI + SQLAlchemy&lt;br&gt;
· Database: PostgreSQL 16&lt;br&gt;
· Policy Engine: OPA Rego&lt;br&gt;
· Frontend: React 18 + Vite + Tailwind + Recharts&lt;br&gt;
· Orchestration: Kubernetes + Helm&lt;br&gt;
· Agent SDK: TypeScript 5.x + LangChain wrapper&lt;/p&gt;



&lt;p&gt;🧠 Key Features&lt;/p&gt;

&lt;p&gt;1️⃣ ML-BOM Discovery &amp;amp; Ingestion&lt;/p&gt;

&lt;p&gt;A Kubernetes controller (k8s-aibom) automatically discovers AI models deployed on your clusters and generates ML-BOM (Machine Learning Bill of Materials) documents.&lt;/p&gt;

&lt;p&gt;Every model gets tracked — no more shadow AI.&lt;/p&gt;

&lt;p&gt;2️⃣ OpenA2A Vulnerability Scanning&lt;/p&gt;

&lt;p&gt;Every valid ML-BOM triggers an automated OpenA2A scan via webhook. Vulnerabilities are detected before they reach production.&lt;/p&gt;

&lt;p&gt;3️⃣ Real-Time OPA Policy Enforcement&lt;/p&gt;

&lt;p&gt;Policies are written in Rego and enforced in real-time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rego"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Example: Block vLLM deployments&lt;/span&gt;
&lt;span class="n"&gt;deny&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;kind&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"Deployment"&lt;/span&gt;
    &lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;template&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;spec&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;containers&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;image&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;"vllm/vllm"&lt;/span&gt;
    &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"vLLM deployments are blocked by policy"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The policy engine supports three actions:&lt;/p&gt;

&lt;p&gt;· Block — Prevent the workload from running&lt;br&gt;
· Allow — Permit the workload&lt;br&gt;
· Mask — Redact sensitive data from logs&lt;/p&gt;

&lt;p&gt;4️⃣ Tamper-Evident Audit Logs&lt;/p&gt;

&lt;p&gt;This is one of my favorite features. Every audit log entry is hashed using HMAC-SHA256 in a chain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Log 1 → Hash(Log 1 + Secret)
Log 2 → Hash(Log 2 + Hash(Log 1 + Secret))
Log 3 → Hash(Log 3 + Hash(Log 2 + ...))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If someone modifies a log entry, the chain breaks — and you can prove it. Critical for finance, healthcare, and regulated industries.&lt;/p&gt;

&lt;p&gt;5️⃣ React Dashboard&lt;/p&gt;

&lt;p&gt;A clean, real-time dashboard shows:&lt;/p&gt;

&lt;p&gt;· All ML-BOMs across clusters&lt;br&gt;
· Policy violations&lt;br&gt;
· Audit trail&lt;br&gt;
· Scan results&lt;/p&gt;



&lt;p&gt;🚀 Getting Started in 5 Minutes&lt;/p&gt;

&lt;p&gt;Option 1: Docker Compose (Local Dev)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/Hyelzor/Project-Aegis.git
&lt;span class="nb"&gt;cd &lt;/span&gt;Project-Aegis
make docker-up
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Option 2: Helm Chart (Kubernetes)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm repo add aegis https://hyelzor.github.io/Project-Aegis
helm &lt;span class="nb"&gt;install &lt;/span&gt;aegis aegis/aegis
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it. The dashboard is available at &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;📊 Real-World Validation&lt;/p&gt;

&lt;p&gt;We recently had users test Aegis on staging clusters. The shadow AI detection caught two orphaned workloads they didn't even know were running.&lt;/p&gt;

&lt;p&gt;One user said:&lt;/p&gt;

&lt;p&gt;"Helm install was shockingly painless and the OPA policies started blocking my test workload right away, exactly as configured. Wish more k8s tools had audit trails this clean out of the box."&lt;/p&gt;

&lt;p&gt;Another added:&lt;/p&gt;

&lt;p&gt;"The shadow AI detection caught two orphaned workloads in our staging cluster that I didn't even know were running — which was both reassuring and slightly terrifying."&lt;/p&gt;




&lt;p&gt;🔮 What's Next?&lt;/p&gt;

&lt;p&gt;The platform is production-ready, but here's what I'm thinking about:&lt;/p&gt;

&lt;p&gt;· More policy templates — Pre-built Rego rules for common AI frameworks&lt;br&gt;
· Slack/Email alerts — Real-time notifications for policy violations&lt;br&gt;
· Multi-cluster support — Centralized governance across 100+ clusters&lt;br&gt;
· CNCF Sandbox — Eventually, I'd love to donate this to the CNCF&lt;/p&gt;




&lt;p&gt;💬 Let's Talk&lt;/p&gt;

&lt;p&gt;I'd love your feedback on:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The OPA Rego policies — Are they comprehensive enough?&lt;/li&gt;
&lt;li&gt;The HMAC audit chain — Any edge cases I missed?&lt;/li&gt;
&lt;li&gt;ML-BOM discovery — What models/frameworks should I support next?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Drop a comment below or open an issue on GitHub.&lt;/p&gt;

&lt;p&gt;🔗 GitHub: github.com/Hyelzor/Project-Aegis&lt;br&gt;
⭐ Star it if you find it useful!&lt;/p&gt;




&lt;p&gt;Built with ❤️ for the Kubernetes and AI community.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>kubernetes</category>
      <category>security</category>
    </item>
  </channel>
</rss>
