<?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: Mohammed</title>
    <description>The latest articles on DEV Community by Mohammed (@g7_eaf9b7f).</description>
    <link>https://dev.to/g7_eaf9b7f</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%2F3879220%2Fe442a2ae-9f71-43a5-910f-c06522cb88cd.png</url>
      <title>DEV Community: Mohammed</title>
      <link>https://dev.to/g7_eaf9b7f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/g7_eaf9b7f"/>
    <language>en</language>
    <item>
      <title>I built an open-source ops automation platform — here's what I learned</title>
      <dc:creator>Mohammed</dc:creator>
      <pubDate>Tue, 14 Apr 2026 19:43:20 +0000</pubDate>
      <link>https://dev.to/g7_eaf9b7f/i-built-an-open-source-ops-automation-platform-heres-what-i-learned-3ec6</link>
      <guid>https://dev.to/g7_eaf9b7f/i-built-an-open-source-ops-automation-platform-heres-what-i-learned-3ec6</guid>
      <description>&lt;p&gt;For the past few months, I've been building &lt;a href="https://github.com/infralaneapp/infralane" rel="noopener noreferrer"&gt;Infralane&lt;/a&gt;, an open-source platform for DevOps and IT operations teams. Think of it as a service desk that actually understands infrastructure workflows — not just a form that creates a ticket and throws it into a queue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I built it
&lt;/h2&gt;

&lt;p&gt;Every DevOps team I've worked on has the same problem: access requests come through Slack, deployments are tracked in spreadsheets, and incident response is a mix of PagerDuty alerts and "who's online?" messages. There are enterprise tools for this, but they're expensive and take forever to set up.&lt;/p&gt;

&lt;p&gt;I wanted something where:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Requests&lt;/strong&gt; come in with the right fields already defined (not "describe your issue").&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automation rules&lt;/strong&gt; handle the boring parts (assign, tag, notify, escalate).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sensitive actions&lt;/strong&gt; need approval before executing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything&lt;/strong&gt; is auditable.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&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.amazonaws.com%2Fuploads%2Farticles%2F4hthv1c6ir9kd6dthz9c.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.amazonaws.com%2Fuploads%2Farticles%2F4hthv1c6ir9kd6dthz9c.png" alt="Screenshot of the Infralane dashboard showing automation stats" width="800" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How the automation engine works
&lt;/h2&gt;

&lt;p&gt;You create rules with a trigger, conditions, and an action.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Trigger&lt;/strong&gt; → when something happens&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Conditions&lt;/strong&gt; → match against ticket fields&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Action&lt;/strong&gt; → do something&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Real-world examples:
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Trigger:&lt;/strong&gt; Ticket created&lt;br&gt;
&lt;strong&gt;Conditions:&lt;/strong&gt; &lt;code&gt;type = incident&lt;/code&gt; AND &lt;code&gt;priority = urgent&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Action:&lt;/strong&gt; Assign to on-call operator&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Trigger:&lt;/strong&gt; Ticket created&lt;br&gt;
&lt;strong&gt;Conditions:&lt;/strong&gt; &lt;code&gt;type = deployment&lt;/code&gt; AND &lt;code&gt;environment = production&lt;/code&gt;&lt;br&gt;
&lt;strong&gt;Action:&lt;/strong&gt; Require approval before proceeding&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There are 8 action types: assign, change status, change priority, add tag, notify, Slack message, webhook, and escalation chains.&lt;/p&gt;

&lt;h3&gt;
  
  
  Under the hood
&lt;/h3&gt;

&lt;p&gt;The worker is a separate Node.js process that polls for queued jobs every 5 seconds. It uses &lt;code&gt;SELECT FOR UPDATE SKIP LOCKED&lt;/code&gt; in PostgreSQL for atomic job claiming — no Redis needed.&lt;/p&gt;

&lt;p&gt;Jobs get exponential backoff on failure and move to a dead-letter queue after 3 attempts. Every state transition is logged so you can trace exactly what happened and why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Approval workflows
&lt;/h2&gt;

&lt;p&gt;This is the feature I think makes it more than just another ticketing tool.&lt;/p&gt;

&lt;p&gt;When a rule has "requires approval" enabled, the automation job pauses in a &lt;code&gt;PENDING_APPROVAL&lt;/code&gt; state. The ticket gets &lt;strong&gt;locked&lt;/strong&gt; — operators can't resolve or close it until someone approves or rejects.&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.amazonaws.com%2Fuploads%2Farticles%2Fduuvggfmm59q295tzika.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.amazonaws.com%2Fuploads%2Farticles%2Fduuvggfmm59q295tzika.png" alt="The Infralane ticket creation interface" width="800" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Three-tier role system
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;What they can do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Requester&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Submit tickets, view their own, comment, rate resolved tickets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Operator&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Work all tickets, assign, change status, approve/reject, view reports&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Admin&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Everything above + manage settings, automation rules, team, integrations&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;h3&gt;
  
  
  1. Dedup is harder than it looks
&lt;/h3&gt;

&lt;p&gt;My first approach used a unique constraint on &lt;code&gt;(ruleId, ticketId, trigger)&lt;/code&gt;. That's too coarse — the same rule should fire multiple times on the same ticket for repeated status changes.&lt;/p&gt;

&lt;p&gt;I ended up using SHA-256 hash keys derived from rule + ticket + trigger + context. The unique constraint on the hash handles race conditions.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Automation needs cascade prevention
&lt;/h3&gt;

