<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tarek on Medium]]></title>
        <description><![CDATA[Stories by Tarek on Medium]]></description>
        <link>https://medium.com/@tareki9100?source=rss-9401072b6e33------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mqWgUCzf84GFGvAc</url>
            <title>Stories by Tarek on Medium</title>
            <link>https://medium.com/@tareki9100?source=rss-9401072b6e33------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:42:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tareki9100/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploying Kafka in an Air-Gapped Environment: How We Built a Fully Offline Streaming Platform]]></title>
            <link>https://medium.com/@tareki9100/deploying-kafka-in-an-air-gapped-environment-how-we-built-a-fully-offline-streaming-platform-9a5856e29471?source=rss-9401072b6e33------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a5856e29471</guid>
            <category><![CDATA[kafka-kraft]]></category>
            <dc:creator><![CDATA[Tarek]]></dc:creator>
            <pubDate>Sun, 07 Dec 2025 13:45:10 GMT</pubDate>
            <atom:updated>2025-12-07T13:45:10.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Most modern data platforms assume Internet access. Package managers, cloud orchestration, online documentation, remote repos — they are all part of the standard workflow.<br> But some environments operate under strict isolation: <strong>no external connectivity, no public repositories, no cloud services</strong>.</p><p>Recently, we built and deployed a <strong>Kafka 4.x KRaft cluster</strong> entirely inside such an air-gapped network. What began as a technical challenge quickly became a success story in engineering discipline and platform design.</p><h3>The Challenge</h3><p>Deploy a <strong>fully functional, secure, highly available Kafka platform</strong> in an environment where:</p><ul><li>All binaries and configs must be imported manually</li><li>Every dependency must be verified and self-contained</li><li>Security and governance must be enforced from day one</li></ul><h3>The Architecture We Delivered</h3><p>We designed a <strong>modern KRaft-based Kafka deployment</strong> — no ZooKeeper — optimized for reliability and simplicity. The diagram below shows the high-level architecture of our cluster, entirely contained within the secure perimeter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MTfaho00w_2yK53NyoFJ0w.jpeg" /></figure><h3>Cluster Roles</h3><ul><li><strong>Controller Nodes</strong> (metadata management &amp; Raft consensus)</li><li><strong>Broker Nodes</strong> (client traffic, storage, replication)</li></ul><h3>Key Capabilities</h3><ul><li>High availability via replicated metadata</li><li>Predictable partition distribution</li><li>Strict authentication using <strong>SASL/SCRAM-SHA-512</strong></li><li>Granular authorization with <strong>ACL governance</strong></li><li>Complete offline observability and topic management through <strong>AKHQ</strong>, deployed locally</li></ul><p>Every component was packaged, configured, and tested manually to work inside an isolated network.</p><h3>Security First</h3><p>One of the major achievements was configuring Kafka with <strong>enterprise-grade access control</strong>:</p><ul><li>Only the <strong>admin identity</strong> can create or manage topics</li><li>Application users receive <strong>least-privilege ACLs</strong></li><li>All operations require authenticated SASL credentials</li><li>No unauthenticated access exists anywhere in the cluster</li></ul><p>This turned Kafka into a controlled internal platform rather than an open message bus.</p><h3>How We Built It</h3><p>Building this platform required a disciplined, step-by-step approach. The flowchart below summarizes our offline deployment workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q2wG54YpBjgQdtecMcizOQ.jpeg" /></figure><ol><li>Assembled a complete <strong>offline Kafka installation kit</strong> (binaries, JVM, configs, scripts).</li><li>Generated and propagated a shared <strong>cluster ID</strong> for KRaft mode.</li><li>Formatted and bootstrapped all nodes with identical metadata.</li><li>Launched controllers → validated quorum → added brokers.</li><li>Applied full authentication + role-based ACL security.</li><li>Deployed AKHQ inside the air-gapped network for managing topics, inspecting partitions, and monitoring cluster state.</li><li>Performed functional, failover, and authorization testing.</li></ol><p>The result was a <strong>self-contained, reproducible, secure Kafka platform </strong>built under constraints most distributed systems never experience.</p><h3>Why This Matters</h3><p>This deployment proves that <strong>air-gapped environments can still run modern, scalable, and secure real-time data pipelines</strong> when they are engineered intentionally.</p><p>It also demonstrates that:</p><ul><li>KRaft dramatically simplifies Kafka architecture</li><li>Offline platforms require stronger planning, but yield stronger discipline</li><li>Security and governance are not optional — they are foundational</li><li>Distributed systems thrive even without the Internet</li></ul><h3>Final Outcome</h3><p>We now have a <strong>production-ready Kafka streaming platform</strong>, fully isolated and fully governed:</p><ul><li>Highly available</li><li>Secure by default</li><li>Observable through AKHQ</li><li>Governed through strict ACL policies</li><li>Entirely offline and air-gapped</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a5856e29471" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>