<?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 Krishnendu Bhowmick on Medium]]></title>
        <description><![CDATA[Stories by Krishnendu Bhowmick on Medium]]></description>
        <link>https://medium.com/@krishnendubhowmick?source=rss-1dad22fc18ce------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Pd4MzAg1Uku5sMeib8hiYw.png</url>
            <title>Stories by Krishnendu Bhowmick on Medium</title>
            <link>https://medium.com/@krishnendubhowmick?source=rss-1dad22fc18ce------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:19:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@krishnendubhowmick/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[From the Pitch to Your Pocket: How One Ball Reaches Your Cricbuzz Screen]]></title>
            <link>https://krishnendubhowmick.medium.com/from-the-pitch-to-your-pocket-how-one-ball-reaches-your-cricbuzz-screen-be346a1a69e3?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/be346a1a69e3</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Mon, 30 Nov 2026 14:01:02 GMT</pubDate>
            <atom:updated>2026-11-30T14:01:02.612Z</atom:updated>
            <content:encoded><![CDATA[<h4>Every big match, so many of us keep refreshing the score. Here is the engineering story of those few seconds, with the real tech behind each step.</h4><figure><img alt="A glowing cricket ball flying out of a floodlit stadium along a trail of light into a phone that shows SIX" src="https://cdn-images-1.medium.com/max/1024/1*rr06Y4tKNyqZFKD9e3xJHQ.png" /><figcaption>Illustration created for this story</figcaption></figure><p>Last over. Twelve needed. You are stuck in an office meeting, or in an auto, or at a family function where the TV is not an option.</p><p>Suddenly the neighbour’s house shouts. Your thumb already knows the way. You open Cricbuzz under the table, and there it is: <strong>SIX.</strong> Six needed from five. The app looks so calm, as if nothing special happened.</p><p>We all have done this at least once. But have you ever wondered how that one ball, bowled on a ground far away, reached your pocket in a few seconds, at the same moment it reached so many other pockets?</p><p>Cricbuzz has not shared its internal design publicly, so I will not pretend to show their blueprint. Instead, let me walk you through how live score systems like this are usually built, with the real tools you would pick, by following one single ball.</p><h3>The journey at a glance</h3><figure><img alt="The journey of one ball: scorer app, API Gateway with a write service on EKS, Kafka topic per match, then three roads: Redis and CloudFront for polling, SSE or WebSocket servers behind a load balancer, and SNS with FCM and APNs for notifications" src="https://cdn-images-1.medium.com/max/1024/1*xt0la3ZAp2-Qqmg7R4rYEA.png" /><figcaption>One ball, three roads to your phone, with a typical AWS-style stack</figcaption></figure><p>The ball is born in the scorer’s app. A gatekeeper (the write API) checks it and gives it a number. It goes into an ordered ledger (a Kafka topic). From there it takes three roads to you: a scoreboard copied to noticeboards near you (Redis plus a CDN), a radio for fans glued to the match (SSE or WebSockets), and a town crier who knocks on your door (push notifications).</p><h3>Stop 1: the gatekeeper who checks tickets, not seats</h3><p>When the batter clears long-on, a scorer taps a few keys in a scoring app. Our ball is now a tiny record: over 19.4, six runs, batter, bowler, one line of commentary.</p><p>That record first meets the <strong>gatekeeper</strong>. In a real system this is the write path: an entry point like <strong>Amazon API Gateway</strong>, or <strong>Nginx</strong> or an <strong>Application Load Balancer</strong>, in front of a small write service running as pods on <strong>Kubernetes (Amazon EKS)</strong>. Its main job is simple to say: let each ball in exactly once. Stadium networks are weak, so the scorer’s app sometimes sends the same ball twice. Count both, and the score jumps by twelve instead of six.</p><p>The easy idea is to check the ball’s position. “Ball 19.4 already came, so reject anything else called 19.4.” Every cricket fan understands 19.4, so it feels perfect.</p><p>But cricket has a beautiful little trap. Under the MCC (Marylebone Cricket Club) Laws of Cricket, a wide does not count as one of the balls of the over. So after a wide at 19.4, the next delivery is also 19.4. Same position, two different balls.</p><figure><img alt="Two deliveries share seat 19.4: a wide and then a six. A write API checking seat numbers throws away the six; a write API checking ticket numbers keeps both" src="https://cdn-images-1.medium.com/max/1024/1*FpBp_NGaiQ99UO0zPKQSDA.png" /><figcaption>Same seat, two different tickets. Only the ticket-checking write API keeps the six.</figcaption></figure><p>Think of a stadium gate. Two people can sit in seat 19.4 on the same evening, one after another, but each has a different ticket. So a smart gatekeeper checks tickets, not seats.</p><p>I tried this in a small experiment: one final over with a wide at 19.4, a six off the re-bowled ball, a scorer correction, and one ball sent twice like a weak network would. The seat-checking gatekeeper caught the duplicate, but it also threw away the six and the correction. The score came out <strong>7 runs short</strong>. The ticket-checking gatekeeper got it exactly right.</p><p>In real tools, the gatekeeper’s rules look like this:</p><ol><li><strong>Every ball carries a ticket.</strong> The scorer app sends a unique event ID and reuses it on retry. The write service remembers IDs it has seen, for example with a <strong>Redis</strong> SET using the NX option (set only if the key does not exist), or a <strong>DynamoDB conditional write</strong> with attribute_not_exists, which simply fails for a duplicate.</li><li><strong>Every accepted ball gets a number in line.</strong> After the check, the ball gets the next sequence number for its match. Keep one owner per match, or let the database refuse a ball whose previous number does not match.</li><li><strong>Mistakes are fixed with new entries.</strong> A correction is a new event pointing at the ball it fixes. Nothing is erased.</li><li><strong>Only what is saved gets announced.</strong> Saving and publishing are two steps, and the second can fail. A transactional outbox or change data capture (for example <strong>DynamoDB Streams</strong> or <strong>Debezium</strong>) publishes only what was really committed.</li></ol><h3>Stop 2: the ledger that is read in order</h3><p>Next, the ball is written into a <strong>ledger</strong> for its match. In real life this is usually a log like <strong>Apache Kafka</strong> (on AWS, <strong>Amazon MSK</strong>), or an <strong>Amazon SQS FIFO</strong> queue.</p><p>Here, order is everything. A total does not care about order, but the current ball, the batters after a wicket, the partnership and the required run rate all do. If many workers process balls in whatever order they finish, the scoreboard can jump backwards. In the same experiment, processing the over in random order showed the wrong current ball in 866 out of 1,000 runs. Once, the over was finished and the app proudly showed 19.2.</p><p>Two habits fix it:</p><ul><li><strong>One partition per match.</strong> Kafka sends all events with the same key to the same partition and keeps them in order there, so use match_id as the key. SQS FIFO does the same with a message group ID. Different matches still run in parallel.</li><li><strong>A bookmark in every reader.</strong> Each consumer applies ball five only after ball four, and saves its position (its offset or last sequence number). With this, the experiment never showed a wrong score.</li></ul><h3>Stop 3: the scoreboard painter and the noticeboards</h3><p>The first reader is the <strong>scoreboard painter</strong>: a consumer service, again a few pods on EKS, that updates the full scorecard after every ball and keeps the ready-made picture in a fast cache like <strong>Redis (Amazon ElastiCache)</strong>. Painting once and showing the painting is much cheaper than recalculating for every request.</p><p>Now the crowd. Most score apps quietly ask every few seconds, “What is the score now?” That is polling. It is simple and easy to cache, but in a close finish it becomes a huge rush.</p><p>So the scorecard is copied onto <strong>noticeboards</strong> near you. That is a CDN like <strong>Amazon CloudFront</strong> (or Akamai, Cloudflare and friends). Each copy is trusted for just one second. A one-second-old score is fine; sending the whole crowd to the main server is not.</p><p>There is one gap. When a copy expires, everybody arriving at that moment finds an empty board. The fix is to send only one runner: one request goes to fetch the fresh copy while the others wait for it. CloudFront calls this request collapsing, and it does it for requests with the same cache key at the same edge location. If you run your own cache, <strong>Nginx</strong> offers the same idea with proxy_cache_lock, which lets only one request at a time fill a missing cache entry.</p><figure><img alt="Fans near three CloudFront edge locations; each edge sends one request per second through Origin Shield to the origin, a load balancer and pods on EKS reading the scorecard from Redis. Experiment numbers: thousands of origin hits without caching, a few hundred without collapsing, only five with collapsing" src="https://cdn-images-1.medium.com/max/1024/1*NatPvXYAqgT6I4pX0iAJqw.png" /><figcaption>One runner per noticeboard per second, so the origin stays relaxed</figcaption></figure><p>I built a tiny version of this on one computer: an origin that counts requests, a one-second cache in front, and 200 clients asking nonstop for five seconds. Without the cache, thousands of requests hit the origin. With the cache but no single runner, still a few hundred got through. With the single runner, the origin got only <strong>5 requests in 5 seconds</strong>. With four caches, it got 20.</p><p>That last number matters: the runner works per edge, not for the whole country. CloudFront adds regional edge caches in the middle, and <strong>Origin Shield</strong> adds one more layer in front of your origin so that, in AWS’s words, as few as one request reaches it. Two settings decide whether this works: keep cookies and personal headers out of the cache key, and let the response be cached (something like Cache-Control: public, max-age=1).</p><h3>Stop 4: the radio and the town crier</h3><p>Some fans are glued to the match. For them, the app can keep a line open and let the server talk whenever a ball happens, like a <strong>radio</strong> that stays on. Two common choices:</p><ul><li><strong>Server-Sent Events (SSE):</strong> a one-way stream over normal HTTP. The browser reconnects by itself and can send the last event ID it heard, so the server resends only what was missed. Perfect for a scoreboard.</li><li><strong>WebSockets:</strong> a two-way line, useful for chat or live polls. On AWS you can run SSE or WebSocket servers on EKS behind an <strong>Application Load Balancer</strong>, which supports WebSockets natively, or use <strong>API Gateway WebSocket APIs</strong>.</li></ul><p>Open lines cost memory, and a server restart can make thousands of radios reconnect at once. So many systems stream only to people actively watching and let everyone else use the noticeboard.</p><figure><img alt="Three roads from the Kafka ledger to your phone: polling through CloudFront, a radio stream through SSE or WebSocket servers behind a load balancer, and a town crier through SNS to FCM and APNs that reaches some phones later" src="https://cdn-images-1.medium.com/max/1024/1*y2KFjL-kV-oOR6DO-4p9SQ.png" /><figcaption>Three roads to your phone, each good at a different job</figcaption></figure><p>The last road is the <strong>town crier</strong>: the “SIX! 6 needed from 5” notification on your lock screen. A notification worker sends it through <strong>Firebase Cloud Messaging (FCM)</strong> for Android and the <strong>Apple Push Notification service (APNs)</strong> for iPhones, often via a service like <strong>Amazon SNS mobile push</strong>.</p><p>It feels instant, but it is not. Google’s documentation says FCM topic messages are built for throughput, not low delay, and mentions that around 10,000 messages per second per project is not unusual, though not guaranteed. At that speed, one crore subscribers would take roughly 17 minutes to all hear the news. Apple’s one-to-many broadcast push works only for Live Activities (iOS 18 and later). So the town crier is a polite tap on the shoulder, not the source of truth. When you open the app, it shows the latest scorecard, not the old message.</p><h3>When the journey goes wrong</h3><ul><li><strong>The vanished six:</strong> the gatekeeper checked seats, not tickets. Use event IDs with Redis or DynamoDB checks.</li><li><strong>The score that went back in time:</strong> no partition per match, no bookmark. Key Kafka by match_id and track offsets.</li><li><strong>The stampede at every expiry:</strong> a cache without request collapsing, or cookies in the cache key. Turn on collapsing and Origin Shield.</li><li><strong>The reconnect storm:</strong> every radio reconnecting together after a deploy. Add random backoff and resume from the last event ID.</li><li><strong>The late six:</strong> a notification arriving after the over. Send fewer, meaningful pushes and trust the stream or the poll for freshness.</li></ul><h3>The art behind the score</h3><p>Look at that calm little screen again. One ball typed by a scorer, checked by an API gateway that counts tickets, not seats, written into a Kafka partition that is read in order, painted into Redis, copied to CloudFront edges with one runner each, played on a radio for the glued fans, and carried door to door by the town crier for everyone else.</p><p>None of these tools is magic. The beauty is in how they fit, each one quietly protecting the next from a mistake it cannot see. That is the part of engineering that feels like art to me: not the tools, but the choices about what to count, what to keep in order, what to copy, and what can be a little late.</p><p>And one honest lesson: do not build all of this if you do not need it. A small app is fine with a cached endpoint and no streaming tier at all.</p><h3>References</h3><ul><li>MCC Laws of Cricket, Law 22 (Wide ball): <a href="https://www.lords.org/mcc/the-laws-of-cricket">https://www.lords.org/mcc/the-laws-of-cricket</a></li><li>Amazon CloudFront, request collapsing (simultaneous requests for the same object): <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html">https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/RequestAndResponseBehaviorCustomOrigin.html</a></li><li>Amazon CloudFront, Origin Shield: <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html">https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/origin-shield.html</a></li><li>NGINX, ngx_http_proxy_module (proxy_cache_lock): <a href="https://nginx.org/en/docs/http/ngx_http_proxy_module.html">https://nginx.org/en/docs/http/ngx_http_proxy_module.html</a></li><li>Apache Kafka introduction: <a href="https://kafka.apache.org/intro">https://kafka.apache.org/intro</a></li><li>Amazon SQS FIFO delivery logic: <a href="https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html">https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html</a></li><li>Amazon DynamoDB condition expressions: <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html">https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html</a></li><li>Elastic Load Balancing FAQs (WebSockets on ALB): <a href="https://aws.amazon.com/elasticloadbalancing/faqs/">https://aws.amazon.com/elasticloadbalancing/faqs/</a></li><li>Amazon API Gateway WebSocket APIs: <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html">https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api.html</a></li><li>WHATWG HTML Standard, Server-sent events: <a href="https://html.spec.whatwg.org/multipage/server-sent-events.html">https://html.spec.whatwg.org/multipage/server-sent-events.html</a></li><li>Amazon SNS mobile push notifications: <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-mobile-application-as-subscriber.html">https://docs.aws.amazon.com/sns/latest/dg/sns-mobile-application-as-subscriber.html</a></li><li>Firebase Cloud Messaging, topic messaging and quotas: <a href="https://firebase.google.com/docs/cloud-messaging/throttling-and-quotas">https://firebase.google.com/docs/cloud-messaging/throttling-and-quotas</a></li><li>Apple, Setting up broadcast push notifications: <a href="https://developer.apple.com/documentation/usernotifications/setting-up-broadcast-push-notifications">https://developer.apple.com/documentation/usernotifications/setting-up-broadcast-push-notifications</a></li></ul><p><em>If this story made you look at your score app a little differently, follow me here on Medium. I write simple stories about how real systems work behind the screens we use every day.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be346a1a69e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java4Shell: You Updated Java. Did You Fix the Running Application?]]></title>
            <link>https://krishnendubhowmick.medium.com/java4shell-you-updated-java-did-you-fix-the-running-application-091e0081fc0e?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/091e0081fc0e</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 14:01:01 GMT</pubDate>
            <atom:updated>2026-11-22T14:01:01.849Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to assess CVE-2026–114938 across JVM builds, CPU capabilities, and deployments, then verify that the fix reached your services.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBsapSDj3yq_1uPB09M2tA.png" /></figure><p>A Java update finishes. The deployment turns green. Someone asks whether Java4Shell is handled.</p><p>Before answering, ask a smaller question: <strong>which Java runtime is actually serving the application?</strong></p><p>Then ask where it is running, which startup options it received, and what will happen when the next replica starts.</p><p>Those questions turn a security headline into an operational response. They also reveal why a patch dashboard can be an incomplete record of remediation.</p><h3>What Java4Shell actually affects</h3><p>Java4Shell, tracked as <strong>CVE-2026–114938</strong>, is a memory-corruption vulnerability in OpenJDK’s optimized Base64 decoder. On affected systems, malformed input can corrupt heap memory and potentially enable information disclosure, crashes, or remote code execution. Calif, the researchers who disclosed it, report that exploitation depends on the application; there is no universal exploit that works against every Java service. <a href="https://calif.io/java4shell">Calif’s technical disclosure</a>.</p><p>That distinction matters. A product name in a headline is a reason to investigate your deployment, not a complete assessment of it.</p><p>Base64 appears in authentication data and other ordinary application inputs. You do not need a feature labelled “Base64 processing” in your product backlog for the decoder to matter.</p><h3>Inside the JVM: how the vulnerable path is reached</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OXdeJN8odSENIs9dD4ybNA.png" /></figure><p><em>From untrusted input to the affected decoder. RCE depends on an application-specific exploitation chain.</em></p><p>Follow the request across the layers. The application receives encoded input and calls the Base64 decoder. On an affected JVM with the required CPU capabilities, decoding can use HotSpot’s optimized native routine.</p><p>The flaw is in that routine’s handling of the padded tail. An incorrect write mask permits a write beyond the decoder’s output buffer. Neighboring heap objects can be corrupted before Java rejects the malformed input. <a href="https://calif.io/java4shell">Calif’s technical explanation</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zbnnxgqRWDjFxGzD-UigoQ.png" /></figure><p><em>The decoder output buffer shares the heap with other objects. An excess write can cross that boundary.</em></p><p>The important architectural boundary is between the Java API and the JVM implementation underneath it. Memory safety at the application language level does not eliminate implementation bugs in optimized native code. A decoder exception therefore cannot, by itself, establish that the request caused no earlier damage.</p><h3>Assess the runtime, hardware, and input path together</h3><p>Red Hat’s advisory describes a combination of conditions: an affected OpenJDK build, x86–64 hardware exposing AVX-512 VBMI, an enabled vulnerable optimization, and application processing of attacker-controlled Base64 input. <a href="https://access.redhat.com/security/vulnerabilities/RHSB-2026-018">Red Hat’s exposure conditions</a>.</p><p>For triage, record four things together:</p><ul><li><strong>Runtime:</strong> vendor and full build used by the service.</li><li><strong>Hardware:</strong> capabilities visible inside the actual execution environment.</li><li><strong>Configuration:</strong> the optimization and mitigation state of the running JVM.</li><li><strong>Reachability:</strong> where untrusted input can reach decoding.</li></ul><p>An unknown field stays unknown. Avoid turning an incomplete inventory into an “unaffected” label.</p><p>Calif identifies the affected OpenJDK code from 17.0.6 onward and notes that ARM64 is outside this hardware-specific issue. That starting point is useful for finding candidates; your vendor’s current advisory determines whether a particular build includes the fix. <a href="https://calif.io/java4shell">Calif’s affected-products guidance</a>.</p><h3>The copy of Java you updated may belong to another process</h3><p>Imagine a server with an operating-system Java package and an application that ships its own runtime. Updating the first leaves you with a question about the second.</p><p>IBM explicitly warns webMethods users that operating-system updates do not change a product’s bundled runtime. Its guidance starts by identifying the Java executable the product actually uses. <a href="https://www.ibm.com/support/pages/node/7297472">IBM’s runtime identification guidance</a>.</p><p>For your response record, connect the service name to its process, executable, vendor, and complete build. With a container, add the deployed image digest. With a vendor appliance, record the supported product update path.</p><p>Do the same for background workers and build agents. A list of customer-facing URLs is a useful starting inventory, but it is a poor substitute for a list of running Java workloads.</p><p>The practical test is whether another engineer can trace the advisory to the exact runtime behind the service.</p><h3>A mitigation in a file is still waiting to become a runtime setting</h3><p>Red Hat recommends <strong>-XX:-UseBASE64Intrinsics</strong> as the preferred temporary mitigation while awaiting an applicable update. It disables the accelerated Base64 implementation. Its broader alternative, -XX:UseAVX=2, must be limited to x86-64: applying that option to ARM64 JVMs can prevent startup. <a href="https://access.redhat.com/security/vulnerabilities/RHSB-2026-018">Red Hat&#39;s mitigation guidance</a>.</p><p>Apply a mitigation through the application’s supported startup mechanism. Preserve existing options, plan the restart, and confirm the resulting process state. IBM’s product guidance likewise requires validation against the runtime in use and verification after restart. <a href="https://www.ibm.com/support/pages/node/7297472">IBM’s mitigation procedure</a>.</p><p>I would keep three separate entries in the response record: configuration changed, process replaced, runtime setting verified. Each entry answers a different question.</p><p>Then check representative application behavior. A JVM that starts successfully still needs to serve its workload correctly. Compare latency and resource use with your normal baseline rather than promising that a temporary optimization change has no performance cost.</p><h3>Check what the next deployment will bring back</h3><p>Now consider the lifecycle around that process.</p><p>A running container can have the intended runtime while a deployment template still references an older image. A replacement instance can boot from an older machine image. A rollback can restore an artifact that predates the mitigation.</p><p>These are deployment questions worth reviewing alongside the immediate change:</p><ul><li>Does the source-controlled startup configuration contain the intended setting?</li><li>Does the deployment reference the approved runtime artifact?</li><li>Will an autoscaled or failover instance receive the same configuration?</li><li>Which rollback artifact is approved while remediation is in progress?</li></ul><p>Hardware belongs in that review too. If your exposure assessment depends on CPU capabilities, preserve that finding with the workload’s placement assumptions. Reassess when those assumptions change.</p><p>This is where platform teams can make the response durable: put the approved state into the mechanisms that recreate the service.</p><h3>Make the closure record useful to the next engineer</h3><p>Oracle included Java security fixes in its November 2026 Critical Security Patch Update. Use the relevant runtime or product vendor’s release guidance when selecting the update; avoid applying one distributor’s version labels to another distributor’s packages. <a href="https://www.oracle.com/security-alerts/cspunov2026.html">Oracle’s November security advisory</a>.</p><p>For each service, keep a short record of the chosen fix, deployed artifact, verification time, and owner. Include whether the current state is a temporary mitigation or a patched runtime, and which follow-up remains.</p><p>“Updated Java” is hard to audit months later. A record connecting the service to its running build, configuration, and replacement artifact gives the next engineer something they can check.</p><p>That is the habit Java4Shell should leave behind: <strong>follow the fix all the way to the process, then into the deployment that will replace it.</strong></p><h3>💬 Where would you look first?</h3><p>Your team says, “Java is patched.” What would you check next?</p><ul><li>🔍 The runtime bundled with the application?</li><li>⚙️ The flags on the running JVM?</li><li>📦 The image that the next deployment will use?</li></ul><p>Tell me which check is easiest to miss in your environment, and what helped your team catch it. Keep internal details private.</p><p>🔖 Save the checklist for your next runtime update.</p><p>🚀 Follow me for practical DevOps breakdowns that connect security advisories to the systems we actually operate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=091e0081fc0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PHP2Shell: How to Verify That Your Running PHP Application Is Patched]]></title>
            <link>https://krishnendubhowmick.medium.com/php2shell-how-to-verify-that-your-running-php-application-is-patched-473538361de9?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/473538361de9</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Sun, 01 Nov 2026 03:31:01 GMT</pubDate>
            <atom:updated>2026-11-01T03:31:01.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>Trace the fix from the security advisory to the application actually handling requests.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A9rzvd8owSEE2T1mOts_wg.png" /></figure><p>When a critical PHP advisory lands, updating a package is an obvious first step. Closing the incident requires more evidence.</p><p>Which PHP installation did you update? Does the web server use it? Have all application instances been replaced? Does the application still work?</p><p>These are the operational questions behind a useful PHP2Shell response.</p><p>PHP2Shell refers to CVE-2026–109618 and CVE-2026–109619. Cloudflare’s disclosure describes potential remote code execution, denial of service, and data exposure when affected applications process specially crafted HTTP traffic. <a href="https://blog.cloudflare.com/php-vulnerabilities-waf-protection/">Cloudflare disclosure.</a></p><p>This walkthrough explains how to investigate patch status and verify the deployed application. It has not yet been validated in the author’s environment. Security sources were checked on October 31, 2026.</p><h3>Find the PHP runtime behind the request</h3><p>Begin with the path a request follows through your application: client → proxy or load balancer → web server → PHP runtime → application dependencies.</p><p>Your environment may combine these components or distribute them across several machines. Identify the actual hosts, containers, and replicas before choosing an update procedure.</p><p>Check background workers and scheduled jobs too. Record them separately so that web exposure and other uses of PHP remain clear.</p><p>If PHP is available in the terminal on the application host, start with these commands. The example uses PowerShell; run it on the intended host, rather than assuming your workstation’s PHP installation matches the application.</p><pre>php -v<br>if ($LASTEXITCODE -ne 0) {<br>    throw &quot;PHP version check failed.&quot;<br>}<br>php --ini<br>if ($LASTEXITCODE -ne 0) {<br>    throw &quot;PHP configuration check failed.&quot;<br>}</pre><p>Record the version, build information, executable location, and configuration files.</p><p>These results describe the CLI runtime. Establish separately which runtime the web server uses. A correct CLI version does not establish the state of PHP-FPM workers, an Apache module, or another serving process.</p><h3>Match the installation to the right security fix</h3><p>PHP’s October 21 security releases included versions 8.2.35, 8.3.36, 8.4.27, and 8.5.12. Check the applicable branch and subsequent security guidance when selecting the release to deploy. <a href="https://www.php.net/archive/2026.php">PHP release archive.</a></p><p>For a vendor-maintained installation, use that vendor’s advisory and complete package revision to establish patch status. Record both the advisory and the installed artifact.</p><p>For containers, Docker recommends updating affected PHP images and rebuilding and redeploying applications that depend on them. <a href="https://www.docker.com/blog/security-update-on-php2shell-impact-for-docker-customers/">Docker security guidance.</a></p><p>If your application uses Docker, inspect its container from a PowerShell terminal connected to the intended lab daemon. Replace the placeholder with the exact container name.</p><pre>$ContainerName = &#39;&lt;your-lab-application-container&gt;&#39;<br>docker inspect --format &#39;{{.Id}} {{.Image}} {{.Config.Image}}&#39; $ContainerName<br>if ($LASTEXITCODE -ne 0) {<br>    throw &quot;Container inspection failed.&quot;<br>}<br>docker exec $ContainerName php -v<br>if ($LASTEXITCODE -ne 0) {<br>    throw &quot;PHP version check inside the container failed.&quot;<br>}</pre><p>Save the container ID, image ID, configured image reference, and PHP version together. They help connect a running instance to its deployment artifact.</p><p>The PHP command still checks the CLI binary inside that container. Compare it with the serving process before treating it as evidence of web-runtime patch status.</p><h3>Replace running instances and investigate differences</h3><p>Apply the fix through your normal deployment mechanism. The exact package, build, restart, and rollout commands depend on the operating system and deployment model.</p><p>After deployment, compare the approved artifact with every instance intended to receive traffic.</p><p>If an instance reports an unexpected build, investigate before declaring the rollout complete. Check whether an old replica remains active, the deployment references an older artifact, or the web server uses a different PHP installation.</p><p>Treat each explanation as a hypothesis. Use deployment records, process information, and instance-specific checks to establish which one applies.</p><p>For runtime identification, prefer existing internal diagnostics. If you need a temporary endpoint, restrict it to the isolated lab and expose only the minimum information required. Avoid publishing a full phpinfo() page.</p><h3>Check application behaviour after the update</h3><p>Patch verification and application validation answer different questions. You need evidence for both.</p><p>From a PowerShell terminal on a machine that can reach the lab application, request its health endpoint. Replace this illustrative URL with the real endpoint.</p><pre>$HealthUrl = &#39;https://your-lab-app.example/health&#39;<br>$Response = Invoke-WebRequest -Uri $HealthUrl -UseBasicParsing<br>$Response.StatusCode<br>$Response.Content</pre><p>Compare the response with the application’s documented healthy condition. A successful HTTP response establishes that this request succeeded; it does not establish that every replica is patched.</p><p>Repeat representative application operations as well. Depending on the service, these might include authentication, file uploads, database access, session handling, and background-job processing.</p><p>Keep the checks consistent before and after the change so that differences are meaningful.</p><h3>Decide what the evidence supports</h3><p>A completed verification should connect four things:</p><ul><li>The applicable security advisory and approved fixed build.</li><li>The artifact deployed to each intended serving instance.</li><li>The PHP runtime handling requests.</li><li>Successful representative application checks after replacement.</li></ul><p>No execution results are available for this walkthrough yet. These are completion criteria, not observed outcomes.</p><p>Even after successful validation, keep the conclusion narrow: the checks establish the recorded patch and application state at the time of testing. They do not establish that no earlier compromise occurred.</p><h3>Keep the exercise scoped and clean up afterward</h3><p>Use an isolated application for the demonstration. Exploit traffic is unnecessary for this workflow.</p><p>Account for image downloads, registry storage, CI builds, and hosted compute when choosing the lab. Confirm any applicable charges rather than assuming the exercise is free.</p><p>Remove temporary diagnostic endpoints and lab-only access rules after collecting evidence. Stop disposable resources using their recorded identities. Preserve redacted runtime records, artifact identifiers, deployment results, and application checks.</p><p>A useful patch record allows another engineer to follow the fix all the way to the application serving requests.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=473538361de9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[After the Binance Hack: Testing What a DevOps Identity Can Actually Do]]></title>
            <link>https://krishnendubhowmick.medium.com/after-the-binance-hack-testing-what-a-devops-identity-can-actually-do-3595d64bb246?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/3595d64bb246</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[incident-response]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Sat, 31 Oct 2026 13:31:01 GMT</pubDate>
            <atom:updated>2026-10-31T13:31:01.601Z</atom:updated>
            <content:encoded><![CDATA[<h3>A practical review of operational permissions, sensitive operations, and credential revocation.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0cwHlcExlxhrnU9Oeoogw.png" /></figure><p>An engineer’s access often spans several systems: a deployment platform, application workloads, logs, secrets, and internal services.</p><p>When an operational identity is compromised, the investigation needs to establish which of those paths were available and what actions they permitted.</p><p>Binance’s October 30, 2026 update reported approximately $6.3 billion in stolen assets. The company said an initial investigation suggested a compromised laptop, while subsequent investigation uncovered additional breach points. It also said there was no evidence of leaked wallet private keys at that stage. The full attack sequence remained under investigation. <a href="https://www.binance.com/en/support/announcement/detail/d3306d9dca5243548c813b605e1d1751">Read Binance’s incident update.</a></p><p>That is an incomplete incident account. It should not be turned into a definitive explanation of how the attack succeeded. This article reflects the October 30 update, checked on October 31, 2026.</p><p>For DevOps engineers, a useful independent exercise is to test the permissions available to an operational identity and verify what happens when those permissions or credentials are withdrawn.</p><p>This walkthrough proposes that exercise. It does not reproduce Binance’s architecture, and it has not yet been executed in the author’s environment.</p><h3>Map the paths from operational access to application authority</h3><p>Start with an access map for your own lab: engineer identity → deployment platform → application workload → sensitive-operation service. Add the workload identity that calls the service, and investigate whether the engineer identity has a direct route to it.</p><p>For each connection, identify the credential, its permissions, its lifetime, and the audit records available.</p><p>Pay attention to indirect authority. An identity may lack permission to call a sensitive service directly but still have permission to change a workload that holds the necessary credentials.</p><p>That makes workload modification, interactive shell access, and secret access relevant parts of the review.</p><h3>Define the operations the identity should be allowed to perform</h3><p>Write down the intended policy before running tests. A lab operational identity might be allowed to read deployment health, while reading application secrets or opening a shell in a sensitive workload requires an explicit operating need.</p><p>Changes to sensitive workloads should follow a controlled release path. Submitting a sensitive application operation should require its own application authorization.</p><p>Adjust these decisions to the service’s actual operating needs. The goal is to make permissions explicit enough that a test can confirm or challenge each decision.</p><h3>Check the deployment platform’s authorization</h3><p>If Kubernetes is your confirmed lab platform, use kubectl auth can-i to query specific API permissions. Checking another identity with impersonation requires appropriate authorization. <a href="https://kubernetes.io/docs/reference/kubectl/generated/kubectl_auth/kubectl_auth_can-i/">Kubernetes documents the command and its options.</a></p><p>From PowerShell on the machine holding your lab kubeconfig, set the exact context, namespace, and test identity. These are placeholders for an isolated lab, not production settings.</p><pre>$LabContext = &#39;&lt;your-lab-context&gt;&#39;<br>$LabNamespace = &#39;&lt;your-lab-namespace&gt;&#39;<br>$TestIdentity = &#39;&lt;your-test-identity&gt;&#39;</pre><p>Check one operation at a time and record both the answer and exit status.</p><pre>kubectl --context $LabContext auth can-i get deployments `<br>    --namespace $LabNamespace --as $TestIdentity</pre><pre>$CheckExitCode = $LASTEXITCODE<br>&quot;Exit code: $CheckExitCode&quot;</pre><p>Repeat the check for permissions relevant to the access paths you identified. Capture each result and its exit status before running the next command.</p><pre>kubectl --context $LabContext auth can-i get secrets `<br>    --namespace $LabNamespace --as $TestIdentity</pre><pre>kubectl --context $LabContext auth can-i create pods/exec `<br>    --namespace $LabNamespace --as $TestIdentity</pre><pre>kubectl --context $LabContext auth can-i patch deployments `<br>    --namespace $LabNamespace --as $TestIdentity</pre><p>Distinguish an authorization answer from a connection, authentication, or impersonation error. An error can leave the test unresolved.</p><p>These checks concern Kubernetes API authorization. They do not establish whether the identity can perform an operation inside the application.</p><h3>Test the application boundary with a harmless operation</h3><p>Use a disposable service and dummy data for the application-level test. Choose an operation with no financial or production effect. Establish that the authorized application identity can perform it, then attempt the same operation using the operational identity.</p><p>Record the identity, requested action, response, and matching server-side audit event.</p><p>If the operational identity has intentionally excessive permissions in the lab, narrow them and repeat the test. Confirm that the prohibited operation is rejected while the legitimate operation still succeeds.</p><p>A rejected request needs supporting evidence. Check that authorization caused the rejection, rather than a network failure, malformed request, or unrelated application error.</p><p>The service implementation and request commands depend on the identity platform selected for the lab. Those details remain to be confirmed.</p><h3>Verify revocation using the original credential</h3><p>Permission changes and credential revocation require separate checks.</p><p>After establishing a successful harmless request, revoke the disposable credential or its associated access. Then repeat the request using the same credential. Record the revocation time and subsequent request results. Keep the credential out of terminal transcripts and screenshots.</p><p>Testing with a newly issued credential would leave the original credential’s behaviour unresolved.</p><p>The result depends on the credential type and validation mechanism. For Kubernetes service-account tokens, consult the documented lifecycle and invalidation behaviour when designing the test. <a href="https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/">Kubernetes service-account documentation.</a></p><p>No revocation delay has been measured for this walkthrough. Any timing claim needs the token type, expiry, validation path, timestamps, and observation window.</p><h3>Record the result without extending the claim</h3><p>A completed demonstration should show which operational actions remain available, which sensitive actions are denied, and how the original credential behaves after revocation.</p><p>Preserve legitimate access checks alongside denied requests. Otherwise, a broken service could be mistaken for successful access control.</p><p>These results would describe the tested identities, operations, and configuration. They would not establish the security of every access path or explain the Binance incident.</p><h3>Remove the test access and preserve the useful evidence</h3><p>Use disposable identities, dummy data, and isolated services. Hosted compute, identity services, and audit-log retention may incur charges.</p><p>After testing, revoke remaining disposable credentials. Remove only the identities, bindings, and services recorded as lab-created resources. Preserve redacted policy revisions, request results, audit events, and revocation timestamps.</p><p>The useful outcome is a repeatable access review: an engineer should be able to compare intended permissions with observed behaviour and investigate any difference.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3595d64bb246" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Mount S3 Buckets as File Systems in AWS (Amazon S3 Files Tutorial 2026)]]></title>
            <link>https://krishnendubhowmick.medium.com/amazon-s3-files-native-file-system-access-to-your-s3-data-launched-recently-a320144e6b8e?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/a320144e6b8e</guid>
            <category><![CDATA[amazon-s3-files-tutorial]]></category>
            <category><![CDATA[aws-s3-mount-nfs]]></category>
            <category><![CDATA[mount-s3-bucket-as-drive]]></category>
            <category><![CDATA[s3-file-system-access]]></category>
            <category><![CDATA[s3-files-vs-efs]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 02:55:49 GMT</pubDate>
            <atom:updated>2026-11-22T06:02:09.608Z</atom:updated>
            <content:encoded><![CDATA[<p><em>No more data shuffling between S3 and your file systems. Here’s everything you need to know, along with a hands-on walkthrough to get started in minutes.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCWhxYDmhBoR10_fF4P79g.png" /></figure><h3>The problem S3 Files solves</h3><p>If you’ve been running workloads on AWS long enough, you’ve hit this wall: your data lives in S3, which is cheap, durable, and infinitely scalable, but your application wants a file system. Machine learning pipelines, genomics tools, media encoding, and agentic AI all speak POSIX, not PutObject.</p><p>So what did we do before today? We copied data. S3 to EFS. S3 to EBS. S3 to FSx. Process. Copy back. Rinse and repeat. That means:</p><ol><li><strong><em>Duplicate storage costs:-</em></strong> The same dataset lives in two places at the same time. You pay twice.</li><li><strong><em>Sync complexity:-</em></strong> Custom scripts to shuttle data back and forth. Another thing that can break at 2 AM.</li><li><strong><em>Concurrency failures:-</em></strong> Mountpoint for S3 is great for streaming but breaks the moment multiple processes try to write concurrently.</li><li><strong><em>Governance headaches:-</em></strong> Multiple copies of sensitive data in multiple locations. Compliance teams are not happy.</li></ol><p>S3 Files fixes all of this. Your S3 bucket stays the single source of truth. You just get a proper file system mounted on top of it.</p><h3>What is Amazon S3 Files?</h3><p>Amazon S3 Files is a new AWS resource launched on April 7, 2026. It gives you native file system access to any S3 general purpose bucket. AWS describes it as the first native file system with access to cloud object storage.</p><p>Under the hood, it’s built on Amazon EFS (Elastic File System). That means the same battle-tested, multi-AZ file system infrastructure. However, instead of the EFS storage tier being the source of truth, your S3 bucket is. The file system tier acts as an intelligent, high-performance cache layer on top of S3.</p><p><strong>Key insight:</strong><br> S3 Files does not copy your data into a new storage system. Your objects remain in S3. The file system layer dynamically loads only what is being accessed, and writes sync back to S3 automatically within about 60 seconds.</p><p>At a high level, here’s what you get:</p><ul><li>Mount any S3 bucket (or a prefix within it) as a file system on EC2, ECS, EKS, Lambda, or Fargate</li><li>Full NFS v4.1+ support. Commands like ls, mkdir, cp, rm, rename, and chmod all work</li><li>Around 1 ms read latency for active data, and up to 3 GiBps per client throughput</li><li>Automatic bidirectional sync between file system and S3 bucket (via Amazon EventBridge)</li><li>Available globally in all commercial AWS Regions from day one</li></ul><h3>Key features</h3><h4>Intelligent synchronization</h4><p>S3 Files doesn’t blindly copy your entire bucket into the file system. It’s smart about what it pulls in and when:</p><ul><li><strong>Metadata sync is immediate.</strong> When the file system is created, all file/directory metadata is synced instantly. So ls works right away without waiting.</li><li><strong>Small files (&lt;128 KB) are pre-loaded on directory access.</strong> When you cd into a directory, files under 128 KB are automatically pulled in. Perfect for config files, code, and small datasets.</li><li><strong>Large files (≥1 MB reads) are served directly from S3.</strong> No file system copy is created; data streams straight from S3 for maximum throughput. This also means no file system storage charge for those reads.</li><li><strong>Unused data auto-expires.</strong> By default, data not accessed in 30 days is removed from the file system tier (but stays safe in S3). It’ll rehydrate automatically next time you access it.</li></ul><h4>Bidirectional sync with EventBridge</h4><p>Any file you write through the file system syncs back to S3 as a new object version within about 60 seconds. Changes made directly to S3 objects (via the API, another tool, another region, etc.) are picked up by EventBridge and reflected in the file system automatically. Your bucket is always the single source of truth.</p><h4>Compute compatibility</h4><p>S3 Files works with anything that can mount an NFS volume:</p><ul><li>Amazon EC2 (any Linux instance: Amazon Linux, Ubuntu, RHEL, etc.)</li><li>Amazon ECS (task definitions)</li><li>Amazon EKS (via the EFS CSI driver, same driver works for S3 Files)</li><li>AWS Fargate</li><li>AWS Lambda</li></ul><h4>Security</h4><ul><li>All data encrypted in transit with TLS 1.3</li><li>At-rest encryption via SSE-S3 or SSE-KMS (your choice)</li><li>POSIX permissions (UID/GID) stored as S3 object metadata</li><li>IAM resource policies for both file system access and compute attachment</li><li>Full CloudTrail audit logging and CloudWatch metrics</li></ul><h3>How billing works</h3><p>S3 Files adds two dimensions on top of your regular S3 costs. There are no provisioned IOPS, no capacity planning, no surprises: you pay for what you use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*ZWITQfYIRRUctBVGr0LIhA.png" /></figure><p>On top of S3 Files charges, you still pay standard S3 charges: PUT/GET requests for sync operations, and storage for objects in S3 itself. These are the same charges you’d have whether you use S3 Files or not.</p><p>For current pricing numbers, check the <a href="https://aws.amazon.com/s3/pricing/">Amazon S3 Pricing page</a> (S3 Files pricing is listed there).</p><h3>Architecture diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*YajYdzJbhEKfUFDIun729w.png" /></figure><h3>Prerequisites</h3><p>Before you create your first S3 file system, you need a few things in place. Nothing crazy, here’s the checklist:</p><ol><li><strong>General purpose S3 bucket:-</strong> S3 Files works with general purpose buckets only (not directory buckets or table buckets). Create one in your target region if you don’t have one already.</li><li><strong>Enable bucket versioning:-</strong> This is mandatory. S3 Files uses versioning to manage sync between file system changes and S3 objects. Without it, file system creation will fail with an error telling you to enable versioning first.</li><li><strong>Choose encryption type:-</strong> Your bucket must use SSE-S3 (default) or SSE-KMS. If you’re using a customer-managed KMS key, your S3 Files IAM role will also need KMS permissions (GenerateDataKey, Encrypt, Decrypt, etc.).</li><li><strong>EC2 instance with NFS v4.1 support:-</strong> You need a Linux EC2 instance in the same VPC/region as your bucket. Amazon Linux 2023 works great; NFS client is available by default.</li><li><strong>Install amazon-efs-utils (v3.0.0+):-</strong> S3 Files uses the amazon-efs-utils package for mounting. On Amazon Linux: sudo yum install amazon-efs-utils. On other distros: use the installer script shown below.</li><li><strong>Security group for NFS:-</strong> The mount target’s security group needs inbound NFS (TCP port 2049) allowed from your EC2 instance’s security group. When you create S3 Files via the console, it does some of this automatically, but you need to make sure the rule exists.</li><li><strong>IAM role for the EC2 client:</strong> Attach an instance role using the current AWS S3 Files client permissions. My original lab screenshots show AmazonS3FullAccess as a demonstration shortcut; that policy alone is not the production permission model. AWS documents AmazonS3FilesClientFullAccess for an introductory client lab. For production, scope client access to the intended file system and S3 resources using the AWS prerequisite policies, and keep the service role used for bucket synchronization separate.</li></ol><h3>Step-by-step: create, attach, and mount</h3><p>Let me walk through the full flow. I did this hands-on in my account (ap-south-1, Mumbai). I’ll narrate each step clearly so you can follow along.</p><h4>Step 1: Create an S3 bucket and enable versioning</h4><p>Go to Amazon S3 → Buckets → Create bucket. Pick a name (I used amzn-s3files-test), choose General Purpose as the bucket type, leave ACLs disabled, keep <em>Bucket Versioning</em> enable and create it. <em>Bucket Versioning </em>required, else you’ll see a red error if you skip it when trying to create the file system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlpRex5BKqErclKhgJSiBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uCSbEYjRqdyAxEWarGNdRg.png" /></figure><h4>Step 2: Upload some test files</h4><p>Upload a few test files to your bucket. I uploaded a simple testupload.txt. You can upload to the root of the bucket, or to a prefix (like mydata/) if you only want to expose part of the bucket as a file system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skSN1Dd2nqilDr4Zpf-w2g.png" /></figure><h4>Step 3: Create the S3 file system</h4><p>In the Amazon S3 console, look for File systems in the left nav (under <em>Files</em> section). Click Create file system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*35W2a6Au8yJvpQCTfLWClw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zbGunPjf0KBtZ6-oT8aaA.png" /></figure><p>Browse your bucket path in the format s3://bucket-name or s3://bucket-name/prefix/. Select your VPC. If versioning isn&#39;t enabled yet, you&#39;ll see the red warning. Click &quot;Enable Bucket Versioning&quot; right there and it&#39;ll enable it for you.</p><p>Click Create file system. AWS automatically creates the IAM role (S3FilesRole) and sub-resources including mount targets for each AZ in your VPC.</p><p><strong><em>What just happened:- </em></strong><em>AWS automatically created: an IAM service role with S3 + EventBridge permissions, mount targets in each AZ of your VPC, and an EventBridge rule to detect S3 changes. The file system status goes from “Creating” to “Available” in about 2–3 minutes.</em></p><h4>Step 4: Review the auto-created IAM role</h4><p>Click on the IAM role link in the file system overview. You’ll see a customer-managed policy with permissions for s3:ListBucket, s3:GetObject, s3:PutObject, s3:DeleteObject, and EventBridge management. This is the role S3 Files assumes to sync data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lf4T7gaBcvK08JZkAo5xQ.png" /></figure><h4>Step 5: Launch EC2 instance and attach the right IAM role</h4><p>Launch (or use an existing) EC2 instance in the same VPC. My lab used Ubuntu 24.04 on t2.micro. Configure the instance role using the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-prereq-policies.html">current AWS client-role requirements</a>. For an introductory lab, AWS suggests AmazonS3FilesClientFullAccess; production policies should grant only the required actions on the intended resources. The broad AmazonS3FullAccess policy visible in my original screenshots was a lab shortcut. Add AmazonSSMManagedInstanceCore only if you use SSM Session Manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dZdpRl46AF7jHq-0jYx4TQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhqXz_FCLbuMSVpIDOYQ4g.png" /></figure><h4>Step 6: Security group: allow NFS from EC2</h4><p>Allow inbound TCP 2049 on the mount target security group from the EC2 instance security group. Ensure the EC2 security group allows outbound traffic to that destination on TCP 2049. Security groups are stateful: return traffic does not require a matching inbound NFS rule on EC2. Check network ACLs and routing separately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zC467LKPNERsASxsRENuuQ.png" /></figure><h4>Step 7: Install amazon-efs-utils on EC2</h4><p>SSH into your EC2 instance. Then:</p><p>For Amazon Linux, install from the AWS repository. On another supported distribution, download the installer from the URL in the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-prereq-policies.html">AWS prerequisites</a>, review it, and follow your organization’s software approval process before running it with sudo. Review makes execution explicit; it does not prove the script is safe. Use vendor signatures or independently trusted checksums when provided.</p><pre># Amazon Linux 2023<br>sudo yum install -y amazon-efs-utils</pre><pre># Other supported distributions: download first<br>curl --fail --show-error --location --proto &#39;=https&#39; --tlsv1.2 \<br>  <a href="https://amazon-efs-utils.aws.com/efs-utils-installer.sh">https://amazon-efs-utils.aws.com/efs-utils-installer.sh</a> \<br>  -o efs-utils-installer.sh<br>less efs-utils-installer.sh</pre><pre># Run only after review and approval<br>sudo sh efs-utils-installer.sh --install</pre><pre># Verify the installed client version (3.0.0 or above)<br>mount.s3files --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N34276pZ_MmnuTVbZlDoYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*F7ecJmb6EvrwSJfJSnY9sQ.png" /></figure><h4>Step 8: Mount the file system</h4><p>Create a mount point directory and mount your S3 file system. You need the file system ID from the console (format: fs-xxxxxxxxxxxx).</p><pre># Create the local mount directory<br>sudo mkdir -p /mnt/s3files</pre><pre># Mount the file system (replace fs-ID with yours)<br>sudo mount -t s3files fs-00f709b09488a4835:/ /mnt/s3files</pre><pre># Verify the mount<br>df -h | grep s3files<br># Should show something like: 127.0.0.1:/  8.0E  0  8.0E  0%  /mnt/s3files</pre><pre># List files (you should see your S3 objects immediately)<br>ls -la /mnt/s3files/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-xZlX3uftHz-H0UVTXNg6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nKj3YMSqzhTtdI7DtxKqeg.png" /></figure><h4>Step 9: Read and write files</h4><pre># Read an existing S3 object through the file system<br>cat /mnt/s3files/testupload.txt</pre><pre># Create a new file through the file system<br>echo &quot;Hello from S3 Files!&quot; | sudo tee /mnt/s3files/from-ec2.txt</pre><pre># Wait ~60 seconds, then verify it synced to S3<br>aws s3 ls s3://amzn-s3files-test/<br># from-ec2.txt should appear in the listing</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_--zZ8D6tHafopcRTXAiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E5BMkZgvhXcM7hMqwrvOCQ.png" /></figure><p>That’s it. Your file system is live. Files you write go to S3 within a minute. Files that exist in S3 are immediately visible in the mount point. No scripts, no data pipelines, no manual syncing.</p><h4>Optional: Mount at boot via fstab</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_-Vaylry3P-jFBAageP6NQ.png" /></figure><h3>S3 Files vs EFS vs Mountpoint vs FSx for Lustre</h3><p>This is the question I know everyone’s going to ask. Here’s the honest comparison:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*LxJeCg0TMVgMh_eRsKUWqA.png" /></figure><p><strong>When to use each</strong></p><ol><li><strong>Use S3 Files</strong> when your data is in S3 and you need file system access for interactive workloads: agentic AI, data curation, ML dataset prep, shared analytics.</li><li><strong>Use EFS </strong>when your primary workload is file-based permanently, you do heavy directory renames, or you need point-in-time snapshots and cross-region replication.</li><li><strong>Use FSx for Lustre</strong> when you need maximum per-client throughput for GPU clusters and HPC (think P4/P5 instances doing model training.</li><li><strong>Stick with Mountpoint</strong> only if you truly just need streaming reads and don’t want to pay for the S3 Files overhead.</li></ol><h3>Conclusion</h3><p>Amazon S3 Files is a genuinely useful launch. It’s not a gimmick. It solves a real, painful problem that most teams working with data-heavy workloads have been hacking around for years.</p><p>If you have data in S3 and applications that want a file system, you no longer have to choose. No more data pipelines to sync between storage tiers. No more duplicate copies. No more “it works on my file system but S3 doesn’t support that operation.”</p><h3>Found this useful?</h3><blockquote>I write about DevOps, AWS infrastructure, and real-world cloud engineering. Follow me on Medium to get notified when I post. No fluff, just real.</blockquote><p>Source:</p><p><a href="https://aws.amazon.com/blogs/aws/launching-s3-files-making-s3-buckets-accessible-as-file-systems/">https://aws.amazon.com/blogs/aws/launching-s3-files-making-s3-buckets-accessible-as-file-systems/</a></p><p><a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-getting-started.html">https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-files-getting-started.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a320144e6b8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LiteLLM Supply Chain Attack: How Hackers Stole 97M API Keys (March 2026 Analysis)]]></title>
            <link>https://krishnendubhowmick.medium.com/they-poisoned-the-package-that-holds-all-your-ai-keys-heres-what-actually-happened-1486cd019a5c?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/1486cd019a5c</guid>
            <category><![CDATA[litellm-attack]]></category>
            <category><![CDATA[pypi-backdoor]]></category>
            <category><![CDATA[dependency-attack]]></category>
            <category><![CDATA[litellm-vulnerability]]></category>
            <category><![CDATA[python-package-poisoning]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 10:55:50 GMT</pubDate>
            <atom:updated>2026-11-22T06:00:24.025Z</atom:updated>
            <content:encoded><![CDATA[<h3>LiteLLM Supply Chain Attack: What DevOps Engineers Need to Know (March 2026)</h3><p><em>A supply chain attack hit LiteLLM in March 2026. If you work in DevOps, MLOps, or you just care about the AI tools your company is using, you need to understand this one.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ezzJzOOamwiT0jWJz8_h6Q.png" /></figure><h3>First, Let Me Set the Stage</h3><p>You know how most people think of AI as ChatGPT, Claude, Copilot, Perplexity? That’s fine. But inside your company, the moment someone says “let’s plug AI into our product”, someone has to wire it all up behind the scenes. That’s usually a DevOps or MLOps engineer’s job.</p><p>One of the most popular tools for that job is LiteLLM. Think of it as a universal remote for AI. Instead of writing separate code to talk to OpenAI, Anthropic, Google, Amazon, and a dozen other AI providers, you point everything at LiteLLM and it handles the translation. It has 97 million downloads a month. NASA uses it. Netflix. Stripe. NVIDIA. Probably a company in your city uses it right now without knowing.</p><p>All your AI API keys flow through it. Every single one.</p><p>Now imagine someone poisons that tool.</p><h3>What Happened, Step by Step</h3><p>In March 2026, TeamPCP compromised the software supply chain leading to malicious LiteLLM releases. The public incident thread was opened on March 24, 2026.</p><p>Here is how it unfolded, in plain language.</p><p><strong>Step 1: They went after Trivy first.</strong></p><p>Trivy is a security scanning tool. It is the tool you run to check if your software is safe. TeamPCP compromised it. They grabbed credentials from a security tool, which is both ironic and extremely calculated.</p><p><strong>Step 2: LiteLLM uses Trivy in its own build pipeline.</strong></p><p>When LiteLLM’s automated systems ran their security scans using Trivy, those compromised credentials were right there. TeamPCP used them to get into LiteLLM’s release pipeline.</p><p><strong>Step 3: They published poisoned versions directly to PyPI.</strong></p><p>PyPI is the Python Package Index. The attacker published malicious versions 1.82.7 and 1.82.8 directly to PyPI, outside the official GitHub release process.</p><p><strong>Step 4: The execution trigger differed between versions.</strong></p><p>Version 1.82.7 triggered its payload when litellm.proxy was imported. Version 1.82.8 added a .pth file that could execute at Python startup without importing LiteLLM. Installing a package and executing its payload are distinct events.</p><p>What did it grab? Everything. SSH keys. AWS credentials. GCP tokens. Azure secrets. Kubernetes configs. .env files with all your API keys. Shell history. Crypto wallets. SSL private keys. CI/CD secrets. Database passwords. All of it, harvested and sent out.</p><p>Then it tried to deploy privileged containers across every node in your cluster and install a backdoor waiting for future instructions.</p><h3>The Only Reason This Was Not a Complete Disaster</h3><p>A developer named Callum McMahon was using a Cursor MCP plugin. An MCP plugin is basically a small tool that adds capabilities to an AI coding assistant. This particular plugin silently pulled in LiteLLM as a transitive dependency. A transitive dependency means you did not install LiteLLM yourself. Something you installed brought it in, and something that something installed brought it in, and so on down the chain until LiteLLM appeared on your machine without you ever choosing it.</p><p>When LiteLLM 1.82.8 installed, the malware was so poorly written, so sloppily “vibe coded,” that it consumed all available RAM and crashed the machine.</p><p>Callum noticed. Investigated. Found the poisoned package.</p><p>That is the only reason this story has a limit to its damage. The attacker wrote bad malware. If they had written it cleanly, no crash, no alert, no investigation. Thousands of companies would have been fully exfiltrated over days or weeks with nobody the wiser.</p><p>As Andrej Karpathy put it: if the attacker had not vibe coded this attack, it could have gone undetected for many days or weeks.</p><h3>The Scale of “97 Million Downloads a Month”</h3><p>Let me put that number in context for people who are not deep in the Python ecosystem.</p><p>When LiteLLM gets poisoned, it is not just the companies that chose to install LiteLLM that are at risk. It is every project that depends on LiteLLM. DSPy, a popular AI research framework, depended on litellm&gt;=1.64.0. If you ran pip install dspy, you got poisoned LiteLLM. You never even heard the name LiteLLM. You just installed a research library.</p><p>This is the nature of a supply chain attack. You are not targeting one company. You are targeting the entire trust chain that modern software is built on.</p><h3>“But I Just Use ChatGPT Through a Browser”</h3><p>Fair. But your company is not just using ChatGPT through a browser.</p><p>Every internal AI tool, every copilot plugin, every AI feature added to your product in the last two years runs on a stack of packages, each with their own dependencies, each with their own maintainers, each with their own accounts that could be phished, compromised, or taken over.</p><p>The developer whose machine crashed did not install LiteLLM. They installed a Cursor plugin. The plugin had a dependency. That dependency had a dependency. That dependency had LiteLLM.</p><p>Nobody chose to install LiteLLM on that developer’s machine.</p><h3>The Bigger Picture TeamPCP Is Painting</h3><p>This was not a one-off. TeamPCP’s message after the attack: “Many of your favourite security tools and open-source projects will be targeted in the months to come. Stay tuned.”</p><p>They have already hit five package ecosystems in two weeks. GitHub Actions. Docker Hub. npm. Open VSX. PyPI. Each breach gave them credentials to crack open the next one. It is a chain of compromise, and they are running it methodically.</p><p>They are also apparently extorting multiple multi-billion dollar companies right now, working through 300 GB of compressed credentials they have already exfiltrated.</p><h3>What LiteLLM Did Right After Discovery</h3><p>To their credit, the LiteLLM team moved fast once the incident surfaced.</p><p>The compromised packages 1.82.7 and 1.82.8 were quarantined and deleted in coordination with the PyPI team. Docker image users were not impacted because all dependencies are pinned in requirements.txt. They have paused all new releases until the full supply chain is audited. They brought in Google’s Mandiant security team to investigate. The incident thread is public on GitHub at github.com/berriAI/litellm/issues/24518.</p><h3>What You Should Actually Do Right Now</h3><p>If you are in DevOps or MLOps:</p><p>Pin your dependencies. Do not use &gt;= version constraints on security-sensitive packages in production unless you are also running integrity verification. A floating version constraint means you automatically pick up whatever the maintainer pushes, including a compromised version.</p><p>Audit your transitive dependencies. Run pip list or pip freeze and actually look at what is installed in your environments. Tools like pip-audit and cyclonedx-bom can help generate a real software bill of materials.</p><p>Monitor your build pipelines. If a package that was never in your requirements file suddenly appears after a CI run, that is a signal worth investigating.</p><p>Check your credentials. If you or anyone on your team ran a pip install in the window when those versions were live, treat your credentials as compromised. Rotate your SSH keys, API keys, AWS credentials, and anything else that was on that machine.</p><p>If you are a sysadmin or just someone who maintains infrastructure:</p><p>Understand that AI tooling in your organization is introducing new dependency chains. LiteLLM is not the only package like this. Anything with 97 million downloads a month and a central role in credential management is a high-value target. These tools deserve the same scrutiny as your core infrastructure.</p><p>If you are the “AI means ChatGPT” person at your company:</p><p>Next time an engineer asks for budget or time to audit the AI tooling stack, this is why. The speed at which AI features are being shipped into products right now is often outpacing the visibility into what is underneath them. That gap is exactly what attackers are looking for.</p><h3>The Uncomfortable Truth Karpathy Is Pointing At</h3><p>Andrej Karpathy made a point worth sitting with: classical software engineering treats dependencies as a feature. You build on the work of others. Bricks make pyramids.</p><p>But each brick is a human being with an email account that can be phished, a GitHub account that can be compromised, and a package that 97 million people download every month. The trust model the entire ecosystem runs on was not designed for a world where nation-state-level attackers and organized criminal groups are specifically hunting the most downloaded packages in the most critical parts of the stack.</p><p>That does not mean stop using open source. It means we need better tooling for verifying package integrity, better standards for supply chain security, and a lot more honesty about the real surface area of modern software.</p><h3>The Bottom Line</h3><p>A security scanning tool got compromised. Its credentials were used to poison an AI middleware package that 97 million people download every month. The malware grabbed every credential on your machine and tried to own every node in your cluster. It was only discovered because the attacker wrote sloppy code that crashed a developer’s laptop.</p><p>The attackers are telling us they are not done.</p><p>If your organization is shipping AI features and nobody on your team has ever said the words “software bill of materials” or “dependency pinning” in the context of those AI tools, now is a good time to start that conversation.</p><p>Stay curious. Stay paranoid. And please, pin your dependencies. Follow me for more such updates. ✌️👨‍💻💻</p><p><strong><em>Sources:</em></strong><em> LiteLLM incident thread on GitHub, FutureSearch.ai incident analysis, Andrej Karpathy on X, LiteLLM official X account incident updates.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1486cd019a5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fix CrashLoopBackOff, ImagePullError & OOMKilled: Kubernetes Troubleshooting Guide]]></title>
            <link>https://krishnendubhowmick.medium.com/this-kubernetes-troubleshooting-method-will-make-you-the-hero-on-call-e6bb568479b3?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6bb568479b3</guid>
            <category><![CDATA[crashloopbackoff-fix]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[debug-kubernetes-pod]]></category>
            <category><![CDATA[pod-not-starting]]></category>
            <category><![CDATA[kubectl-debug-commands]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Mon, 09 Mar 2026 01:06:00 GMT</pubDate>
            <atom:updated>2026-04-10T02:39:44.966Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rxsfZLF9ZTIa67cl_YsP9Q.png" /></figure><p>You run Kubernetes in prod? You’ve seen CrashLoopBackOff, ImagePullBackOff, OOMKilled, Pending, Evicted, NodeNotReady. Those stuck ones like Terminating or ContainerCreating too. Juniors freak. Seniors grab coffee, type three commands, done. This post runs the common pod/node screw-ups: what they mean, why they hit, exact steps to kill ’em, dumb stuff we all do, plus monitors and patterns so you’re the guy everyone pings for help.</p><p>Terminal open? Good.</p><h3>CrashLoopBackOff</h3><ul><li><strong>What it really means</strong><br>Not an error — it’s Kubernetes saying “container crashes right away, so I’m slowing restarts.” Count climbs, never Runs.</li><li><strong>Why it happens</strong><br>App bails on start (bad config, no DB, wrong args). Mem limit too low. Probes nag too soon. Startup script exits early. PVC gone or perms wrong.</li><li><strong>How to troubleshoot (step by step)</strong><br>Pod status first:</li></ul><pre>kubectl get pods -n &lt;namespace&gt;</pre><p>Grab restarts/age.</p><p>Last logs:</p><pre>kubectl logs &lt;pod-name&gt; -n &lt;namespace&gt;  <br>kubectl logs &lt;pod-name&gt; -n &lt;namespace&gt; --previous</pre><p>— previous usually nails it.</p><p>Full scoop:</p><pre>kubectl describe pod &lt;pod-name&gt; -n &lt;namespace&gt;</pre><p>Eye events (probes, OOM), limits/requests, probe timings.</p><p>Probes too hot? Up initialDelaySeconds, timeoutSeconds, failureThreshold.</p><p>Resources tight?</p><pre>kubectl top pod &lt;pod-name&gt; -n &lt;namespace&gt;  <br>kubectl top node</pre><p>Fix manifest.</p><ul><li><strong>Common mistakes engineers make</strong><br>Bump replicas — now crash x10. Skip — previous. Probe tweak, ignore app fix.</li></ul><p><strong>Example manifest snippet</strong></p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: webapp<br>spec:<br>  replicas: 1<br>  selector:<br>    matchLabels:<br>      app: webapp<br>  template:<br>    metadata:<br>      labels:<br>        app: webapp<br>    spec:<br>      containers:<br>        - name: web<br>          image: nginx:1.25<br>          resources:<br>            requests:<br>              memory: &quot;256Mi&quot;<br>              cpu: &quot;250m&quot;<br>            limits:<br>              memory: &quot;512Mi&quot;<br>              cpu: &quot;500m&quot;<br>          livenessProbe:<br>            httpGet:<br>              path: /health<br>              port: 80<br>            initialDelaySeconds: 15<br>            periodSeconds: 10<br>          readinessProbe:<br>            httpGet:<br>              path: /ready<br>              port: 80<br>            initialDelaySeconds: 10<br>            periodSeconds: 5</pre><p><strong>Monitoring and best practice</strong><br>Prom/Grafana alert on it, tie to logs/metrics. External checks confirm service up, not just pod.</p><h3>ImagePullBackOff and ErrImagePull</h3><ul><li><strong>What they mean</strong><br>ErrImagePull: pull bombed once. BackOff: retries slow.</li><li><strong>Why they happen</strong><br>Image/tag typo. Private reg, no secrets. Net block (firewall, DNS). Auth flop, rate limit, reg down.</li><li><strong>Immediate checks</strong><br>Describe for image/error:</li></ul><pre>kubectl describe pod &lt;pod-name&gt; -n &lt;namespace&gt;</pre><p>Image/events.</p><p>Local yank:</p><pre>kubectl get pod &lt;pod-name&gt; -n &lt;namespace&gt; -o yaml | grep image  <br>docker pull &lt;image:tag&gt;</pre><p>Private? Secret check:</p><pre>kubectl get secret &lt;registry-secret&gt; -n &lt;namespace&gt;</pre><p>Wire it:</p><pre>spec:<br>  imagePullSecrets:<br>    - name: &lt;registry-secret&gt;</pre><p>Node: DNS to reg, no proxy mess.</p><p><strong>Common mistakes</strong><br>Edit deploy, skip image verify. Secret ns wrong. Node reboot first.</p><p><strong>Example fix</strong></p><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: private-web<br>spec:<br>  containers:<br>    - name: web<br>      image: registry.acme.io/app/web:v1.2.3<br>  imagePullSecrets:<br>    - name: regcred</pre><p>Monitoring and best practice<br>Deploy alert. Ditch :latest, semver tags.</p><h3>OOMKilled</h3><ul><li><strong>What it means</strong><br>OOM killer hit — over mem limit or node dry. Exit 137 usually.</li><li><strong>Why it happens</strong><br>Pod limit low. Leak. Node squeeze. GC spike (Java/Go).</li></ul><p><strong>How to troubleshoot</strong><br>Confirm:</p><pre>kubectl describe pod &lt;pod-name&gt; -n &lt;namespace&gt; | grep -i oom</pre><p>Usage:</p><pre>kubectl top pod &lt;pod-name&gt; -n &lt;namespace&gt;  <br>kubectl top node</pre><p>Near limit?</p><pre>resources:<br>  requests:<br>    memory: &quot;1Gi&quot;<br>  limits:<br>    memory: &quot;2Gi&quot;</pre><p>Node bad? Scale up, VPA/PDB.</p><p>Common mistakes<br>Request=limit, call bug. Skip node graphs. Miss 5xx logs.</p><p>Monitoring and best practice<br>container_memory_working_set_bytes, rss. Alert 80% limit.</p><h3>CreateContainerConfigError</h3><ul><li><strong>What it means</strong><br>Pod ok, container env build fails. Image there, setup no.</li><li><strong>Why it happens</strong><br>ConfigMap/Secret miss. Key wrong. Env syntax bad. Cmd paths gone.</li></ul><p><strong>How to troubleshoot</strong><br>Describe: “secret xyz gone”.</p><pre>kubectl get configmap -n &lt;namespace&gt;  <br>kubectl get secret -n &lt;namespace&gt;</pre><p>YAML scrub.</p><p><strong>Common mistakes</strong><br>Paste no ns update. Default secret assume. .env raw.</p><p><strong>Example snippet</strong></p><pre>spec:<br>  containers:<br>    - name: api<br>      image: nginx:1.25<br>      env:<br>        - name: DB_HOST<br>          valueFrom:<br>            secretKeyRef:<br>              name: db-credentials<br>              key: host<br>      volumeMounts:<br>        - name: config<br>          mountPath: /etc/app<br>  volumes:<br>    - name: config<br>      configMap:<br>        name: app-config</pre><p>Monitoring and best practice<br>Kyverno/OPA validate refs. Config red flag.</p><h3>CreateContainerError and RunContainerError</h3><ul><li><strong>What they mean</strong><br>Create: runtime post-pull fail. Run: process no-start crash.</li><li><strong>Why it happens</strong><br>Entrypoint broke. Port clash. Disk full, CRI bug. Mount wrong.</li></ul><p><strong>How to troubleshoot</strong><br>Describe events. Node:</p><pre>kubectl describe node &lt;node-name&gt;  <br>df -h  <br>systemctl status containerd</pre><p>Logs — previous.</p><p><strong>Common mistakes</strong><br>App blame pre-node. Skip old logs. Deploy restart blind.</p><p><strong>Monitoring and best practice</strong><br>Node alerts disk/CRI. Dashboards.</p><h3>Pending</h3><ul><li><strong>What it means</strong><br>API ok, no schedule.</li><li><strong>Why it happens</strong><br>Node no-match (cpu/mem). Affinity strict. PVC wait.</li></ul><p>How to troubleshoot</p><pre>kubectl describe pod &lt;pod-name&gt; -n &lt;namespace&gt;  <br>kubectl top nodes  <br>kubectl get pvc -n &lt;namespace&gt;</pre><p>“Insufficient” etc.</p><p><strong>Common mistakes</strong><br>Requests fat, no scale. Strict selector. Storage forget.</p><p><strong>Monitoring and best practice</strong><br>Pending vs scheduled. VPA tools.</p><h3>Evicted</h3><ul><li><strong>What it means</strong><br>Kubelet/node kicked it. Pressure or drain.</li><li><strong>Why it happens</strong><br>Disk/Mem pressure. Over request. Drain/scale-down.</li></ul><p><strong>How to troubleshoot</strong></p><pre>kubectl describe pod &lt;pod-name&gt; -n &lt;namespace&gt;  <br>kubectl describe node &lt;node-name&gt;</pre><p>“low resource”.</p><p><strong>Common mistakes</strong><br>Self-heal assume. No metrics tie. Logs skip.</p><p><strong>Monitoring and best practice</strong><br>Evict alert + graphs. PDB graceful.</p><h3>NodeNotReady</h3><ul><li><strong>What it means</strong><br>Control plane sees node dead.</li><li><strong>Why it happens</strong><br>Off/reboot. Net no-heartbeat. Kubelet crash.</li></ul><p><strong>How to troubleshoot</strong></p><pre>kubectl get nodes  <br>kubectl describe node &lt;node-name&gt;</pre><p>Conditions, kubelet logs.</p><p><strong>Common mistakes</strong><br>Reboot pre-check. Pods focus only.</p><p><strong>Monitoring and best practice</strong><br>NotReady alert + metrics. Drain hooks.</p><h3>FailedCreatePodSandBox</h3><ul><li><strong>What it means</strong><br>Sandbox (net ns) create flop.</li><li><strong>Why it happens</strong><br>CNI config bad. Runtime. Disk. PodCIDR mess.</li></ul><p><strong>How to troubleshoot</strong></p><pre>kubectl describe pod &lt;pod-name&gt; -n &lt;namespace&gt;  <br>kubectl describe node &lt;node-name&gt;</pre><p>Node CNI logs/disk.</p><p><strong>Common mistakes</strong><br>CNI reinstall blind. Logs skip.</p><p><strong>Monitoring and best practice</strong><br>Alert + node conds. CNI/runtime lock.</p><h3>Terminating (Stuck) and ContainerCreating (Stuck)</h3><ul><li><strong>What they mean</strong><br>Term: delete hangs. ContainerCreating: schedule ok, no start.</li><li><strong>Why it happens</strong><br>Term: node gone, finalizers hang, kubelet issue.<br>Create: pull slow, CNI, PVC.</li></ul><p><strong>How to troubleshoot</strong></p><pre>kubectl describe pod &lt;pod-name&gt; -n &lt;namespace&gt;  <br>kubectl get nodes  <br>kubectl get pvc -n &lt;namespace&gt;</pre><p>Stuck term?</p><pre>kubectl delete pod &lt;pod-name&gt; --grace-period=0 --force -n &lt;namespace&gt;</pre><p>Node reboot last.</p><p><strong>Common mistakes</strong><br>Force no-why. Ignore long.</p><p><strong>Monitoring and best practice</strong><br>Stuck &gt; threshold alert. PDB/quota.</p><h3>Hero Path</h3><p><strong>Panic to method:</strong><br>describe → logs ( — previous) → top. Node/CNI if infra.</p><p><strong>Sort ‘em:</strong><br>Crash/OOM app/config. Image/Create deploy. Pending/Evict/NodeSandBox infra.</p><p><strong>Stack it:</strong><br>Alert Crash/Evict/Image/Node. Events+metrics+logs. Pod state dash.</p><p>Runbook this. Next guy copies commands, no guess.</p><p>Dig this? Follow for more raw K8s fights, GitOps, senior tricks past hello-world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6bb568479b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Operator Cheatsheet by Krishnendu Bhowmick]]></title>
            <link>https://krishnendubhowmick.medium.com/python-operator-cheatsheet-by-krishnendu-bhowmick-400c306cf0e1?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/400c306cf0e1</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-bitwise-operators]]></category>
            <category><![CDATA[arithmetic-operators]]></category>
            <category><![CDATA[python-operators-list]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 01:11:00 GMT</pubDate>
            <atom:updated>2026-04-10T02:41:02.679Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python Operators Complete Cheatsheet: Arithmetic, Logical, Bitwise &amp; More (2026)</h3><p><em>A beginner-friendly guide to every operator you need to know</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*OCByMtLy0yfpRHlayhbuXQ.png" /></figure><h3>Introduction</h3><p>Operators are the building blocks of any Python program. Whether you’re doing math, comparing values, or checking conditions, operators make it happen. Let’s break them all down simply and clearly.</p><h3>1. Arithmetic Operators</h3><p>These are your basic math operators. Nothing fancy here.</p><pre>+   Addition          5 + 3   →  8<br>-   Subtraction       5 - 3   →  2<br>*   Multiplication    5 * 3   →  15<br>/   Division          5 / 2   →  2.5<br>//  Floor Division    5 // 2  →  2<br>%   Modulus           5 % 2   →  1<br>**  Exponent          5 ** 2  →  25</pre><blockquote><em>💡 </em><strong><em>Tip:</em></strong><em> Floor division </em><em>// always rounds </em><strong><em>down</em></strong><em>. Modulus </em><em>% gives you the </em><strong><em>leftover</em></strong><em> after division.</em></blockquote><h3>2. Comparison Operators</h3><p>Use these when you want to <strong>compare two values</strong>. They always return True or False.</p><pre>==   Equal to                5 == 5   →  True<br>!=   Not equal to            5 != 3   →  True<br>&gt;    Greater than            5 &gt; 3    →  True<br>&lt;    Less than               5 &lt; 3    →  False<br>&gt;=   Greater than or equal   5 &gt;= 5   →  True<br>&lt;=   Less than or equal      5 &lt;= 3   →  False</pre><blockquote><em>💡 </em><strong><em>Tip:</em></strong><em> Don’t confuse </em><em>= (assignment) with </em><em>== (comparison). This is one of the most common beginner mistakes!</em></blockquote><h3>3. Logical Operators</h3><p>Logical operators let you <strong>combine multiple conditions</strong> together.</p><pre>and   Both must be True          5 &gt; 3 and 2 &lt; 4   →  True<br>or    At least one must be True  5 &gt; 3 or 2 &gt; 4    →  True<br>not   Reverses the result        not True           →  False</pre><blockquote><em>💡 </em><strong><em>Tip:</em></strong><em> Think of </em><em>and as </em><strong><em>strict</em></strong><em> and </em><em>or as </em><strong><em>flexible</em></strong><em>.</em></blockquote><h3>4. Assignment Operators</h3><p>These are used to <strong>assign or update</strong> the value of a variable.</p><pre>=    Assign              x = 5    →  x = 5<br>+=   Add and assign      x += 3   →  x = x + 3<br>-=   Subtract and assign x -= 3   →  x = x - 3<br>*=   Multiply and assign x *= 3   →  x = x * 3<br>/=   Divide and assign   x /= 3   →  x = x / 3</pre><blockquote><em>💡 </em><strong><em>Tip:</em></strong><em> Shorthand operators like </em><em>+= make your code </em><strong><em>cleaner and faster</em></strong><em> to write.</em></blockquote><h3>5. Membership Operators</h3><p>Want to check if something <strong>exists inside a list, string, or tuple</strong>? Use these.</p><pre>in       Exists in sequence         5 in [1,5,9]     →  True<br>not in   Does not exist in sequence 5 not in [1,2,3] →  True</pre><blockquote><em>💡 </em><strong><em>Tip:</em></strong><em> </em><em>in is perfect for searching inside lists without writing a loop.</em></blockquote><h3>6. Identity Operators</h3><p>These check if two variables point to the <strong>exact same object in memory</strong>.</p><pre>is       Same object in memory      x is y<br>is not   Not same object in memory  x is not y</pre><blockquote><em>💡 </em><strong><em>Tip:</em></strong><em> </em><em>is and </em><em>== are </em><strong><em>not the same thing</em></strong><em>. Use </em><em>== to compare values and </em><em>is to compare identity.</em></blockquote><h3>Final Thoughts</h3><p>Mastering operators is one of the first steps to thinking like a programmer. Bookmark this cheatsheet and refer back to it whenever you need a quick refresher.</p><p><em>Happy coding! 🚀</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=400c306cf0e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Run Nested VMs on AWS EC2: Save 60% vs Bare Metal Instances (2026 Guide)]]></title>
            <link>https://krishnendubhowmick.medium.com/you-can-now-run-vms-inside-a-cheaper-aws-instance-instead-of-paying-for-bare-metal-krishnendu-3363ba1569d9?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/3363ba1569d9</guid>
            <category><![CDATA[ec2-nested-vm]]></category>
            <category><![CDATA[aws-bare-metal]]></category>
            <category><![CDATA[run-vm-inside-ec2]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-virtualization-cost]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Mon, 23 Feb 2026 04:01:01 GMT</pubDate>
            <atom:updated>2026-04-10T02:44:58.179Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESWg51xurNgYATw6DTdKuw.png" /></figure><p><strong>Something quietly changed in AWS</strong> that is a much bigger deal than it looks on paper. Without a public blog post or a “What’s New” announcement, support for nested virtualization has appeared in the AWS SDK for Go v2 release notes for EC2. The note reads: “<strong>Feature: Launching nested virtualization. This feature allows you to run nested VMs inside virtual (non-bare metal) EC2 instances.</strong>”</p><p>Anyone who has ever had to pay for a full bare-metal instance just to run KVM, Firecracker, or a lab hypervisor in the cloud will immediately understand why this is interesting. Until now, if nested virtualization was required on AWS, the realistic answer was a Nitro bare-metal instance or “go to GCP or Azure,” both of which already exposed nested virtualization on regular VMs.</p><p>The twist is that AWS seems to be keeping this low profile. There is no official documentation page yet, but multiple engineers have noticed the change, including posts that call it out as “Biggest surprise of 2026” and confirm that it works only on 8th generation Intel EC2 instance types such as c8i, m8i, and r8i (and their flex variants).</p><h3>Quick primer: what nested virtualization actually is</h3><p>Nested virtualization means running a hypervisor inside a virtual machine. In other words, EC2 runs on the AWS Nitro hypervisor, and inside that EC2 instance you run something like KVM, Hyper-V, or Firecracker, which then runs more VMs or microVMs. It becomes VMs all the way down.</p><p>In practical terms, this only becomes useful when the guest VM sees the CPU virtualization extensions (Intel VT-x, AMD-V) and can use them to accelerate its own virtualization layer. Until this change, most non-metal EC2 instances did not expose those features, which meant nested hypervisors either failed to start or fell back to extremely slow software emulation.</p><p>Nested virtualization is the bedrock for a lot of modern infrastructure patterns: microVM sandboxes such as Firecracker, KubeVirt for running VMs on Kubernetes, CI systems that need to build and boot images, and lab environments that mirror on-prem hypervisor stacks.</p><h3>How AWS handled this before</h3><p>Historically, the AWS answer for nested virtualization was simple and expensive: use bare metal. Nitro-based bare-metal instances give direct access to the underlying hardware so you can install your own hypervisor and even do nesting inside guest VMs if you really want to.</p><p>That worked technically, but it was not cost effective for most teams. Bare-metal sizes tend to be very large, so reaching for one just to run a handful of microVMs or a small KubeVirt cluster never felt great. On top of that, competitors like GCP have been comfortable exposing nested virtualization on regular VM shapes for some time, which made AWS look conservative in this area. Hacker News comments about the feature explicitly mention this gap and the frustration of only having bare metal as an option.</p><p>The quiet appearance of nested virtualization support on non-metal EC2 finally closes that gap for many use cases.</p><h3>What exactly changed</h3><p>The relevant snippet in the AWS SDK for Go v2 release notes for the EC2 service is very short but very explicit: nested virtualization is now “<strong>launching</strong>” inside virtual (non-bare metal) EC2 instances. Public discussion around the change clarifies that this is restricted to 8th generation Intel instance families, specifically <strong>c8i, m8i, r8i</strong>, and their flex variants.</p><p>These 8th generation families are powered by custom Intel Xeon 6 processors and already target high performance workloads such as compute intensive services, high throughput applications, and memory heavy systems. Nested virtualization support on these families effectively adds a new class of workloads to that list: hypervisor-in-VM scenarios and microVM platforms.</p><p>This is not a new instance type or a separate SKU. It is a capability toggle on existing 8th generation Intel Nitro instances. That is why it surfaced first in SDK changelogs and community chatter rather than in a dedicated AWS blog post.</p><h3>Why this matters for DevOps and platform teams</h3><p>From a DevOps and platform engineering perspective, this unlocks several patterns that used to be awkward or uneconomical on AWS:</p><ul><li><strong>MicroVM platforms</strong><br> Firecracker style workloads or proprietary microVM sandboxes can now run inside regular EC2 without jumping to bare metal. This is useful for high density, strong isolation multi tenant platforms where each tenant gets a microVM or small VM instead of a container.</li><li><strong>KubeVirt and “VMs on Kubernetes”</strong><br> If your cluster runs on c8i, m8i, or r8i nodes, KubeVirt can schedule guest VMs on worker nodes that have hardware acceleration for virtualization. That makes hybrid container and VM workloads inside EKS or self managed clusters much more feasible.</li><li><strong>CI pipelines that build and boot images</strong><br> Image pipelines that need to bring up full OS images under a hypervisor can now be run in smaller, cheaper instances. This includes testing OS-level agents, kernel changes, custom AMIs, or virtual appliances. Commenters have specifically called out CI and system image builds as the place they wanted nested virtualization the most.</li><li><strong>Running vendor appliances unmodified</strong><br> There are still vendors who ship virtual appliances that expect to be the “top level” hypervisor. With nested virtualization, it becomes possible to run those in EC2 without forcing a bare metal host beneath them, at least for development, demos, or low volume production.</li></ul><p>The common thread is that operational consistency becomes easier. If your internal platform standard is “everything runs on a hypervisor we control,” nested virtualization lets you bring that same model into AWS without reserving an entire bare metal host.</p><h3>Caveats and trade offs</h3><p>It is important to keep expectations grounded. Nested virtualization is non trivial to implement at cloud scale. AWS has to preserve very strong isolation guarantees, route virtual networking correctly for nested guests, and ensure the control plane can reason about these scenarios.</p><p>A few practical caveats to keep in mind:</p><ul><li><strong>Performance is not free</strong><br> Pure CPU workloads that do not cause frequent VM exits may see relatively small overhead. IO heavy workloads, or anything that causes many traps and transitions, can suffer more. There is another layer of VM exits to pass through and back, and Hacker News discussion points out that IO performance in nested setups ranges from “barely measurable” impact to “absolutely horrible,” depending on the implementation.</li><li><strong>This is limited to specific families</strong><br> Only 8th generation Intel instances support this at the time of writing. That means no Graviton, no earlier x86 generations, and no random legacy instance type you happen to have lying around.linkedin+1</li><li><strong>Documentation is not fully there yet</strong><br> So far this feature is visible through SDK release notes and community experimentation rather than a polished guide in the EC2 user manual. That usually means API surface and behavior may still change, and support teams may treat issues with some caution until it is officially documented.</li></ul><p>Given the complexity of nested virtualization, there will almost certainly be corner cases that do not behave exactly like bare metal.</p><h3>How to start experimenting</h3><p>Once this appears in your region, the workflow to explore it is straightforward:</p><ol><li>Launch a c8i, m8i, or r8i instance using an AMI that supports KVM, such as a recent Amazon Linux, Ubuntu, or other mainstream Linux distribution.</li><li>Inside the instance, inspect /proc/cpuinfo and confirm that virtualization flags such as vmx are exposed to the guest. If they appear, the hypervisor is passing through hardware virtualization support.</li><li>Install your hypervisor of choice (for example, KVM with libvirt or direct QEMU, or Firecracker).</li><li>Create a small nested VM and benchmark CPU and IO performance relative to running that same workload directly on the instance.</li></ol><p>For KubeVirt or other Kubernetes based stacks, the next step is to use these instance families as worker nodes and schedule a few test VMs to verify behavior and stability. Early experiments should focus on non production workloads, CI runners, and lab environments until AWS provides clear guidance on support and limits.</p><h3>Cost and architecture implications</h3><p>The cost angle is what makes this genuinely exciting. Instead of reserving a large bare-metal host, teams can now attach nested hypervisor workloads to much smaller instances. A few c8i.large or c8i.xlarge nodes with nested virtualization can host dozens of microVMs or test VMs for CI, lab, or multi tenant platform purposes, and can be scaled up or down like any other autoscaled group.</p><p>Architecturally, this enables a two layer virtualization model:</p><ul><li>AWS Nitro hypervisor provides tenancy isolation and integration with VPC, security groups, IAM, and so on.</li><li>Your hypervisor inside the instance provides per tenant or per workload isolation and lifecycle control.</li></ul><p>This model is attractive for platform teams that want consistent abstractions for tenants across on-prem and cloud. It allows them to keep a “hypervisor as a unit of deployment” mindset without sacrificing the elasticity of EC2.</p><h3>Where this is heading</h3><p>AWS does not usually enable features like this just for fun. The appearance of nested virtualization on 8th generation Intel instances suggests that the underlying Nitro and hardware stack is now mature enough to support these more complex scenarios while preserving performance and isolation. It also puts AWS on equal footing with competitors that already offer nested virtualization on standard VM shapes.</p><p>For now, the sensible approach is to treat it as an advanced feature for specific workloads, not a default for everything. Use it for microVM platforms, KubeVirt clusters, sophisticated CI, and vendor appliance labs, and keep very latency sensitive or IO heavy production workloads on direct EC2 or bare metal where appropriate.</p><p>Even with those caveats, being able to run VMs inside a cheaper AWS instance instead of paying for a whole bare-metal box is a meaningful shift. For DevOps and platform teams that care about uniform control, sandboxing, and deep automation, this is one of those quiet features that will end up in many architectures over the next couple of years.</p><blockquote>Follow me on Medium for more DevOps insights, Python tools, and cloud infrastructure tutorials</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3363ba1569d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS IAM Access Analyzer: How to Debug Permission Denied Errors in Minutes]]></title>
            <link>https://krishnendubhowmick.medium.com/the-new-aws-feature-that-saved-hours-of-access-denied-troubleshooting-6d1d49f2be7c?source=rss-1dad22fc18ce------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d1d49f2be7c</guid>
            <category><![CDATA[debug-aws-access-denied]]></category>
            <category><![CDATA[aws-access-analyzer]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-permission-denied]]></category>
            <category><![CDATA[iam-troubleshooting]]></category>
            <dc:creator><![CDATA[Krishnendu Bhowmick]]></dc:creator>
            <pubDate>Mon, 16 Feb 2026 04:01:03 GMT</pubDate>
            <atom:updated>2026-04-10T02:42:58.823Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*Ow9mAzHGGkYxPJA8lTlV8w.png" /></figure><p>Anyone who spends time in AWS long enough eventually develops a kind of sixth sense for the dreaded AccessDenied or AccessDeniedException error. It often appears deep inside application logs, Terraform plans, CI pipelines, or obscure corners of the AWS console, usually at the least convenient moment.</p><p>The real pain is rarely the error itself. The real cost comes from working out <strong>why</strong> the request was denied, <strong>which</strong> policy was responsible, and <strong>where</strong> it lives in a complex IAM and Organizations setup.</p><p>In January 2026, AWS quietly rolled out a change that can dramatically shrink that troubleshooting loop. Access denied error messages can now show the <strong>exact IAM or AWS Organizations policy ARN</strong> that caused the denial in same account and same organization scenarios. For DevOps and platform teams, this is a small change with a very large impact.</p><p>This article walks through what changed, why it matters, and how to adjust troubleshooting and IAM practices to take full advantage of it.</p><h3>What Exactly Did AWS Change?</h3><p>Previously, when a call failed with AccessDenied or AccessDeniedException, the error message might tell you:</p><ul><li>The <strong>action</strong> that was attempted, such as s3:PutObject</li><li>The <strong>resource</strong>, such as an S3 bucket or an ARN</li><li>Sometimes the <strong>policy type</strong> that blocked the request (for example, “denied by an SCP”)</li></ul><p>What it did not tell you was <strong>which specific policy</strong> was responsible.</p><p>As environments grow, that becomes fragile. There may be:</p><ul><li>Multiple SCPs attached to the same OU</li><li>Several identity-based policies attached to a role</li><li>A permission boundary on the role</li><li>A session policy applied during AssumeRole</li><li>Resource policies in services like S3, SNS, SQS or KMS</li></ul><p>The new feature changes that by including the <strong>policy ARN</strong> directly in the error message for same-account and same-organization scenarios. According to AWS, the error message can now point to the ARN in these policy categories.</p><ul><li>Service Control Policies (SCPs)</li><li>Resource Control Policies (RCPs) in Organizations</li><li>Identity-based policies (IAM user, group, role policies, and managed policies)</li><li>Session policies</li><li>Permission boundaries</li></ul><p>The change is being rolled out gradually across AWS services and Regions, so it will become more visible over time.</p><h3>Why AccessDenied Has Been So Painful Historically</h3><p>The IAM evaluation engine is incredibly powerful, but that power comes with complexity. When a request is evaluated, AWS takes into account:</p><ul><li>Identity-based policies (attached to the caller identity)</li><li>Resource-based policies (attached to the target resource)</li><li>Permission boundaries</li><li>Session policies</li><li>Service control policies and other Organizations-level controls</li><li>Implicit vs explicit deny semantics</li></ul><p>The most important concept for troubleshooting is <strong>explicit deny wins</strong>. If any policy in the evaluation dimension explicitly denies an action, that deny overrides all allows. This is great for control, but difficult for debugging.</p><p>In a real-world DevOps environment, a single failing call might be affected by:</p><ul><li>An SCP at the root or OU level</li><li>A resource policy on the specific ARN</li><li>A permission boundary imposed by a platform team</li><li>A temporary session policy created by a CI system</li></ul><p>Previously, a typical error might look like:</p><pre>An error occurred (AccessDenied) when calling the PutObject operation: <br>User is not authorized to perform s3:PutObject on resource arn:aws:s3:::my-bucket/my-key</pre><p>From that message alone, there is no obvious clue whether the root cause is:</p><ul><li>A strict SCP on the account</li><li>A resource policy on the bucket</li><li>A permission boundary applied to the role</li><li>A missing allow on the role policy</li></ul><p>That is why debugging often turned into a manual “policy archaeology” exercise. Engineers would:</p><ul><li>Inspect the IAM role or user and every attached policy</li><li>Check for any permission boundary</li><li>Hunt through AWS Organizations for SCPs</li><li>Inspect resource policies via service consoles or CLI</li><li>Use IAM policy simulator or IAM Access Analyzer as a last resort</li></ul><p>In larger environments, this could easily consume hours.</p><h3>How the New Error Messages Look in Practice</h3><p>With the new behavior, AWS returns more context when an explicit deny is triggered. The key addition is the <strong>policy ARN</strong> that caused the denial.</p><p>Below are conceptual examples of how this improves troubleshooting. The exact text format may vary across services, but the point is the presence of the specific ARN.</p><h3>Example 1: Identity-based Policy Deny</h3><p>Before:</p><pre>AccessDenied: User is not authorized to perform ec2:TerminateInstances<br>on resource arn:aws:ec2:us-east-1:123456789012:instance/i-0abcd1234</pre><p>After:</p><pre>AccessDenied: Explicit deny in identity-based policy <br>arn:aws:iam::123456789012:policy/Prod-Ec2-Guardrail<br>for action ec2:TerminateInstances on resource arn:aws:ec2:us-east-1:123456789012:instance/i-0abcd1234</pre><p>Now the message shows that the deny is inside Prod-Ec2-Guardrail, a managed IAM policy.</p><h3>Example 2: Service Control Policy (SCP) Deny</h3><p>Before:</p><pre>AccessDenied: Your account is not authorized to perform kms:CreateKey</pre><p>After:</p><pre>AccessDenied: Request denied by Service Control Policy <br>arn:aws:organizations::111122223333:policy/o-xxxxxx/service_control_policy/p-scp-secure-kms<br>for action kms:CreateKey</pre><p>This directly points to the SCP that is blocking key creation.</p><h3>Example 3: Permission Boundary</h3><p>Before:</p><pre>AccessDeniedException: User is not authorized to perform lambda:CreateFunction</pre><p>After:</p><pre>AccessDeniedException: Request denied by permission boundary <br>arn:aws:iam::123456789012:policy/Lambda-Team-Boundary<br>which does not allow action lambda:CreateFunction</pre><p>This clarifies that the role’s own policy is not the problem. The limit comes from the permission boundary.</p><h3>Example 4: Session Policy</h3><p>Before:</p><pre>AccessDenied: Calling the AssumeRole API succeeded, but the role session does not have permission to perform dynamodb:PutItem</pre><p>After:</p><pre>AccessDenied: Explicit deny in session policy applied to role session <br>role-session-name=ci-deploy-abc123,<br>denied by session policy arn:aws:sts::123456789012:assumed-role/DeployRole/ci-deploy-abc123:session-policy-1<br>for action dynamodb:PutItem</pre><p>This is invaluable when CI/CD systems attach session policies dynamically.</p><p>These are illustrative, but they show the kind of high-signal context that the new feature introduces.</p><h3>A Step-by-Step Troubleshooting Walkthrough</h3><p>To understand how this changes daily DevOps work, consider a realistic scenario.</p><h3>Scenario: SCP Blocking EC2 Operations</h3><p>A team manages workloads in a multi-account AWS Organization. There is a shared Services OU that hosts a CI/CD account and several application accounts. A centralized platform team manages SCPs to enforce guardrails.</p><p>An application team reports failures when trying to start EC2 instances in the dev account through Terraform. The pipeline log shows:</p><pre>Error: Error launching EC2 Instance: <br>AccessDenied: Request denied by Service Control Policy arn:aws:organizations::111122223333:policy/o-xxxxxx/service_control_policy/p-ec2-restrict-dev<br>for action ec2:RunInstances on resource arn:aws:ec2:us-east-1:111122223333:instance/*</pre><p>With that message, the troubleshooting path is suddenly very clear.</p><ol><li><strong>Identify ownership of the policy</strong><br> The ARN belongs to Organizations, not IAM. That means it is managed by the central platform or security team, not the application team.</li><li><strong>Locate the policy in AWS Organizations</strong><br> Using the Organizations console or CLI, open the SCP with ID p-ec2-restrict-dev.</li><li><strong>Inspect the explicit denies</strong><br> The SCP might contain a block like:</li></ol><pre>{<br>  &quot;Effect&quot;: &quot;Deny&quot;,<br>  &quot;Action&quot;: &quot;ec2:RunInstances&quot;,<br>  &quot;Resource&quot;: &quot;*&quot;,<br>  &quot;Condition&quot;: {<br>    &quot;StringNotEquals&quot;: {<br>      &quot;aws:RequestedRegion&quot;: &quot;us-west-2&quot;<br>    }<br>  }<br>}</pre><p>Now it is clear that EC2 instances are allowed only in us-west-2. The request from us-east-1 will always fail</p><p><strong>Decide on a remediation</strong><br> Options include:</p><ul><li>Adjust the SCP to allow us-east-1 for this OU or account</li><li>Move the account to a different OU with a more suitable SCP</li><li>Align the workload with the intended region in the organization’s standards</li></ul><p><strong>Update the runbook</strong><br> Add a clear troubleshooting step:<br> “<em>If error mentions </em><em>Request denied by Service Control Policy and includes a policy ARN, investigate that SCP first before debugging IAM role policies.</em>”</p><p>This eliminates the old habit of combing through the IAM role, Terraform configuration, and EC2 resource policies first, only to eventually discover that an SCP was blocking the call.</p><h3>Another Scenario: Permission Boundaries in a Multi-Team Environment</h3><p>Many organizations use permission boundaries to let teams manage their own IAM roles within well-defined limits. Platform teams define a boundary policy that dictates the maximum allowable permissions.</p><p>Imagine a deployment role that is allowed to manage specific Lambda functions. A developer adds a new action, lambda:CreateFunctionUrlConfig, to a role policy. Deployment fails with:</p><pre>AccessDeniedException: Request denied by permission boundary <br>arn:aws:iam::123456789012:policy/Lambda-Platform-Boundary<br>which does not allow action lambda:CreateFunctionUrlConfig on resource arn:aws:lambda:us-east-1:123456789012:function:*</pre><p>The troubleshooting flow becomes:</p><ol><li><strong>Recognize this is a boundary issue, not a role policy issue</strong><br> There is no need to second-guess the role’s inline or attached policies first.</li><li><strong>Inspect the permission boundary policy</strong><br> Platform engineers open Lambda-Platform-Boundary and see it only allows create and update on regular Lambda actions, not Function URLs.</li><li><strong>Discuss and decide</strong></li></ol><ul><li>If Function URLs are allowed in the platform model, the boundary policy should be updated.</li><li>If not, the role policy must be adjusted to remove the unsupported action.</li></ul><p><strong>4. Feed into governance</strong><br> This kind of explicit feedback helps refine organizational standards around which actions are allowed within boundaries.</p><p>Again, the key win is precision. The exact policy and its ARN are explicitly surfaced as the blocker.</p><h3>How This Changes IAM Troubleshooting Habits</h3><p>For DevOps and platform teams, this feature should trigger some deliberate changes in how troubleshooting and incident response are handled.</p><h3>1. New First Step: Read the Policy ARN in the Error</h3><p>When an AccessDenied error appears, the first question should become:</p><blockquote><em>“Does the error message indicate a specific policy ARN that denied the request?”</em></blockquote><p>If yes, the next steps are almost always:</p><ul><li>Identify the policy type (SCP, identity-based, boundary, session, resource)</li><li>Go directly to that policy in the appropriate console or via CLI</li><li>Inspect explicit deny statements and conditions</li></ul><h3>2. Shorter Feedback Loops for Multi-Layer IAM Designs</h3><p>Many organizations layer IAM controls intentionally:</p><ul><li>SCPs for organization-wide or OU-level guardrails</li><li>Permission boundaries for team-level safety rails</li><li>Identity-based policies for project-specific permissions</li><li>Resource policies for least-privilege access to particular resources</li></ul><p>This structure is good practice, but it has historically increased debugging overhead. Now, explicit references to the blocking layer make this design <strong>much more operationally friendly</strong>.</p><h3>3. Better Training for Junior Engineers</h3><p>Onboarding engineers often struggle with understanding where to look when an access error appears. With explicit policy ARNs in errors, training material and runbooks can be more mechanical:</p><ul><li>If error mentions “Service Control Policy,” open AWS Organizations and inspect that SCP.</li><li>If error mentions “permission boundary,” open the IAM policy used as the boundary.</li><li>If error mentions “identity-based policy,” inspect that policy on the role or user.</li></ul><p>This predictability makes it easier to scale knowledge across the team.</p><h3>Opportunities for Automation and Observability</h3><p>The feature does not just help during manual debugging. It also opens new possibilities for automation.</p><h3>1. Smarter Log Parsing and Alerting</h3><p>Many organizations already stream CloudTrail logs and application logs to systems like CloudWatch Logs, OpenSearch, Splunk, or Datadog. With policy ARNs included:</p><ul><li>Error parsers can extract the policy ARN and place it as a structured field.</li><li>Dashboards can group AccessDenied events by policy ARN.</li><li>Alerts can be configured for spikes in denies tied to a specific policy.</li></ul><p>This is powerful for detecting misconfigured guardrails. For example, if a newly updated SCP causes thousands of denies in a short period, an automated alert can reference that exact SCP.</p><h3>2. Faster Impact Analysis of Policy Changes</h3><p>When a central team updates an SCP or a permission boundary, impact analysis often relies on guesswork and manual validation. With explicit ARNs in errors:</p><ul><li>Teams can query logs for policy_arn = arn:... to see where and how often a given policy is causing denies.</li><li>Platform engineers can review real usage patterns and adjust policies to better match actual needs.</li></ul><h3>3. Tooling for Developers and SREs</h3><p>Internal tools or bots can be built to respond to logs containing AccessDenied errors and post human-friendly explanations into Slack or Teams channels:</p><ul><li>“This operation is blocked by SCP p-ec2-restrict-dev. Please contact the platform team that owns OU Prod-Apps.”</li><li>“Permission boundary Lambda-Platform-Boundary does not allow lambda:CreateFunctionUrlConfig. Open a ticket with the platform team to request boundary changes.”</li></ul><p>Such tools are much easier to build and far more informative when the error message exposes the relevant policy ARN.</p><h3>Limitations and Things to Keep in Mind</h3><p>Although this feature is a major improvement, there are important caveats.</p><h3>1. Same-Account and Same-Organization Only</h3><p>The new behavior is explicitly described as applying in <strong>same account and same organization</strong> scenarios. For cross-account access patterns, especially those spanning different organizations, the behavior may not be as rich.</p><p>This means:</p><ul><li>Many cross-account role assumption patterns may still require traditional debugging.</li><li>External partner accounts or vendor accounts will not benefit from this inside your own logs.</li></ul><h3>2. Gradual Rollout Across Services and Regions</h3><p>AWS notes that this capability will <strong>gradually become available</strong> across AWS services in all Regions. In practice, that means:</p><ul><li>Some services will show detailed policy ARNs earlier than others.</li><li>Some Regions might lag.</li><li>Mixed behavior may appear where part of the stack shows ARNs and another part does not.</li></ul><p>Troubleshooting runbooks should acknowledge this. Errors without ARNs still need the traditional multi-layer policy investigation.</p><h3>3. Explicit Deny vs Missing Allow</h3><p>These enriched errors are most useful in <strong>explicit deny</strong> scenarios. A simple missing allow (no relevant policy statement) may not produce the same highly targeted messages.</p><p>Teams should continue to:</p><ul><li>Use IAM Access Analyzer, policy simulator, and good least-privilege design practices.</li><li>Maintain clear separation between “allowed but constrained” and “explicitly denied” use cases.</li></ul><h3>Practical Recommendations for DevOps Teams</h3><p>To get the most value from this feature, DevOps and platform teams can make a few concrete changes.</p><h3>1. Update Troubleshooting Runbooks</h3><p>Add explicit steps like:</p><ul><li>“For any AccessDenied or AccessDeniedException error, check whether the message includes a policy ARN and policy type.”</li><li>“If a Service Control Policy ARN is present, involve the central platform or security team that manages AWS Organizations.”</li><li>“If a permission boundary ARN is present, review the boundary before adjusting any role policies.”</li></ul><p>This addition aligns on-call responders around the new diagnostic signal.</p><h3>2. Enhance Log Enrichment Pipelines</h3><p>In log pipelines or Lambda functions that process CloudWatch logs:</p><ul><li>Parse out the policy ARN when present.</li><li>Add fields like policy_type (scp, identity, boundary, session, resource) and policy_arn.</li><li>Build search presets or dashboards that pivot on these fields.</li></ul><p>This makes historical investigations around IAM issues far more efficient.</p><h3>3. Strengthen IAM Documentation and Ownership</h3><p>Now that ARNs appear directly in error messages, policy ownership becomes more visible. Teams should:</p><ul><li>Document which team owns which SCPs and boundary policies.</li><li>Use consistent naming conventions that include team or function identifiers.</li><li>Ensure tickets and runbooks refer to policies by ARN and friendly name.</li></ul><p>This helps downstream users quickly identify whom to contact for permission issues.</p><h3>4. Encourage Defensive Policy Design</h3><p>Since the impact of explicit denies is now more discoverable, platform teams can:</p><ul><li>Use explicit denies more confidently where needed for security posture.</li><li>Monitor deny patterns over time to spot friction and refine policies.</li><li>Move away from ambiguous arrangements where it is unclear which layer is responsible.</li></ul><p>The shift turns explicit deny from a “sharp tool that might confuse everyone” into a more observable and auditable control.</p><h3>Closing Thoughts</h3><p>The addition of policy ARNs to AccessDenied and AccessDeniedException error messages may look like a minor feature on the surface. For anyone who has spent long hours untangling IAM and Organizations policies during incidents, it is anything but minor.</p><p>By pointing directly at the <strong>exact policy</strong> responsible for a denial, AWS has:</p><ul><li>Shortened the feedback loop for IAM troubleshooting</li><li>Made layered access control architectures more operationally feasible</li><li>Enabled richer automation and observability around permission issues</li><li>Reduced cognitive overhead for both senior and junior engineers</li></ul><p>In an era where DevOps and platform teams manage hundreds of accounts, thousands of roles, and an ever-growing web of guardrails, that matters. Those small, high-quality diagnostics are often what separate a thirty-minute investigation from a three-hour one.</p><p>The next time an AccessDenied error appears, reading a single ARN in the message may be all it takes to jump directly to the root cause. That is exactly the kind of subtle AWS improvement that quietly saves teams hours of troubleshooting over the long run.</p><blockquote>Follow me on Medium for more DevOps insights, Python tools, and cloud infrastructure tutorials</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d1d49f2be7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>