<?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 Nagarjun Rajendran on Medium]]></title>
        <description><![CDATA[Stories by Nagarjun Rajendran on Medium]]></description>
        <link>https://medium.com/@nagarjunr?source=rss-5a3f809f5c93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Nagarjun Rajendran on Medium</title>
            <link>https://medium.com/@nagarjunr?source=rss-5a3f809f5c93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:13:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nagarjunr/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[How AI Changed Documentation Forever (And What You Need to Do About It)]]></title>
            <link>https://medium.com/@nagarjunr/how-ai-changed-documentation-forever-and-what-you-need-to-do-about-it-af943b1aa7f1?source=rss-5a3f809f5c93------2</link>
            <guid isPermaLink="false">https://medium.com/p/af943b1aa7f1</guid>
            <category><![CDATA[ai-engineering]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[architecture-in-practice]]></category>
            <dc:creator><![CDATA[Nagarjun Rajendran]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 17:27:00 GMT</pubDate>
            <atom:updated>2026-02-02T17:27:00.359Z</atom:updated>
            <content:encoded><![CDATA[<p>For decades, we have documented our work the same way. Write detailed specs. Create step-by-step guides. Build knowledge bases that explain every edge case.</p><p>That approach is dying.</p><p>AI systems, especially agentic AI, do not read documentation the way humans do. They need structure, not stories. Context, not conversations. And we need to rethink how we capture knowledge if we want AI to actually help us.</p><h3>The Old Way Is Breaking</h3><p>Traditional documentation assumes a human reader. Someone who can infer meaning, connect dots, and adapt instructions to their specific situation.</p><p>AI agents cannot do that. At least not reliably.</p><p>When you tell a human “configure the database connection,” they know to look for credentials, check firewall rules, and verify network access. An AI agent? It might just update a config file and call it done.</p><p>The gap is not in the AI. The gap is in how we document.</p><h3>What AI Actually Needs</h3><p>AI systems need three things that most documentation does not provide well:</p><p><strong>1. Machine-readable structure</strong></p><p>Not PDFs. Not Word docs with creative formatting. JSON schemas. YAML configs. Structured data that AI can parse without guessing.</p><p><strong>2. Explicit context</strong></p><p>AI cannot assume. If your documentation says “use the standard process,” you need to define what standard means. Every time.</p><p><strong>3. Executable examples</strong></p><p>Code snippets are not enough. AI needs runnable examples with expected inputs and outputs. Otherwise it is just guessing.</p><h3>How Documentation Needs to Change</h3><p>Here is what works now:</p><p><strong>Separate human docs from machine docs</strong></p><p>Your README.md can stay friendly and narrative. But add structured files (like OpenAPI specs or JSON schemas) that AI can consume directly. Do not try to make one document serve both audiences.</p><p><strong>Add metadata everywhere</strong></p><p>Tags. Categories. Relationships. AI uses these to navigate your documentation. A well-tagged knowledge base is 10x more useful to an agent than a beautifully written essay.</p><p><strong>Version your documentation like code</strong></p><p>AI needs to know which version of your docs matches which version of your code. Use the same version control. Same release tags. Same everything.</p><p><strong>Write for retrieval, not reading</strong></p><p>Humans read top-to-bottom. AI retrieves based on queries. Structure your docs so each section can stand alone. Repeat context. Accept redundancy.</p><h3>The Agentic AI Twist</h3><p>Traditional AI tools are assistants. They answer questions.</p><p>Agentic AI takes actions. It deploys code. Configures systems. Makes decisions.</p><p>That changes everything about documentation requirements.</p><p>You need to document not just what something does, but:</p><ul><li>What permissions it needs</li><li>What it should never do</li><li>How to verify it worked</li><li>How to roll it back if it did not</li></ul><p>This is not just good practice anymore. It is required.</p><h3>What This Means For Your Team</h3><p>Start documenting differently:</p><p><strong>For developers</strong>: Add structured schemas alongside your prose. Make your API docs machine-readable. Include example requests and responses.</p><p><strong>For architects</strong>: Document decision boundaries. What can AI decide automatically? What needs human approval? Be explicit.</p><p><strong>For operations</strong>: Create runbooks that AI can follow. Include verification steps. Define success criteria.</p><p><strong>For everyone</strong>: Stop writing documentation for future you. Start writing it for AI that needs to help future you.</p><h3>The Bottom Line</h3><p>AI has not made documentation less important. It made it more important, but in different ways.</p><p>The question is not whether to change how you document. The question is whether you change now or later, when your team is already struggling because AI cannot understand your existing docs.</p><p>The choice is simple. Document for the tools you are actually using, not the ones you wish you had.</p><p><em>What is your biggest documentation challenge when working with AI systems? How are you adapting your documentation practices?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af943b1aa7f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your HTTPS Tools Fail Behind a Corporate Proxy — And How to Fix It]]></title>
            <link>https://medium.com/@nagarjunr/why-your-https-tools-fail-behind-a-corporate-proxy-and-how-to-fix-it-155deb31a707?source=rss-5a3f809f5c93------2</link>
            <guid isPermaLink="false">https://medium.com/p/155deb31a707</guid>
            <category><![CDATA[ssl-issues]]></category>
            <category><![CDATA[ssl-validation]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[proxy]]></category>
            <category><![CDATA[corporate-proxy]]></category>
            <dc:creator><![CDATA[Nagarjun Rajendran]]></dc:creator>
            <pubDate>Sun, 01 Feb 2026 07:25:54 GMT</pubDate>
            <atom:updated>2026-02-01T07:31:43.987Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Your HTTPS Tools Fail Behind a Corporate Proxy — And How to Fix It</h3><p>One of the most frustrating blockers in corporate environments is the silent havoc caused by SSL and proxy errors. These issues don’t just fail fast — they fail obscurely, consuming hours while you’re debugging what should have been a 2-minute setup. This becomes especially painful when you’re setting up a new machine, configuring a fresh dev environment, or onboarding a project under time pressure.</p><p>I’ve seen countless developers — including experienced ones — hit this wall again and again. And what’s worse, it’s often a repeat offender because no one documents the fix properly. This guide is meant to change that.</p><p><em>This guide helps you fix SSL certificate errors caused by HTTPS proxies on corporate networks. Although this guide focuses on the AWS CLI, the issue and fix apply to any tool or application that makes HTTPS requests.</em></p><h3>🔍 The Problem (And Why It Happens)</h3><p>When you’re behind a corporate network and try to run a command like:</p><pre>aws sts get-caller-identity<br>aws sso login</pre><p>You might see an error like:</p><pre>SSL validation failed: unable to get issuer certificate</pre><p>This is not an AWS-specific problem. It can happen with any HTTPS client (e.g. curl, Python scripts, APIs, CLIs) when corporate proxies perform <strong>TLS inspection</strong>.</p><h3>🔐 What Is TLS Inspection?</h3><p>TLS (formerly SSL) protects data in transit over HTTPS. But many corporate proxies <strong>intercept HTTPS connections</strong> to inspect encrypted traffic for security and compliance.</p><h4>What actually happens:</h4><ul><li>Your client requests <a href="https://service.example.com/">https://service.example.com</a></li><li>Instead of connecting directly, your traffic goes through a corporate proxy</li><li>The proxy terminates the TLS connection and establishes a new one to the destination</li><li>It then re-signs the certificate with a <strong>corporate CA</strong></li></ul><p><strong>Your machine sees a different certificate</strong> than the original server’s — and it won’t trust it unless the <strong>corporate CA is installed.</strong></p><h3>📉 Why You Get SSL Errors</h3><p>The AWS CLI (and other secure clients) validate the certificate chain for every HTTPS connection.</p><p>If the certificate chain looks like:</p><pre>service.example.com<br>  ↳ Corporate Intermediate CA<br>      ↳ Corporate Root CA  ❌ (missing or untrusted)</pre><p>Then you’ll get:</p><pre>SSL: CERTIFICATE_VERIFY_FAILED</pre><p>The fix is simple: you need to tell your tool to trust the full certificate chain.</p><h3>🛠️ Step-by-Step Fix (macOS)</h3><p>This guide assumes you’re behind a corporate proxy and using macOS. You can adapt the steps to other systems.</p><h3>✅ 1. Export Your Company’s Root &amp; Intermediate Certificates</h3><ol><li>Open Chrome or Edge</li><li>Go to any HTTPS website (like <a href="https://www.google.com/">https://www.google.com</a>)</li><li>Click the lock icon → <strong>Connection is secure</strong> → <strong>Certificate is valid</strong></li><li>Look at the <strong>full chain</strong></li><li>Export the <strong>Root CA</strong> and <strong>Intermediate CA </strong>(Often the Proxy Certificate)<strong> </strong>as .pem files</li></ol><p>Save them as:</p><pre>corp-root-ca.pem<br>corp-intermediate-ca.pem</pre><h3>✅ 2. Combine the Certs into a Single File</h3><pre>cat corp-root-ca.pem corp-intermediate-ca.pem &gt; trusted-ca-chain.pem</pre><h3>✅ 3. Configure AWS CLI to Use This Chain</h3><pre>export AWS_CA_BUNDLE=$HOME/trusted-ca-chain.pem<br>export HTTPS_PROXY=http://your-proxy-host:port<br>export HTTP_PROXY=http://your-proxy-host:port</pre><h3>✅ 4. Test Your Setup</h3><pre>aws sts get-caller-identity</pre><p>Or for SSO:</p><pre>aws sso login --profile your-profile</pre><p>If the CA chain is correct, this will work.</p><h3>✅ 5. Make It Permanent</h3><p>Add this to your ~/.zshrc or ~/.bash_profile:</p><pre>export AWS_CA_BUNDLE=&quot;$HOME/trusted-ca-chain.pem&quot;<br>export HTTPS_PROXY=&quot;http://your-proxy-host:port&quot;<br>export HTTP_PROXY=&quot;http://your-proxy-host:port&quot;</pre><p>Then run:</p><pre>source ~/.zshrc  # or .bash_profile</pre><h3>📈 Diagrams to Understand TLS Interception</h3><h3>🔁 Without Proxy</h3><pre>You             Internet<br> |                |<br> |--- HTTPS ---&gt;  |  (direct TLS handshake)</pre><h3>🕵️ With Corporate Proxy + TLS Inspection</h3><pre>You             Proxy           Internet<br> |                |                |<br> |-- HTTPS --&gt;    |                |<br> |                |-- HTTPS --&gt;    |<br> |&lt;--- Signed by Corporate CA ---&gt; |</pre><p>Your system receives a certificate <strong>not signed by a public CA</strong>, but by the <strong>proxy’s own CA</strong>, which must be explicitly trusted.</p><h3>🧠 Final Notes</h3><ul><li>This issue affects <strong>any HTTPS client</strong>, not just AWS CLI</li><li>If your company uses tools like <strong>Zscaler, Blue Coat, Palo Alto</strong>, etc., you’re likely affected</li><li>curl, pip, Python scripts, Java apps, etc. will all fail until the right CA is trusted</li><li>Always verify with: curl -v --proxy ... <a href="https://example.com/">https://example.com</a></li></ul><h3>✅ Key Takeaways</h3><ul><li>SSL errors behind proxies = trust issues</li><li>Export and trust the <strong>root + intermediate CA</strong></li><li>Use AWS_CA_BUNDLE to point to them</li><li>Works for all tools that respect system certs or custom CA bundles</li></ul><p>You only need to fix it once — then your tools will just work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=155deb31a707" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Internet of Things 101 — An end-to-end IoT Journey]]></title>
            <link>https://medium.com/@nagarjunr/internet-of-things-101-an-end-to-end-iot-journey-6d8ea5cfe13c?source=rss-5a3f809f5c93------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d8ea5cfe13c</guid>
            <dc:creator><![CDATA[Nagarjun Rajendran]]></dc:creator>
            <pubDate>Fri, 31 Jul 2020 12:29:06 GMT</pubDate>
            <atom:updated>2020-07-31T12:29:06.760Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Internet of Things 101 — An end-to-end IoT Journey</strong></h3><p>Often developers who wanted to learn a new domain or technology from scratch are stuck with where to start. Are you one among those who want to spend your spare time kick-starting an IoT learning journey with hands-on? Then you are in the right place.</p><p>To begin with, before going into the details, we need to understand the bare minimal building blocks of an end-to-end IoT solution,</p><ul><li>Devices (Sensors + Gateways)</li><li>Connectivity (Device to Cloud Communication)</li><li>Backend (Data Ingestion + Storage logics)</li><li>Database (Data Store)</li><li>Frontend (Real-time visualization)</li></ul><p>Once you were able to pick and assemble all the above components and get it running, you can consider exploring the following to deepen your knowledge,</p><ul><li>Command and Control (For Devices)</li><li>Data Analytics (Together with Frontend Visualization)</li></ul><p>Nowadays there are many IoT devices with connectivity feature available out in the market that you can buy for less than $5. The most commonly available devices that you can start with are ranging from low-cost devices like ESP32/ESP8266 and Arduino to medium and high-cost devices like Raspberry Pi, OrangePi, Cubieboard, Azure Sphere MT3620 Starter Kit and STM B-L475E-IOT01A (For RTOS) to name a few.</p><p>Irrespective of any technical background you are coming from, there are quite a handful of programming languages, which are very easy to pick up. Python, being one of the most versatile programming languages could be an option for the entire solution development right from device data acquisition to the backend web development. Besides, you can also consider C, NodeJS, and Java for devices and backend software development. If you are from an embedded software background and are new to web application development, it is worthwhile to read about the LAMP &amp; MEAN web-stacks.</p><p>During this Covid-19 lockdown, I started developing an end-to-end IoT solution that monitors the home ambience including temperature, humidity, luminosity, and noise levels and adjust back my lighting and air conditioners to the optimal levels. Few things I have considered before starting this project are scalability, modularization, platform-independence, and cloud independence. I also wanted to develop this solution with provisions for additional use-cases in the future. This is also something you can consider before you start your project.</p><p>The end-to-end block diagram of the complete solution is as follows,</p><figure><img alt="Block Diagram" src="https://cdn-images-1.medium.com/max/1024/1*R89zGLVzIUGsCbzhBb_kHw.jpeg" /><figcaption>Architecture Block Diagram</figcaption></figure><p>I have chosen Raspberry Pi together with the GrovePi shield for the data acquisition layer for the aforementioned use-case. GrovePi is a sensor shield for RaspberryPi that comes with sensor interfacing middleware. I have chosen RaspberryPi and GrovePi mainly because of two reasons: cost and ease of development. It comes with a mid-price range and has a lot of room for sensor interfacing.</p><p>For web application development and REST endpoints, I have chosen Python Django and Django Rest Framework (DRF) respectively. DRF is a full-fledged REST framework that also comes with an authentication layer for the devices that connect to the endpoint. Though Python is not the most popular language for Web stack development, I have chosen it due to its programming simplicity and pseudo-code like syntaxes, which are very easy to learn. For the Web UI development, Python views and template libraries were used. Besides Python web framework libraries, custom HTML, CSS, and Javascript together with third-party libraries like Bootstrap and ChartJS are also used.</p><p>For the data store, I have chosen a free cloud instance of MongoDB provided by MongoDB Atlas project. There is no specific reason for choosing MongoDB, expect it is a free instance. You can pick any relational or non-relational database based on the use-case and how you want to store the data and operate on. Generally, non-relational databases are preferred for IoT data due to its simplicity in handling a variety of file and data formats.</p><p>The backend web server and the application are created as a container and is hosted in Microsoft Azure. The container is built using Python 3.8 together with Nginx and Gunicorn server for serving static and dynamic web contents respectively.</p><p>The following are some of the images, and screenshots from the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbHaLv4Cwza0-CuKiGWspQ.jpeg" /><figcaption>Raspberry Pi with Grove Pi shield and sensors</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHM_mc9-4MWE39zySyJ2Hw.png" /><figcaption>IoT Dashboard — Home</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UCo4SPUfEs3RsaY_Ax9u2g.png" /><figcaption>IoT Dashboard — Real-time Visualizations</figcaption></figure><p>Next steps on this project is to integrate command and control of the lights and air conditioners to switch on and off based on the ambience and optimal settings. The recent electricity bills are quite high and I hope I can save some after this solution.</p><p>Do you also have similar use-cases in your mind that you want to start or some interesting usecases that you have worked on during this Covid? I would love to hear more about it. Feel free to get in touch!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d8ea5cfe13c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>