<?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 Sushobhit Khanna on Medium]]></title>
        <description><![CDATA[Stories by Sushobhit Khanna on Medium]]></description>
        <link>https://medium.com/@sushobhit.khanna9?source=rss-24adcbbca22c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3rm25x0kltjxo5AH6qsEMQ.png</url>
            <title>Stories by Sushobhit Khanna on Medium</title>
            <link>https://medium.com/@sushobhit.khanna9?source=rss-24adcbbca22c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:43:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sushobhit.khanna9/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[TLS Demystified — If You’ve Ever Watched a Spy Movie, You Already Understand TLS]]></title>
            <link>https://medium.com/@sushobhit.khanna9/tls-demystified-if-youve-ever-watched-a-spy-movie-you-already-understand-tls-d1a7c2804c84?source=rss-24adcbbca22c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1a7c2804c84</guid>
            <category><![CDATA[tls]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Sushobhit Khanna]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 12:32:45 GMT</pubDate>
            <atom:updated>2026-03-23T12:32:45.872Z</atom:updated>
            <content:encoded><![CDATA[<p>Every time you see that little padlock in your browser, or your API enforces HTTPS, TLS is silently doing something quite beautiful in the background. It’s solving three hard problems simultaneously — in under 200 milliseconds.</p><p>Most explanations either gloss over the details or drown you in cryptography jargon. This article does neither. We’ll use one central analogy throughout, build the intuition first, and then map every step to what’s actually happening in the protocol.</p><h3>The Problem TLS Is Solving</h3><p>Imagine you are James Bond, the Spy 🕵️, in an enemy country. You have some information to give to your MI6 Headquarters. You have the HQ’s phone number but have the fear that phone line may not be secure and also have the information that some of the agents working in the HQ might be compromised.</p><p>That is the internet without TLS. Your data — passwords, tokens, credit card numbers — travels as plain text across dozens of routers, ISPs, and network hops. Anyone sitting on the path can read it, copy it, or change it before it reaches the destination.</p><p>TLS solves this with three guarantees, delivered together:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*EPmy8R954dZqsvcNwCN80w.png" /></figure><h3>The Analogy We’ll Use Throughout</h3><p>Before diving into the steps, let’s establish the analogy that will carry us through the entire article.</p><blockquote><strong><em>A Spy Contacting Headquarters — From Hostile Territory</em></strong></blockquote><blockquote><em>A spy in the field needs to call their organization’s headquarters to transmit classified information. The spy has the phone number of HQ — but that is all they know. The line could be answered by a genuine HQ operator, or it could be a fraudster who obtained the number, or a compromised insider. The spy carries a codebook issued by the agency before the mission. When the call is answered and HQ shares their certificate — their official identity document — the spy checks it against the codebook. Only if it matches does the spy proceed. They must then agree on a secret cipher without ever saying it aloud on the call. Only then can the actual intelligence be transmitted safely.</em></blockquote><p>This captures TLS perfectly because:</p><ul><li>The phone call is over the open internet — hostile, public, observed</li><li>The spy has the phone number of HQ but not their identity — anyone could answer that line</li><li>They cannot pre-share a cipher over the call (the whole problem TLS solves)</li><li>Once the spy verifies HQ and they agree on a cipher, the call is safe even if monitored</li></ul><p>Every step of the TLS handshake maps to something the spy and HQ do. Let’s walk through it.</p><h3>The TLS Handshake — Step by Step</h3><p>The handshake is the negotiation phase. No real data is transferred yet. Think of it as everything that happens before the spy and HQ begin their actual transmission.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*URIROA15ZDNUehbhfUyOzA.png" /></figure><h3>Step 1 — The Client Says Hello</h3><p><strong>🕵️ Spy:</strong> <em>“I’m ready to connect. My code name is 007. I can talk in English or French.”. </em>This 007 will be called Client Random for this call.</p><p><strong>In TLS world</strong>: The client opens the conversation: <em>“I want to connect securely. I support TLS 1.3, AES-256 encryption, and here is a random number I just generated.”</em> That random number — called the <strong>Client Random</strong> — is unique to this connection. Think of it as the spy dialling HQ’s number and announcing their codename and capabilities to open the channel.</p><h3>Step 2 — The Server Responds and Shows Its ID</h3><p><strong>🏛️ HQ:</strong> <em>“Hello 007. My code is 001. Let’s communicate in English. To confirm my identity, I am sharing my identity details over a message to your number. It also contains a codebook — a=01, b=02 … z=26.” </em>This 001 is called <strong>Server Random</strong>. The identity details being shared is the certificate.</p><p><strong>In TLS world</strong>: The server replies: <em>“Great. Let’s use TLS 1.3. Here is my random number — the Server Random. And here is my certificate — my official identity document.”</em> The certificate is the critical element. It contains the server’s domain name, its public key, an expiry date, and most importantly: <strong>a digital signature from a Certificate Authority</strong> who is vouching for its identity.</p><h3>Step 3 — The Client Verifies the Certificate</h3><p><strong>🕵️ Spy opens codebook.</strong></p><p>This is where the spy opens their codebook. HQ has just shared their certificate — their official identity document — and the spy must verify it before saying another word.</p><p>Three checks happen:</p><ol><li><strong>Is the certificate signed by an authority listed in my codebook?</strong> The codebook contains roughly 150 trusted Certificate Authority signatures, pre-loaded by the agency. The spy verifies the signature mathematically.</li><li><strong>Is it expired?</strong></li><li><strong>Does the name match HQ’s known identity?</strong></li></ol><p>All three must pass. If any fails, the spy hangs up immediately.</p><h3>Step 4 — The Client Generates and Sends a Secret — Securely</h3><p><strong>🕵️ Spy:</strong> <em>“aec”</em> <em>(only HQ can decode this)</em></p><p>The spy picks a secret 3-digit code: <strong>042</strong>. Using the codebook HQ sent (a=0, b=1, c=2… e=4…z=26), the spy encodes it as the letters <strong>“aec”</strong> and says it aloud on the call. Anyone listening hears “aec” — but has no idea it maps to 042 without the codebook. This secret code is called <strong>Pre-Master Secret.</strong></p><p><strong>In TLS</strong>: the client generates a third random value — the <strong>Pre-Master Secret</strong>. This is the most sensitive piece of information in the entire handshake. The client encrypts it with the server’s public key from the certificate and sends it. Only the server — holding the corresponding private key — can decrypt it.</p><h3>Step 5 — The Server Decrypts the Secret</h3><p><strong>🏛️ HQ decodes internally:</strong> <em>a=0, e=4, c=2 → 042</em></p><p>HQ decodes “aec” using the same codebook. The secret is <strong>042</strong>. At this moment, both sides hold the same three values:</p><pre>Spy&#39;s codename:  007<br>HQ&#39;s codename:   001<br>Secret:          042</pre><p>Nobody else in the world has all three.</p><h3>Step 6 — Both Sides Independently Derive the Session Key</h3><p><strong>🕵️ Spy computes. 🏛️ HQ computes. Neither says a word.</strong></p><p>Both the spy and HQ now independently apply the same agreed formula — add the three values digit by digit:</p><p>First digit = Client Random’s First Digit + Server Random’s First Digit + Secret First Digit</p><p>Second digit = Client Random’s Second Digit + Server Random’s Second Digit + Secret Second Digit</p><p>Third digit = Client Random’s ThirdDigit + Server Random’s Third Digit + Secret Third Digit</p><pre>0 + 0 + 0 = 0<br>0 + 0 + 4 = 4<br>7 + 1 + 2 = 10</pre><pre>Session Key = 0, 4, 10</pre><p>Same inputs. Same formula. Same result — on both ends — without ever announcing it on the call. Anyone who listened heard 007, 001, and “aec” — but cannot arrive at <strong>0, 4, 10</strong> without knowing all three inputs and the formula.</p><p><strong>In TLS</strong>: neither side uses the Pre-Master Secret directly. Both independently run the same mathematical formula — the PRF (Pseudo-Random Function) — across all three values: Client Random + Server Random + Pre-Master Secret. The output is identical on both sides: the <strong>Session Key</strong> — without it ever crossing the wire.</p><h3>Step 7 — Confirmation and Channel Open</h3><p><strong>🏛️ HQ:</strong> <em>“dsq”</em> <strong>🕵️ Spy decodes:</strong> <em>d−0=d, s−4=o, q−10=g → “dog” ✔</em></p><p>HQ tests the channel by encoding the word <strong>“dog”</strong> using the session key shift (0, 4, 10): d+0 = <strong>d</strong>, o+4 = <strong>s</strong>, g+10 = <strong>q</strong> → HQ says <strong>“dsq”</strong></p><p>The spy decodes it: d−0=<strong>d</strong>, s−4=<strong>o</strong>, q−10=<strong>g</strong> → <strong>“dog”</strong>. It makes sense. Both sides derived the exact same key independently. The spy sends back their own encoded confirmation. Both succeed — the secure channel is open.</p><p><strong>In TLS</strong>: both sides send a <strong>Finished</strong> message encrypted with the new session key. This is the test: if the other side decrypts it correctly, the keys match. If anything was tampered with during the handshake, this step fails and the connection is torn down immediately.</p><h3>The Full Flow at a Glance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/1*5NM7thDnL6dxdvIdNBHhIg.png" /></figure><h3>The Certificate Authority — The Trust Anchor</h3><p>A critical question remains: when the server sends its certificate, how does the client know the certificate is genuine and not forged by an attacker?</p><p>This is where <strong>Certificate Authorities</strong> come in. A CA is a trusted third party — like DigiCert, Let’s Encrypt, or GlobalSign — whose entire purpose is to verify identities and issue certificates.</p><p>Here is how the chain of trust works:</p><ol><li>The server generates a public-private key pair and submits its public key and domain information to a CA</li><li>The CA verifies the server genuinely controls that domain (through DNS or file-based challenges)</li><li>The CA signs the certificate using its own private key</li><li>Your device comes pre-installed with the public keys of approximately 150 trusted CAs, called <strong>Root Certificates</strong></li><li>When your device receives a certificate, it verifies the CA signature using the pre-installed Root Certificate</li><li>If the signature is valid, the chain of trust is established</li></ol><p>Back to our spy analogy: the CA is like the intelligence agency’s central command. Before the mission, they load the spy’s codebook with the verified signatures of all trusted HQ stations. When HQ answers the call and presents their certificate, the spy flips to the right page in the codebook and checks the signature — no need to call anyone else. If it matches, the caller is genuine. If it doesn’t, the spy hangs up.</p><h3>Why Tampering Is Mathematically Impossible</h3><p>Suppose a hacker sits between the client and server, capturing every packet. Can they tamper with the data in transit?</p><p><strong>During the handshake:</strong></p><ul><li>If they modify the certificate, the CA’s signature verification fails and the connection is immediately rejected</li><li>If they try to intercept the Pre-Master Secret, it is encrypted with the server’s public key — only the server’s private key can decrypt it</li><li>If they forge a certificate pretending to be the real server, they cannot get a valid CA signature for a domain they don’t control</li></ul><p><strong>After the handshake:</strong></p><ul><li>All data is encrypted with the session key, which was never transmitted</li><li>TLS includes a <strong>Message Authentication Code (MAC)</strong> with every record. If even a single bit is changed in transit, the MAC check fails and the data is discarded</li><li>A hacker can capture packets all day long and see nothing but meaningless ciphertext</li></ul><h3>The Cleverest Part: How the Session Key Is Never Sent</h3><p>Let’s spend a moment on the most elegant aspect of TLS — the fact that both sides arrive at the same session key without ever transmitting it.</p><p>Think of it with a simple colour-mixing illustration:</p><pre>Public knowledge (both sides know):   Base colour = Yellow</pre><pre>Client&#39;s private colour:  Blue  (never shared)<br>Server&#39;s private colour:  Red   (never shared)</pre><pre>Client sends:  Yellow + Blue = Green  (sent publicly)<br>Server sends:  Yellow + Red  = Orange (sent publicly)</pre><pre>Client mixes:  Orange + Blue = Brown<br>Server mixes:  Green  + Red  = Brown</pre><pre>Both arrive at Brown — without Brown ever crossing the wire.<br>A hacker has Yellow, Green, and Orange — cannot reconstruct Brown.</pre><p>This is the intuition behind <strong>Diffie-Hellman key exchange</strong> — the mathematical mechanism TLS 1.3 uses. The actual numbers involved are astronomically large prime numbers rather than colours, making it computationally infeasible to reverse. But the principle is identical.</p><h3>A Note on TLS 1.3 — The Current Standard</h3><p>Everything described above applies to TLS 1.3, which is the current standard and what you should specify in any new system.</p><h3>Putting It All Together</h3><p>The next time you see a padlock in your browser, here is what just happened in the preceding 200 milliseconds:</p><ul><li>Your device and the server agreed on which encryption algorithms to use</li><li>The server proved its identity through a certificate signed by a CA you already trust</li><li>Both sides used asymmetric cryptography to securely exchange the ingredients for a shared secret — without ever sending the secret itself</li><li>Both sides independently derived the same session key from those ingredients</li><li>Every byte of data from that point forward is encrypted, authenticated, and tamper-proof</li></ul><p>The spy dialled HQ. A fraudster could have answered — but the codebook caught it instantly. HQ’s certificate checked out. They agreed on a cipher without ever saying it aloud. The spy is now transmitting intelligence that sounds like pure noise to anyone listening on the line. Nobody else can decode a word.</p><p><strong>That is TLS.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1a7c2804c84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CloudHub vs. On-Premise vs. RTF: The Analogy That Finally Made It Click for Me]]></title>
            <link>https://medium.com/@sushobhit.khanna9/cloudhub-vs-on-premise-vs-rtf-the-analogy-that-finally-made-it-click-for-me-e117ebcf663d?source=rss-24adcbbca22c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e117ebcf663d</guid>
            <category><![CDATA[mulesoft]]></category>
            <category><![CDATA[enterprise-architecture]]></category>
            <category><![CDATA[mulesoft-professional]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Sushobhit Khanna]]></dc:creator>
            <pubDate>Sat, 21 Mar 2026 15:05:05 GMT</pubDate>
            <atom:updated>2026-03-21T15:05:05.244Z</atom:updated>
            <content:encoded><![CDATA[<p>I have worked on enough RFPs and consultations to notice a pattern — so many customers don’t struggle with <em>building</em> on MuleSoft. They struggle with deciding <em>where</em> it should live. And that one decision shapes everything: your security posture, your maintenance burden, your ability to scale under pressure.</p><p>So based on my experience, here is the breakdown of which sectors are using which deployment model. To understand this, first let’s understand the models themselves — because once this analogy clicked for me, I never forgot it.</p><h3>The Real Estate of Connectivity</h3><p>In enterprise integration, deciding where your applications “live” is just as important as how they are built. You aren’t just writing code — you are choosing a <em>home</em> for your digital assets.</p><p>Think of it like the real estate market. You have three options: move into a managed hostel, buy your own house, or live in a gated society. Each has its own trade-offs between comfort, control, and cost.</p><h3>1. CloudHub: The “PG Hostel” Model</h3><p>CloudHub is a fully managed Integration Platform as a Service (iPaaS). It is designed for speed and simplicity.</p><p><strong>The Analogy:</strong> You show up with your luggage (your code) and move into a fully furnished room. The owner — MuleSoft — provides the furniture, electricity, Wi-Fi, and security. You don’t worry about any of it.</p><p><strong>The Technical Reality:</strong> MuleSoft manages the entire stack — from physical hardware and the operating system all the way down to the Java Runtime. You focus solely on building and deploying your flows via the Anypoint Platform.</p><p><strong>Who lives here?</strong></p><ul><li><strong>Retail &amp; E-commerce:</strong> Companies that need to scale instantly for Black Friday or holiday spikes. They can’t afford downtime and don’t want to babysit servers.</li><li><strong>Tech Startups:</strong> Lean teams that don’t have the budget or bandwidth to hire a dedicated infrastructure crew.</li></ul><p><strong>Key Driver: Speed to Market.</strong></p><h3>2. On-Premise: The “Standalone House” Model</h3><p>This is the traditional customer-hosted model where you install the Mule Runtime on your own physical or virtual servers.</p><p><strong>The Analogy:</strong> You own the land, the bricks, and the locks. Total privacy, total control. But if a pipe bursts (a server fails) or the roof needs fixing (an OS patch is due), that’s on you.</p><p><strong>The Technical Reality:</strong> You have 100% control over server configuration and the underlying JVM. In exchange, you are responsible for patching, security updates, and the full hardware lifecycle.</p><p><strong>Who lives here?</strong></p><ul><li><strong>Banking &amp; Finance (BFSI):</strong> Organizations with strict PCI-DSS or internal security mandates that require data to stay within a physical, private firewall.</li><li><strong>Government:</strong> Agencies handling sensitive citizen data that legally cannot reside on a public cloud.</li></ul><p><strong>Key Driver: Compliance &amp; Total Control.</strong></p><h3>3. Runtime Fabric (RTF): The “Gated Society” Model</h3><p>RTF is a container-based hybrid model. It brings the CloudHub experience into your own private data center or Virtual Private Cloud (VPC).</p><p><strong>The Analogy:</strong> You own the land — your AWS, Azure, or private VMs — but you’ve hired a professional Society Management team. They build standardized, well-maintained units on your property, managed by a central authority. The best of both worlds.</p><p><strong>The Technical Reality:</strong> RTF uses Docker to package apps into isolated, portable containers and Kubernetes to orchestrate them. You get the one-click deployment feel of CloudHub while keeping your data on your own infrastructure.</p><p><strong>Who lives here?</strong></p><ul><li><strong>Healthcare &amp; Insurance:</strong> Organizations modernizing their stacks who want cloud-native techniques without moving patient records outside their private boundaries.</li></ul><p><strong>Key Driver: Modernization + Data Privacy.</strong></p><h3>The Construction Crew: Why Docker and Kubernetes Matter</h3><p>In the “Gated Society” model, two technologies act as your construction and management team:</p><p><strong>Docker (The Builder):</strong> Docker creates a pre-fabricated unit. Every dependency — libraries, settings, OS — is packed inside the box. The unit works exactly the same whether it’s running on your laptop or in a production environment.</p><p><strong>Kubernetes (The Society Manager):</strong> Kubernetes is your high-tech building manager. If a unit breaks (a container crashes), it replaces it instantly. If 1,000 visitors arrive at the gate, the manager spins up five more identical units in seconds to handle the load.</p><p>Below image summarizes the above mentioned article with analogy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*GgwsR1vXYUevQ_SUD6Zitg.png" /></figure><h3>So, Who Is Actually Using What? My Experience from the Field</h3><p>After working across multiple RFPs and architectural consultations, here is the pattern I consistently see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*9jHqrf94zawsEef4IbNNhQ.png" /></figure><p>This isn’t just theory. These are the conversations I’ve had in real boardrooms and architecture reviews.</p><h3>Final Thoughts</h3><p>Choosing a deployment model is really about one trade-off: <strong>Control vs. Convenience.</strong></p><ul><li>Want to focus on innovation and ship fast? Move into the CloudHub hostel.</li><li>Dealing with data that is practically a state secret? Build your On-Premises house.</li><li>Want modern cloud management on your own land? The RTF gated society is your answer.</li></ul><p>In 2026, the industry is clearly moving toward container-based models like CloudHub 2.0 and RTF — they offer the isolation of a private house with the convenience of a managed service.</p><p>Choose the home that fits your strategy today. But keep one eye on where the market is moving tomorrow.</p><p><em>Which model has your team landed on — and what drove that decision? I’d love to hear in the comments.</em></p><p><strong>Answer 4 quick questions and find out which deployment model matches your organization’s needs.</strong></p><p><a href="https://codepen.io/Sushobhit-Khanna/pen/vEXJbze">Which MuleSoft Deployment Model Is Right for You?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e117ebcf663d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>