&lt;p&gt;If an automation rule changes a ticket's status, and there's another rule that triggers on status changes... you get infinite loops.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The fix:&lt;/strong&gt; Executors write directly to Prisma, not through the service functions that emit triggers. Automation actions never re-trigger other automation rules.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Gates must block all paths
&lt;/h3&gt;

&lt;p&gt;I built approval workflows that block automation execution, but forgot that an operator could just resolve the ticket manually! I had to add &lt;strong&gt;ticket locking&lt;/strong&gt; — while an approval is pending, the ticket's status is immutable via the API (&lt;code&gt;409 PENDING_APPROVAL&lt;/code&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Dev fallbacks are production footguns
&lt;/h3&gt;

&lt;p&gt;I had a dev fallback for the session signing secret. One bad deployment config and every session is forgeable. Now, the app throws a fatal error in production if the secret is missing. &lt;strong&gt;Fail fast.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;  &lt;strong&gt;Frontend:&lt;/strong&gt; Next.js 15, React, Tailwind CSS&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Backend:&lt;/strong&gt; Next.js API Routes, Prisma ORM&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Database:&lt;/strong&gt; PostgreSQL 16&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Worker:&lt;/strong&gt; Standalone Node.js process&lt;/li&gt;
&lt;li&gt;  &lt;strong&gt;Real-time:&lt;/strong&gt; Server-Sent Events (SSE)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Self-host it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/infralaneapp/infralane.git
&lt;span class="nb"&gt;cd &lt;/span&gt;infralane
docker compose up &lt;span class="nt"&gt;-d&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;App runs at &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;. The first user to register becomes the admin.&lt;/p&gt;
&lt;h3&gt;
  
  
  What's next
&lt;/h3&gt;

&lt;p&gt;The core is stable but there's plenty to improve:&lt;/p&gt;

&lt;p&gt;[ ] Test Slack integration against a real workspace&lt;br&gt;
[ ] Implement actual SMTP email sending&lt;br&gt;
[ ] Password reset flow&lt;br&gt;
[ ] Rate limiting&lt;br&gt;
MIT licensed. If you're running ops workflows and have opinions about what's missing, I'd genuinely like to hear them!&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/infralaneapp" rel="noopener noreferrer"&gt;
        infralaneapp
      &lt;/a&gt; / &lt;a href="https://github.com/infralaneapp/infralane" rel="noopener noreferrer"&gt;
        infralane
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Infralane&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Structured ops. Automated execution.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/infralaneapp/infralane/actions/workflows/ci.yml" rel="noopener noreferrer"&gt;&lt;img src="https://github.com/infralaneapp/infralane/actions/workflows/ci.yml/badge.svg" alt="CI"&gt;&lt;/a&gt;
&lt;a href="https://github.com/infralaneapp/infralane/./LICENSE" rel="noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667" alt="License: MIT"&gt;&lt;/a&gt;
&lt;a href="https://railway.com/template/infralane?referralCode=infralane" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/c8ca5360fd0b0896eedb6e904fe4b5625c429e183608521e7b2483da647fc9ff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6465706c6f792d5261696c7761792d626c756576696f6c65743f6c6f676f3d7261696c776179" alt="Deploy on Railway"&gt;&lt;/a&gt;
&lt;a href="https://infralane-production.up.railway.app/" rel="nofollow noopener noreferrer"&gt;&lt;img src="https://camo.githubusercontent.com/5274b4e2c45a4fe1b80fbce179f9d2a9c6f930ffd1abd2fa823b9530b42194fd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64656d6f2d6c6976652d627269676874677265656e" alt="Live Demo"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Infralane is an ops control center for DevOps and IT operations teams. Ticket creation triggers automation rules, approvals gate sensitive actions, and every state change is traceable.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Try it now:&lt;/strong&gt; &lt;a href="https://infralane-production.up.railway.app/" rel="nofollow noopener noreferrer"&gt;Live Demo&lt;/a&gt; — login with &lt;code&gt;admin@infralane.com&lt;/code&gt; / &lt;code&gt;12345678&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/infralaneapp/infralane/./images/dashboard.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%2Finfralaneapp%2Finfralane%2FHEAD%2F.%2Fimages%2Fdashboard.png" alt="Dashboard"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Key Features&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Structured ticket intake&lt;/strong&gt; — Typed requests (access, deployment, incident, infrastructure) with custom field schemas and templates&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automation engine&lt;/strong&gt; — Rules that trigger on ticket events, evaluate conditions, and execute actions (assign, change status, notify, escalate, webhook)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approval workflows&lt;/strong&gt; — Gate automation behind human approval with designated approvers and ticket locking&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Three-tier roles&lt;/strong&gt; — Requester, Operator, Admin with granular permissions&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SLA tracking&lt;/strong&gt; — Configurable response/resolution thresholds with breach detection and auto-escalation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Slack integration&lt;/strong&gt; — OAuth login, DM notifications, interactive approval buttons&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Knowledge base&lt;/strong&gt; — Self-service articles linked to ticket types&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full audit trail&lt;/strong&gt; — Every mutation logged with automation job lifecycle events&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Screenshots&lt;/h2&gt;
&lt;/div&gt;

Ticket Queue
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/infralaneapp/infralane/./images/ticket-queue.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%2Finfralaneapp%2Finfralane%2FHEAD%2F.%2Fimages%2Fticket-queue.png" alt="Ticket Queue"&gt;&lt;/a&gt;&lt;/p&gt;


Board…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/infralaneapp/infralane" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


</description>
      <category>opensource</category>
      <category>devops</category>
      <category>nextjs</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
