<?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 Sasichandaka on Medium]]></title>
        <description><![CDATA[Stories by Sasichandaka on Medium]]></description>
        <link>https://medium.com/@sasichandaka143?source=rss-dee8ac62dc86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Eu8_FLr_XUe0Cz7w</url>
            <title>Stories by Sasichandaka on Medium</title>
            <link>https://medium.com/@sasichandaka143?source=rss-dee8ac62dc86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:26:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sasichandaka143/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[UPI — The driver of India’s Digital Payments boom
Unified Payments Interface(UPI)]]></title>
            <link>https://medium.com/@sasichandaka143/upi-the-driver-of-indias-digital-payments-boom-unified-payments-interface-upi-a4d07750f590?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4d07750f590</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 04:06:40 GMT</pubDate>
            <atom:updated>2026-11-17T04:06:40.541Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIEL4oWghp-Jyv4OEAmX5Q.png" /></figure><p>Unified Payments Interface (UPI) is a system that powers multiple bank accounts into a single mobile application (of any participating bank), merging several banking features, seamless fund routing &amp; merchant payments into one hood. It also caters to the “Peer to Peer” collect request which can be scheduled and paid as per requirement and convenience. Envisioned by India’s central government, the Unified Payments Interface (UPI) is a combination of an information exchange protocol and a white label front end. The government-endorsed Bharat Interface for Money enables the seamless transfer of funds across PSPs. The solution pairs the seamless exchange of data via open APIs with a customizable front end to democratize access to and usability of digital payments.</p><p>With the above context in mind, NPCI conducted a pilot launch with 21 member banks. The pilot launch was on 11th April 2016 by Dr. Raghu ram G Rajan, Governor, RBI at Mumbai. Banks have started to upload their UPI-enabled Apps on the Google Play store from 25th August 2016 onwards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-bqCxppCSs2c8fN7" /></figure><h3>How is it unique?</h3><p>· Immediate money transfers through mobile device round the clock 24*7 and 365 days.</p><p>· Single mobile application for accessing different bank accounts.</p><p>· Single Click 2 Factor Authentication — Aligned with the Regulatory guidelines, yet provides for a very strong feature of seamless single click payment.</p><p>· Virtual address of the customer for Pull &amp; Push provides for incremental security with the customer not required to enter the details such as Card no, Account number; IFSC, etc.</p><p>· QR Code</p><p>· Best answer to Cash on Delivery hassle, running to an ATM or rendering exact amount.</p><p>· Merchant Payment with Single Application or In-App Payments.</p><p>· Utility Bill Payments, Over Counter Payments, QR Code (Scan and Pay) based payments.</p><p>· Donations, Collections, and Disbursements Scalable.</p><p>· Raising complaints from Mobile apps directly.</p><h3>Participants in UPI</h3><p>· Payer PSP</p><p>· Payee PSP</p><p>· Remitter Bank</p><p>· Beneficiary Bank</p><p>· NPCI</p><p>· Bank Account holders</p><p>· Merchants</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dfyT518et4p2w19_" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*fk6uHPiR96OA6wce" /></figure><p>Framing the vision for an open digital payments ecosystem</p><p>• Diagnosed key challenges to the uptake of the Immediate Payment Service (IMPS), India’s existing instant settlement system — especially for smaller transactions. These included low network connectivity and the lack of an accessible user-friendly front end.</p><p>• Developed the vision for an information exchange that would enable a seamless flow of data and payments across banks and PSPs. Supported this development by consulting with</p><p>iSPIRT — a development community — to frame design principles for the solution. Consulted the Reserve Bank of India for guidance on framing broad policies for data protection and dispute resolution.</p><p>Collaboratively developing the solution</p><p>• Developed UPI protocol through deep consultations with Fintechs partners, development sector thought leaders and the ecosystem of banks and PSPs.</p><p>• Engaged banks to assuage concerns about interoperability while seeking their inputs on both solution design and tailoring of the customer experience for each bank. Gained momentum by lobbying and enrolling the State Bank of India, India’s largest FSP, creating a pull for more than 40 providers to join before launch.</p><p>Accelerating growth through ecosystem-wide buy-in</p><p>• Launched the Bharat Interface for Money (BHIM), a provider-agnostic, UPI-based application for facilitating interbank payments. The government’s endorsement of BHIM as India’s national payments app created a groundswell of demand, incentivizing participation by providers and giving them a basic UPI.</p><p>• Expanded eligibility to banks and non-banks, allowing for participation by diverse market players — each empowered to develop and innovate freely</p><p>• Updated governance to reflect the views and inputs of an increasingly diverse roster of participating banks, giving voice to both original promoter banks and new participants.</p><p>Widening UPI’s sphere of influence</p><p>• Evolved UPI to include new payments models (e.g., small ticket loans, cash withdrawals) and to expand into the wider payments ecosystem. For example, NPCI is actively exploring the viability of Online Dispute Resolution (ODR) for identifying failed transactions and informing efforts to protect the user from technical failures.</p><p>• Solidified UPI’s reputation as the gold standard for open, interoperable digital payments, resulting in other emerging markets (e.g., Indonesia, Myanmar, Nepal) recognizing the potential to transform their digital economies.</p><p>Steps for Registration:</p><p>· User downloads the UPI application from the App Store/Banks website</p><p>· User creates his/her profile by entering details like name, virtual id (payment address), password, etc.</p><p>· User goes to the “Add/Link/Manage Bank Account” option and links the bank and account number with the virtual id</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zaor_rwDqgZkwxJj" /></figure><p>Generating UPI — PIN:</p><p>· User selects the bank account from which he/she wants to initiate the transaction</p><p>· User clicks one of the options -</p><p>Change M-PIN</p><p>In the case of 3(a) -</p><p>· User receives OTP from the Issuer bank on his/her registered mobile number</p><p>· User now enters last 6 digits of Debit card number and expiry date</p><p>· User enters OTP and enters his preferred numeric UPI PIN (UPI PIN that he would like to set) and clicks on Submit</p><p>· After clicking submit, the customer gets a notification (successful or decline)</p><p>In the case of 2(b) -</p><p>· User enters his old UPI PIN and preferred new UPI PIN (UPI PIN that he would like to set) and clicks on Submit</p><p>· After clicking submit, the customer gets a notification (successful or failure)</p><h3>Product</h3><p>A. Financial Transactions: UPI supports the following financial transactions viz.</p><p>Pay Request: A Pay Request is a transaction where the initiating customer is pushing funds to the intended beneficiary. Payment Addresses include Mobile Number &amp; MMID, Account Number &amp; IFSC, and Virtual ID</p><p>Collect Request: A Collect Request is a transaction where the customer is pulling funds from the intended remitter by using a Virtual ID.</p><p>B. Non-Financial Transactions: UPI will support the following types of non-financial transactions on any PSP App viz.</p><p>· Mobile Banking Registration*</p><p>· Generate One Time Password (OTP)</p><p>· Set/Change PIN</p><p>· Check Transaction Status</p><p>· Raise Dispute/Raise query</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4d07750f590" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UPI (Unified Payments Interface) and its impact on digital payments]]></title>
            <link>https://medium.com/@sasichandaka143/upi-unified-payments-interface-and-its-impact-on-digital-payments-7a2c921a50d4?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a2c921a50d4</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 03:48:38 GMT</pubDate>
            <atom:updated>2026-11-16T03:48:38.256Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8q_8XqekFRoivEwccgVgg.png" /></figure><p>Introduction</p><p>India’s banking and financial services industry has been transformed in the last decade, spurred by technological advancements and government initiatives for digital payments. One of the most revolutionary changes has been the launch of the Unified Payments Interface (UPI), a real-time payment system that has transformed digital payments in India.</p><p>In April 2016, UPI was introduced by the National Payments Corporation of India (NPCI) and has since emerged from being an innovative payment instrument to the driver of India’s digital economy. With its facilitation of instant, secure, and cashless payments, UPI has reduced dependence on cash substantially, promoted financial inclusion, and placed India among the leading nations in digital payments.</p><p>This article delves into the emergence of UPI, its influence on India’s financial landscape, the challenges it poses, and its future direction.</p><p>The Genesis of UPI: A Revolution in Digital Payments</p><p>Prior to UPI, digital payments in India were fragmented. Customers used to depend on:</p><p>· NEFT/RTGS (slow bank transfers)</p><p>· Mobile wallets (closed-loop systems such as Paytm)</p><p>· Credit/debit cards (low merchant acceptance)</p><p>· Cash transactions (dominant but inefficient)</p><p>· UPI was conceived to break these barriers by providing:</p><p>· Interoperability: One platform connecting several bank accounts.</p><p>· Instant settlements: Real-time transactions 24/7.</p><p>· No middlemen: Bank-to-bank direct transfers.</p><p>· Easy to use: Simple Virtual Payment Addresses (VPAs) rather than bank information.</p><p>The demonetization step by the government in November 2016 served as a catalyst, driving millions toward digital payments and speeding up UPI growth.</p><p>The Evolution of UPI: Milestones that Marked the Growth</p><p>1. Exponential Growth in Transactions</p><p>· 2016–17: 0.1 million transactions every month.</p><p>· 2020: Crossed 2 billion monthly transactions.</p><p>· 2023: Reached over 10 billion monthly transactions (mid-2023).</p><p>· 2024: UPI handles more transactions than all card networks in the world put together.</p><p>2. Leadership in Peer-to-Peer (P2P) and Merchant Payments</p><p>P2P Transfers: UPI became the go-to for dividing bills, sending money to relatives, and even lending money informally.</p><p>Merchant Payments: Street vendors, small stores, and big retailers now accept UPI through QR codes.</p><p>3. Global Expansion</p><p>UPI International: Introduced in 2023, enabling Indians to pay using UPI in UAE, Singapore, France, and other nations.</p><p>NIPL (NPCI International): Partnering with global fintech firms to expand UPI’s reach.</p><p>Impact of UPI on India’s Financial Ecosystem</p><p>1. Financial Inclusion</p><p>Jan Dhan-Aadhaar-Mobile (JAM) Trinity: UPI leveraged these to bring unbanked populations into the formal economy.</p><p>Small Merchants: Even kirana stores now accept digital payments, reducing cash dependency.</p><p>2. Decline in Cash Usage</p><p>Cash-to-GDP Ratio: Fell from 12% in 2016 to 9.7% in 2023.</p><p>ATM Withdrawals: Growth slowed as UPI replaced small cash transactions.</p><p>3. Fintech Innovation Growth</p><p>Third-Party Applications: PhonePe, Google Pay, Paytm, and WhatsApp Pay constructed ecosystems on UPI.</p><p>Credit in UPI: RBI permitted pre-approved credit lines through UPI (2023), challenging credit cards.</p><p>4. Disruption of Traditional Banking</p><p>Lower Card Usage: Debit card transactions remained stagnant as UPI became predominant.</p><p>Banks and Fintech: Banks initially fought against UPI but eventually came on board to remain competitive.</p><p>Challenges and Regulatory Issues</p><p>Despite its success, UPI is challenged:</p><p>1. Zero-MDR (Merchant Discount Rate) Sustainability</p><p>Zero merchant transaction charges, hence free UPI but sustainability issues arise.</p><p>RBI and Govt. debates: Should UPI charge small fees to ensure sustainable long-term presence?</p><p>2. Fraud and Cybersecurity Threats</p><p>Phishing scams: Cheat users into making unauthorized transactions get approved.</p><p>Call for robust authentication: RBI brought in UPI Lite for smaller offline transactions.</p><p>3. Dependence on Very Few Players</p><p>PhonePe &amp; Google Pay account for ~85% of UPI transactions, a competition risk.</p><p>NPCI’s 30% market cap rule: Delayed to 2025 to avoid disruption.</p><p>The Future of UPI: What’s Next?</p><p>1. Credit on UPI</p><p>RBI’s 2023 move to allow credit via UPI could disrupt credit cards.</p><p>Banks like HDFC, SBI now offer pre-approved credit lines on UPI.</p><p>2. Offline UPI and Rural Expansion</p><p>UPI Lite X: Allows transactions without internet, boosting rural adoption.</p><p>Voice-based UPI: For non-smartphone users.</p><p>3. Global Ambitions</p><p>UPI-PayNow linkage (India-Singapore) sets the stage for cross-border dominance.</p><p>Potential rivalry with SWIFT in remittances.</p><p>4. Smart Payments and AI</p><p>AI-powered fraud protection for increased security.</p><p>UPI talk: Voice assistant making payments.</p><p>Conclusion</p><p>UPI has been a revolution of sorts in the Indian financial scenario. From helping street vendors get cashless to challenging international payments behemoths, UPI has transformed money movement in India. Although challenges such as the threat of fraud and market dominance still exist, innovations such as credit-on-UPI and overseas expansion hold the promise of an even more disruptive future.</p><p>As India works towards a $5 trillion economy, UPI will continue to be at the core of its digital financial ecosystem, leading the world in real-time, inclusive, and scalable payments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a2c921a50d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker-compose, Docker-Network, Docker-volume for DevOps Engineers]]></title>
            <link>https://medium.com/@sasichandaka143/docker-compose-docker-network-docker-volume-for-devops-engineers-c16229c42463?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/c16229c42463</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Wed, 30 Sep 2026 02:55:51 GMT</pubDate>
            <atom:updated>2026-09-30T02:55:51.384Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker-Volume</h3><p>Docker allows you to create something called volumes. Volumes are like separate storage areas that can be accessed by containers. They allow you to store data, like a database, outside the container, so it doesn’t get deleted when the container is deleted. You can also mount from the same volume and create more containers having same data.</p><p>Docker volumes are a way to persist data outside of containers. They allow data to be shared between containers and can be mounted to specific directories within a container.</p><p>Some commands used in docker volume :</p><ul><li>docker volume create &lt;name&gt;: Creates a new volume with the specified name.</li><li>docker volume ls: Lists all volumes available on the Docker host.</li><li>docker volume inspect &lt;name&gt;: Displays detailed information about the specified volume, including the mountpoint and driver used.</li><li>docker volume rm &lt;name&gt;: Removes the specified volume. Note that the volume must be unmounted from all containers before it can be removed.</li></ul><h3>Docker Network</h3><p>Docker allows you to create virtual spaces called networks, where you can connect multiple containers (small packages that hold all the necessary files for a specific application to run) together. This way, the containers can communicate with each other and with the host machine (the computer on which the Docker is installed).</p><p>Docker networks allow containers to communicate with each other and with external networks. By default, each container is connected to a bridge network, but Docker also provides several other types of networks, including host and overlay networks.</p><p>When we run a container, it has its own storage space that is only accessible by that specific container. If we want to share that storage space with other containers, we can’t do that.</p><p>Some commands used in Docker networks :</p><ul><li>docker network ls: Lists all networks available on the Docker host.</li><li>docker network create &lt;name&gt;: Creates a new network with the specified name and driver.</li><li>docker network inspect &lt;name&gt;: Displays detailed information about the specified network, including the containers and endpoints connected to it.</li><li>docker network rm &lt;name&gt;: Removes the specified network. Note that the network must be disconnected from all containers before it can be removed.</li></ul><h3>Task-1</h3><ul><li>Create a multi-container docker-compose file which will bring <em>UP</em> and bring <em>DOWN</em> containers in a single shot ( Example — Create application and database container )</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*VG1-CtJcmvXyPGOSVRheHw.png" /></figure><ul><li><em>hints:</em></li><li>Use the docker-compose up command with the -d flag to start a multi-container application in detached mode.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*HZqnx8ozLxlolTFu.png" /></figure><ul><li>Use the docker-compose scale command to increase or decrease the number of replicas for a specific service. You can also add <a href="https://stackoverflow.com/questions/63408708/how-to-scale-from-within-docker-compose-file">replicas</a> in deployment file for <em>auto-scaling</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*DlYVX5QHqk4QGqTS.png" /></figure><ul><li>Use the docker-compose ps command to view the status of all containers, and docker-compose logs to view the logs of a specific service.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*1_xlA9gBsOjwMcyE.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c16229c42463" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build, Test, and Deploy an Application Through a Pipeline Job in Jenkins]]></title>
            <link>https://medium.com/@sasichandaka143/how-to-build-test-and-deploy-an-application-through-a-pipeline-job-in-jenkins-7a03cef0513b?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a03cef0513b</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 12:51:00 GMT</pubDate>
            <atom:updated>2026-06-23T12:51:00.965Z</atom:updated>
            <content:encoded><![CDATA[<p>A <strong>Pipeline Job</strong> is the most commonly used job type in Jenkins for implementing CI/CD automation.</p><p>Pipelines are written using <strong>Groovy-based syntax</strong> and allow us to define the entire build, test, and deployment workflow as code.</p><h3>Types of Jenkins Pipelines</h3><h3>1. Declarative Pipeline</h3><ul><li>Easier to write and understand.</li><li>More structured and readable.</li><li>Better for troubleshooting and maintenance.</li><li>Recommended for most CI/CD workflows.</li></ul><p><strong>Limitation:</strong> Less flexible when handling complex logic such as advanced loops and conditions.</p><h3>2. Scripted Pipeline</h3><ul><li>Uses pure Groovy scripting.</li><li>More flexible and powerful.</li><li>Supports complex logic, loops, and conditional statements.</li></ul><p><strong>Limitation:</strong> More difficult to read, maintain, and troubleshoot.</p><h3>Real-World Usage</h3><p>In most real-world projects, teams primarily use <strong>Declarative Pipelines</strong> and occasionally incorporate <strong>Scripted Pipeline</strong> blocks when advanced logic is required.</p><h3>Declarative Pipeline Structure</h3><p>A Declarative Pipeline always starts with the keyword:</p><pre>pipeline</pre><h3>Easy Way to Remember</h3><pre>P → Pipeline<br>A → Agent<br>S → Stages<br>S → Stage<br>S → Steps</pre><h3>Components</h3><h3>Pipeline:</h3><p>Defines the beginning of the Jenkins pipeline.</p><pre>pipeline {</pre><h3>Agent:</h3><p>Specifies where the pipeline should run.</p><p>Examples:</p><pre>agent any  //mention to run the pipeline on the available server</pre><p>or</p><pre>agent { <br>     node {<br>      label &#39;slave-node&#39;  // Run the pipeline on the node based on the matching label <br>          }<br>      }</pre><h3>Stages:</h3><p>Contains all stages involved in the CI/CD process.</p><pre>stages {</pre><h3>Stage:</h3><p>Represents an individual phase of the pipeline.</p><p>Examples:</p><pre>Build<br>Test<br>Deploy</pre><h3>Steps:</h3><p>Contains the actual commands that Jenkins executes.</p><pre>steps {<br>    sh &#39;mvn clean package&#39;<br>}</pre><h3>Environment</h3><p>The environment block is used to define variables that can be accessed throughout the pipeline.</p><p>Instead of hardcoding values multiple times, define them once and reuse them.</p><h3>Example</h3><pre>environment {<br>    APP_NAME = &quot;java-app&quot;<br>    NEXUS_URL = &quot;http://nexus:8081&quot;<br>    DEPLOY_ENV = &quot;production&quot;<br>}</pre><h3>Usage</h3><pre>echo &quot;${APP_NAME}&quot;</pre><h3>Why use Environment Variables?</h3><ul><li>Avoid hardcoding values</li><li>Improve maintainability</li><li>Reuse values across stages</li><li>Store URLs, application names, versions, etc.</li></ul><h3>Post:</h3><p>The post block defines actions that should run after pipeline execution.</p><p>It is mainly used for:</p><ul><li>Notifications</li><li>Cleanup</li><li>Success messages</li><li>Failure handling</li></ul><h3>Syntax</h3><pre>post {<br>     success {<br>        echo &#39;Build Successful&#39;<br>    }<br>    failure {<br>        echo &#39;Build Failed&#39;<br>    }<br>    always {<br>        echo &#39;Pipeline Completed&#39;<br>    }<br>}</pre><h3>Complete Declarative Pipeline Example</h3><pre>pipeline {<br>        agent any<br>    environment {<br>        APP_NAME = &quot;java-app&quot;<br>        NEXUS_URL = &quot;http://nexus:8081&quot;<br>    }<br>    stages {<br>        stage(&#39;Checkout&#39;) {<br>            steps {<br>                git &#39;https://github.com/example/repo.git&#39;<br>            }<br>        }<br>        stage(&#39;Build&#39;) {<br>            steps {<br>                sh &#39;mvn clean package&#39;<br>            }<br>        }<br>        stage(&#39;Upload Artifact&#39;) {<br>            steps {<br>                echo &quot;Uploading artifact to Nexus&quot;<br>            }<br>        }<br>        stage(&#39;Deploy&#39;) {<br>            steps {<br>                echo &quot;Deploying Application&quot;<br>            }<br>        }<br>    }<br>    post {<br>        success {<br>            echo &quot;Deployment Successful&quot;<br>        }<br>        failure {<br>            echo &quot;Deployment Failed&quot;<br>        }<br>        always {<br>            echo &quot;Pipeline Execution Completed&quot;<br>        }<br>    }<br>}</pre><h3>Typical Real-World Flow</h3><pre>Pipeline<br>   │<br>   ├── Agent<br>   ├── Environment<br>   │<br>   ├── Stages<br>   │      │<br>   │      ├── Checkout<br>   │      ├── Build<br>   │      ├── Test<br>   │      ├── Package<br>   │      └── Deploy<br>   │<br>   └── Post<br>          ├── Success<br>          ├── Failure<br>          └── Always</pre><h3>Scripted Pipeline Structure</h3><p>A <strong>Scripted Pipeline</strong> always starts with the node block.</p><pre>node {<br>    stage(&#39;Build&#39;) {<br>        echo &#39;Building Application&#39;<br>    }<br>    stage(&#39;Test&#39;) {<br>        echo &#39;Testing Application&#39;<br>    }<br>    stage(&#39;Deploy&#39;) {<br>        echo &#39;Deploying Application&#39;<br>    }<br>}</pre><h3>Why do we use node?</h3><p>The node block tells Jenkins:</p><p><em>“Allocate a workspace on an available agent/node and execute the pipeline steps inside it.”</em></p><p>Without a node block, Jenkins does not know where to run the commands.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a03cef0513b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Architecture]]></title>
            <link>https://medium.com/@sasichandaka143/docker-architecture-4f351d25a0b7?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f351d25a0b7</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 04:48:00 GMT</pubDate>
            <atom:updated>2026-06-23T04:48:00.338Z</atom:updated>
            <content:encoded><![CDATA[<h3>Types of Application Architectures:</h3><h3>Monolithic Architecture</h3><p>In a Monolithic Architecture, all components of an application are deployed together on a single server and typically use a single database.</p><p><strong>Advantages</strong></p><ul><li>Simple to develop and deploy.</li><li>Easy to test during the initial stages of development.</li></ul><p><strong>Disadvantages</strong></p><ul><li>Difficult to scale as the application grows.</li><li>A failure in one component can affect the entire application.</li><li>Maintenance becomes challenging for large applications.</li><li>Deploying changes requires redeploying the whole application.</li></ul><h3>Microservices Architecture</h3><p>In a Microservices Architecture, an application is divided into multiple independent services.</p><p>Each service:</p><ul><li>Performs a specific function.</li><li>Can have its own server and database.</li><li>Can be developed, deployed, and scaled independently.</li></ul><p><strong>Advantages</strong></p><ul><li>Easier scalability.</li><li>Independent deployments.</li><li>Better fault isolation.</li><li>Easier maintenance and upgrades.</li></ul><h3>Evaluation of Docker</h3><p>Before Docker, organizations primarily relied on <strong>Virtual Machines (VMs)</strong> to run and test applications.</p><p>To create and manage VMs, a software layer called a <strong>Hypervisor</strong> was used.</p><p>The hypervisor enables multiple virtual machines to run on a single physical server.</p><p>Each VM contains:</p><ul><li>Guest Operating System</li><li>Application Code</li><li>Libraries &amp; Dependencies</li></ul><p>This approach is known as <strong>Virtualization</strong>.</p><h3>Limitations with Virtual Machines</h3><ul><li>Each VM requires a separate operating system.</li><li>High CPU, memory, and storage consumption.</li><li>Slower startup times.</li><li>Fewer applications can run on the same server.</li><li>Increased infrastructure costs.</li></ul><p>As the number of VMs grows, resource utilization becomes less efficient.</p><p>To overcome these limitations, Docker introduced <strong>Containerization</strong>.</p><h3>What is Docker?</h3><ul><li>Docker is an open-source containerization platform used to build, package, deploy, and run applications inside containers.</li><li>Docker is written in the <strong>Go programming language</strong>.</li><li>Docker uses <strong>OS-level virtualization</strong>, also known as <strong>Containerization</strong>.</li><li>Unlike Virtual Machines, containers share the host operating system kernel instead of running a separate guest operating system.</li><li>Docker is platform-independent, but Docker Engine runs natively on Linux-based kernel features.</li></ul><h3>Containerization</h3><p>Containerization is the process of packaging an application along with:</p><ul><li>Source Code</li><li>Runtime</li><li>Libraries</li><li>Dependencies</li><li>Configuration Files</li></ul><p>This ensures that the application runs consistently across different environments.</p><h3>Why Docker?</h3><p>Before Docker, developers often faced the problem:</p><p>“The application works on my machine but not on the user’s or production machine.”</p><p>This happened because different environments had different:</p><ul><li>Operating systems</li><li>Library versions</li><li>Dependencies</li><li>Configurations</li></ul><p>Docker solves this by packaging the application along with all its dependencies into a container, ensuring consistency across Development, Testing, and Production environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*W7zjCeWekZQUcM2PEUb5Lw.png" /></figure><h3>Docker Architecture</h3><p>Docker Architecture consists of three main components:</p><p><strong>1. Docker Client</strong></p><ul><li>Docker Client is the interface through which users interact with Docker.</li><li>It is the place where users execute Docker commands.</li></ul><p>Examples:</p><pre>docker run<br>docker pull<br>docker build</pre><p>The Docker Client sends these commands to the Docker Daemon for execution.</p><h3>2. Docker Host</h3><p>The Docker Host is the machine where Docker is installed.</p><p>It contains:</p><ul><li>Docker Daemon (dockerd)</li><li>Images</li><li>Containers</li><li>Networks</li><li>Volumes</li></ul><h3>Docker Daemon</h3><p>The Docker Daemon is a background service responsible for managing Docker objects.</p><p>It receives requests from the Docker Client and performs operations such as:</p><ul><li>Building images</li><li>Pulling images</li><li>Creating containers</li><li>Starting containers</li><li>Stopping containers</li><li>Managing networks and volumes</li></ul><h3>3. Docker Registry</h3><p>A Docker Registry is a repository used to store and distribute Docker images.</p><p>Examples:</p><ul><li>Docker Hub</li><li>Private Docker Registry</li><li>Amazon ECR</li><li>Azure Container Registry</li></ul><p>A Registry allows users to:</p><ul><li>Push images</li><li>Pull images</li><li>Share images</li></ul><p>When an image is not available locally, Docker downloads it from the registry.</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*oolXAr4X7Siiz9Ie_wjZuA.png" /></figure><h3>Docker Images and Containers</h3><p><strong>Docker Image</strong></p><ul><li>A read-only template containing application code, runtime, libraries, dependencies, and configuration files.</li><li>Images serve as blueprints for creating containers.</li></ul><p><strong>Docker Container</strong></p><ul><li>A running instance of a Docker image.</li><li>Contains the application and all required dependencies.</li><li>Provides a consistent environment across development, testing, and production.</li></ul><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*cX_QNmKuXDVJ7lbDPMtpSQ.png" /></figure><p>You must first remove the container and then remove the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*HACEIn5EjnCjYmm2aTW-Pg.png" /></figure><h3>Create and run the Container in Detached Mode</h3><pre>docker run -d --name &lt;container-name&gt; &lt;image-name&gt;</pre><h3>Port Mapping</h3><p>To access an application running inside a container, publish the container port to the host machine.</p><pre>docker run -d --name &lt;container-name&gt; -p hostPort:containerPort &lt;image-name&gt;</pre><p>Example:</p><pre>docker run -d --name nginx -p 80:80 nginx<br>                             ↓    ↓<br>                       Host Port  Container Port</pre><p>Where:</p><ul><li>Host Port → Port exposed on the docker host .</li><li>Container Port → Port on which the application runs inside the container.</li></ul><h3>Key Takeaways</h3><ol><li>A Docker Image is required to create a Container.</li><li>Docker service must be running before executing Docker commands.</li><li>Container must be running before you can access it using docker exec.</li><li>A running container cannot be removed directly. Stop the container first, then remove it.</li><li>A Docker Image cannot be removed if one or more containers are using it. Remove the containers first, then delete the image.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f351d25a0b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[*AWS IAM *]]></title>
            <link>https://medium.com/@sasichandaka143/aws-iam-f7f2579b8c18?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7f2579b8c18</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 12:36:37 GMT</pubDate>
            <atom:updated>2026-06-03T12:37:29.190Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What is AWS IAM? WHY?</strong></h3><p><strong>What is AWS IAM?</strong></p><p>IAM stands for <strong>Identity and Access Management</strong>. It is the system that controls <em>who</em> can do <em>what</em> inside your AWS account. Every API call, every console login, every S3 download — IAM decides whether it’s allowed or denied.</p><p>AWS IAM has four core building blocks. Think of them as a layered access system:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*fivNKewpGovRTT9mxqR4tg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*xq0JrmUTlDjvX4E4m_40fA.png" /></figure><p><strong>IAM is free.</strong> There is no charge for creating users, groups, roles, or policies. You pay only for the AWS resources those identities actually use.</p><p><strong>Step 1 — IAM Users</strong></p><p><strong>Creating an IAM User</strong></p><p>An IAM User represents a <strong>specific person or application</strong> that needs to interact with AWS. Each user gets their own login credentials — either a password for the console or access keys for programmatic access via the CLI/SDK.</p><p>The most important rule: <strong>never use the root account</strong> for day-to-day tasks. The root account has unlimited, unstoppable access to everything in your AWS account including billing. If root credentials are leaked, your entire account is compromised. Always create a named IAM user instead.</p><p><strong>Root account rule:</strong> The root account (the email/password you used to sign up for AWS) should only be used for account-level tasks like changing the billing email or closing the account. Lock it with MFA and never create access keys for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*JE7dFzBIC-CmJY1MfWPQBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*QS0BqN5gUxhJ6I508UiK_w.png" /></figure><p><strong>Step 2 — IAM Groups</strong></p><p><strong>User Groups — manage permissions at scale</strong></p><p>Attaching policies directly to individual users quickly becomes unmanageable. If you have 20 developers and need to give them all S3 read access, you’d have to update 20 users. Instead, create a <strong>Group</strong>, attach the policy once to the group, and add all developers to it. One change propagates to everyone instantly.</p><p>A user can belong to <strong>multiple groups</strong> and inherits the combined permissions of all groups they’re in. Groups cannot be nested inside other groups — they are a flat structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*XUiTaQunxyUGkZnUnOpd_w.png" /></figure><p><em>▲ User Groups list — </em><em>developers group has read-only S3 and EC2 policies. </em><em>devops group has full AdministratorAccess. Policies are attached once to the group, all members inherit them.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*4G2S-XZY2kr0TvKX3MzYEA.png" /></figure><p><em>▲ Create group wizard — name the group, add users, attach policies in one screen. Tick S3ReadOnly and EC2ReadOnly (highlighted), then click Create (red). All users in this group instantly inherit both policies.</em></p><p><strong>Never attach AdministratorAccess to a group unless absolutely necessary.</strong> Follow the “principle of least privilege” — grant only the minimum permissions needed to do the job. If a developer only reads S3, give them AmazonS3ReadOnly, not full admin.</p><p><strong>Step 3 — IAM Roles</strong></p><p><strong>IAM Roles — temporary identity for services</strong></p><p>A Role is not assigned to a person — it is assumed <strong>temporarily</strong> by an AWS service, application, or even another AWS account. When an EC2 instance needs to read from S3, you don’t hardcode AWS credentials in the instance. Instead, you attach a Role to the instance. The instance automatically gets short-lived, rotating credentials managed entirely by AWS.</p><p>This is the secure, modern way to give AWS services permission to interact with each other. Every Lambda function, ECS task, CodeBuild job, and EC2 instance should use a Role — never access keys embedded in code.</p><p><strong>Real-world analogy:</strong> A Role is like a staff badge at a hospital. A doctor picks up the “surgery” badge before entering the operating room — they assume that role temporarily, get access to the surgery suite, and hand the badge back when done. The badge itself has the permissions; the person just borrows it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*OdqJawVjzl1zqXwPAPYDpg.png" /></figure><p><em>▲ Roles list — </em><em>ec2-s3-read-role lets EC2 instances assume it and read S3. </em><em>lambda-dynamo-role lets Lambda access DynamoDB. </em><em>cross-account-role allows access from another AWS account.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*8eabKOUkOGUIkqAPvk_bwg.png" /></figure><p><em>▲ Create role — Step 1 picks the trusted entity. Select “AWS service” → “EC2” (both annotated in red) to create a role your EC2 instances can assume. Next step attaches the permission policies.</em></p><p><strong>Attaching a Role to EC2:</strong> After creating the role, go to your EC2 instance → Actions → Security → Modify IAM role → attach your new role. The instance can now call S3, DynamoDB, etc. without any hardcoded keys. AWS rotates the temporary credentials automatically every few hours.</p><p><strong>Step 4 — IAM Policies</strong></p><p><strong>IAM Policies — the JSON permission documents</strong></p><p>A Policy is a JSON document that defines exactly what actions are allowed or denied, on which resources, and under what conditions. It is the actual permission — users, groups, and roles are all just containers that policies get attached to.</p><p>There are two types: <strong>AWS Managed policies</strong> are pre-built by Amazon (e.g., AmazonS3ReadOnly) — convenient but broad. <strong>Customer Managed policies</strong> are ones you write yourself — more specific and always preferred in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*5ReIs5CIT_wbxJhTEqy99w.png" /></figure><p><em>▲ Policies list — filter by “Customer managed” (red annotation) to see your own policies. </em><em>MyS3BucketReadOnly is a custom policy scoped to one specific bucket — far more secure than the AWS managed </em><em>AmazonS3ReadOnly which grants access to all buckets.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*t-HWVywqhF3TkzMNsqwYUQ.png" /></figure><p><em>▲ Policy JSON editor — three key fields annotated in red: </em><em>Effect (Allow/Deny), </em><em>Action (what S3 operations), and </em><em>Resource (which specific bucket ARN). Scoping to one bucket is the least-privilege pattern.</em></p><p><strong>Policy JSON structure — the three parts that matter:</strong><br> • Effect: either &quot;Allow&quot; or &quot;Deny&quot;. Explicit Deny always wins over any Allow.<br> • Action: list of API actions like s3:GetObject, ec2:DescribeInstances, or * for everything.<br> • Resource: the ARN of the specific resource. Use * for all, but always narrow this down in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*ChLgLX6v4zV2moOb-xGVKg.png" /></figure><p><em>▲ IAM Policy Simulator — select a user, pick actions, click Run simulation (red). Results show </em><em>s3:GetObject and </em><em>s3:ListBucket are allowed; delete and write are correctly denied. Use this before deploying policy changes.</em></p><p><strong>Always test with the Policy Simulator</strong> before attaching a new policy in production. It shows exactly what is allowed or denied and which policy statement matched — saving you from accidental over-permission or broken access.</p><p><strong>Step 5 — MFA &amp; Best Practices</strong></p><p><strong>Enable MFA &amp; Security credentials</strong></p><p>Multi-Factor Authentication (MFA) adds a second layer of security beyond just a password. Even if a password is stolen, an attacker cannot log in without the time-based code from the user’s authenticator app or hardware key. AWS supports virtual MFA (Google Authenticator, Authy), hardware tokens, and FIDO security keys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*D8GckDspncxR-2rBDcibXw.png" /></figure><p><em>▲ Security credentials tab — shows MFA device status (active/green), access keys with last-used date, and console password rotation schedule. Create access keys only for programmatic use (red annotation).</em></p><p><strong>Access key security rules:</strong><br>1. Never commit access keys to GitHub, ever — bots scan public repos within seconds.<br>2. Never create access keys for the root account.<br>3. Rotate keys every 90 days — set a calendar reminder.<br>4. Delete keys that haven’t been used in 30+ days — if it’s not being used, it shouldn’t exist.</p><p><strong>Summary</strong></p><p><strong>IAM best practices — the golden rules</strong></p><p>Always do this</p><p>✓ Enable MFA on root and all IAM users</p><p>✓ Use groups to assign permissions, not individual users</p><p>✓ Follow least privilege — grant minimum needed</p><p>✓ Use Roles for EC2, Lambda, ECS — never hardcode keys</p><p>✓ Test policies with the Policy Simulator before applying</p><p>✓ Rotate access keys every 90 days</p><p><strong>Never do this</strong></p><p>✗ Use root account for daily work</p><p>✗ Create access keys for root</p><p>✗ Share credentials between team members</p><p>✗ Attach AdministratorAccess unless truly required</p><p>✗ Hardcode access keys in source code or config files</p><p>✗ Leave unused users, keys, or roles active</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7f2579b8c18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[full deep-dive blog on Security Groups vs Network ACLs]]></title>
            <link>https://medium.com/@sasichandaka143/full-deep-dive-blog-on-security-groups-vs-network-acls-447a6af41697?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/447a6af41697</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Mon, 25 May 2026 04:32:49 GMT</pubDate>
            <atom:updated>2026-05-25T04:37:28.350Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are we comparing?</h3><p>Both Security Groups and Network ACLs are firewalls inside your AWS VPC — but they operate at completely different layers. Think of it this way: a <strong>Network ACL is like the security gate at the entrance of your apartment complex</strong> — it checks everyone coming in or going out of the entire neighbourhood (subnet). A <strong>Security Group is like the lock on your individual apartment door</strong> — it only controls who gets into that one specific instance.</p><p>They are not competitors. You use both together for defence in depth.</p><p>First, let’s see where each one lives inside your VPC architecture.</p><p>First, let’s see where each one lives inside your VPC architecture.</p><p>Every packet entering your VPC first hits the <strong>Network ACL</strong> (amber layer) at the subnet boundary. Only if the ACL allows it does the packet then reach the <strong>Security Group</strong> (coral layer) at the instance boundary. Both must allow the traffic — failing either one drops the packet.</p><h3>The biggest difference: stateful vs stateless</h3><p>This single concept trips up almost every beginner. A Security Group is <strong>stateful</strong> — if you allow inbound traffic on port 80, the return response is automatically allowed out, no extra rule needed. A Network ACL is <strong>stateless</strong> — you must explicitly write both an inbound rule AND an outbound rule for every conversation, including the return traffic.</p><p>Now let’s walk through the actual AWS Console side by side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W0pp64tZeBUkGHP5OjvICQ.png" /></figure><p>Notice a few critical things in the Security Group inbound rules above. First, you can reference another Security Group as the source — for example, only allow MySQL traffic from instances that belong to the sg-0app456def group. This is called <strong>Security Group chaining</strong> and is a powerful pattern for multi-tier architectures (web → app → database). Second, there is no * deny rule at the bottom. Security Groups are pure allow-lists — anything not explicitly allowed is silently dropped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_bFcVE4-fSTczKNSjfKoXA.png" /></figure><p>Now let’s look at the outbound rules of the same Security Group.</p><p>The default outbound rule “allow all traffic to 0.0.0.0/0” is AWS’s way of saying: your instance can initiate connections to anywhere. You can tighten this for production (for example, restrict outbound to only specific IP ranges), but for beginners it’s fine to leave it. Now let’s move to Network ACLs and see how very different they feel.</p><h3>Network ACL — the stateless subnet firewall</h3><p>Unlike a Security Group, a Network ACL has numbered rules, explicit deny capability, and absolutely no memory of previous connections. Every packet is evaluated fresh, both ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkwfS6l_5DQxYYEzCWzG5Q.png" /></figure><p>The <strong>ephemeral ports rule (1024–65535)</strong> is the most common beginner mistake with Network ACLs. When your EC2 server responds to a browser request, the response packet travels back to the client on a random high port chosen by the client’s OS — typically in the 1024–65535 range. Since the ACL is stateless, it doesn’t know this packet is a response to an allowed request. You must explicitly permit it. Security Groups handle this automatically — Network ACLs don’t.</p><p>Now let’s look at the corresponding outbound rules on the same ACL.</p><p><em>▲ NACL inbound rules — rule numbers matter (100 evaluated first). Rule 130 explicitly DENIES a known bad IP. Rule 140 allows ephemeral ports 1024–65535 — required because NACLs are stateless. The * Deny at the bottom is automatic and cannot be removed.</em></p><p>Rule 140 — allowing ports 1024–65535 — confuses most beginners. Here’s why it exists: when a browser makes a request to your server on port 80, the response doesn’t go back to port 80 on the browser. The OS on the client picks a random high port (called an ephemeral port, typically 1024–65535) to receive the response. Since NACLs are stateless, they don’t know this response is “part of” the earlier request. You must explicitly allow those return ports, or your server’s responses are silently dropped at the subnet boundary.</p><p><strong>The stateless trap:</strong> If you forget to add the ephemeral port outbound rule to a NACL, your server will accept connections (inbound 80 passes) but clients will never receive the response (outbound ephemeral ports blocked). The result looks like the server is hanging — very hard to debug if you don’t know about NACL statefulness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*H_T3Nhd8ZbYUrawLpRJhHw.png" /></figure><p>Section 3 — Deep comparison</p><p>Key differences, side by side</p><p>Now that you’ve seen both in the actual console, let’s compare each property directly. These differences determine which tool you reach for in every real-world scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*sMMMoQ_vpn9Ju3rP2SJ_ng.png" /></figure><p>Section 4 — Traffic flow</p><p>How traffic passes through both layers</p><p>Understanding the order in which traffic hits each layer is critical. When a packet arrives from the internet trying to reach your EC2 instance, it doesn’t go directly to the instance. It first hits the NACL at the subnet boundary — if the NACL blocks it, the packet is dropped immediately and never reaches the instance. Only if the NACL allows it does the traffic proceed to the Security Group check at the instance.</p><p>On the way out it’s the reverse — the packet leaves the instance, passes the Security Group check, then exits the subnet through the NACL. Because the NACL is stateless, it doesn’t know this packet is a response to an allowed inbound request. It runs the outbound rules from the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*JJZpyGx0sqZmXSKHpK3M5w.png" /></figure><p>Here’s your complete deep-dive blog on Security Groups vs Network ACLs — with realistic AWS Console screenshots, red annotations, and clear explanations between every step. Here’s a summary of what’s covered:</p><p><strong>Overview card</strong> — Side-by-side quick comparison so readers immediately grasp the difference before diving in.</p><p><strong>Section 1 — Security Groups</strong></p><ul><li>What they are and the “stateful” concept explained with a bouncer analogy</li><li>SG list page, inbound rules view (HTTP/HTTPS/SSH), outbound rules view</li><li>Edit rules screen showing how Type auto-fills the port</li><li>Common mistake warning about deleting the default outbound rule</li><li>Pro tip on SG-to-SG chaining for database access</li></ul><p><strong>Section 2 — Network ACLs</strong></p><ul><li>What they are and the “stateless” concept explained with a border checkpoint analogy</li><li>NACL list page, inbound rules view with rule numbers</li><li>Why rule 140 (ephemeral ports 1024–65535) exists — the stateless trap explained</li><li>Outbound rules view showing why you must allow both directions</li><li>Danger card on the hardest debugging scenario beginners face</li></ul><p><strong>Section 3 — Deep comparison table</strong> — Every property compared side by side (level, state, rule types, rule order, defaults, use cases)</p><p><strong>Section 4 — Traffic flow diagram</strong> — Visual showing NACL as the first checkpoint → SG as the second, and what happens when NACL blocks the packet entirely</p><p><strong>Section 5 — When to use which</strong> — Practical decision guide for real-world scenarios</p><p>AWS</p><p>SG</p><p>NACL</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=447a6af41697" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Tutorial]]></title>
            <link>https://medium.com/@sasichandaka143/aws-tutorial-d5151a7f1b13?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5151a7f1b13</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Tue, 19 May 2026 07:03:28 GMT</pubDate>
            <atom:updated>2026-05-19T07:03:28.620Z</atom:updated>
            <content:encoded><![CDATA[<h3>Step-by-Step Guide: Launching and Accessing an EC2 Instance</h3><p>A complete hands-on walkthrough — from zero to a running cloud server. No fluff, just the steps that matter.</p><p>●Beginner-Friendly●~15 min read●Free Tier Compatible</p><p>So, let’s get started and unlock the power of EC2 together!</p><p><strong><em>PREREQUISITES :</em></strong></p><p><strong><em>AWS ACCOUNT</em></strong></p><p><em>It is recommended to utilize the free-tier services; otherwise, you will be required to pay for the services based on your usage.</em></p><p><em>This is the key advantage that AWS offers to its users: paying only for what you use.</em></p><p>What we’ll cover</p><blockquote>1 What is EC2 and why use it?</blockquote><blockquote>2 Sign in and reach the EC2 Dashboard</blockquote><blockquote>3Choose an AMI (Amazon Machine Image)</blockquote><blockquote>4Pick an Instance Type</blockquote><blockquote>5Configure Key Pair &amp; Security Group</blockquote><blockquote>6Launch your instance</blockquote><blockquote>7Connect via SSH / EC2 Instance Connect</blockquote><blockquote>8Stop, Start &amp; Terminate lifecycle</blockquote><blockquote>9Billing &amp; Cost tips</blockquote><p>Intro</p><p><strong>What exactly is EC2?</strong></p><p>Think of Amazon EC2 (Elastic Compute Cloud) as renting a computer in Amazon’s data centre. You don’t buy hardware — you just pick the specs you need, pay by the hour, and get a fully working server in under 2 minutes.</p><p>Every server you create is called an “Instance”. You can launch one, run your app, stop it when done, and only pay for what you use. That’s the beauty of cloud computing.</p><ul><li>No upfront hardware cost</li><li>Scale up or down anytime</li><li>Dozens of OS choices (Linux, Windows, etc.)</li><li>Free Tier: 750 hrs/month of t2.micro — completely free for 12 months</li></ul><p>Step 1</p><p><strong>Sign in and open the EC2 Dashboard</strong></p><p>Go to aws.amazon.com, sign in to your AWS account, and in the top search bar type “EC2”. Click the EC2 service. You’ll land on the EC2 Dashboard — your control centre for all instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*G1M9VnCxeNPbXDSUx_FKxQ.png" /></figure><p><strong>Tip:</strong> Make sure your AWS region (top-right) is set to where you want the server. Choose the one closest to your users for best speed.</p><p>Step 2</p><p><strong>Name your instance &amp; choose an AMI</strong></p><p>An AMI (Amazon Machine Image) is like a pre-installed operating system for your server. Amazon Linux 2023 is the go-to for beginners — it’s free-tier eligible and well supported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*gqL-zuFMD5YCj3L2vIZcvw.png" /></figure><p>Step 3</p><p><strong>Pick an Instance Type</strong></p><p>The instance type defines how powerful your server is — more CPU and RAM means more cost. For learning and testing, t2.micro or t3.micro is perfect and stays within Free Tier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*xLNVeadk2xX7GoBZves-kg.png" /></figure><p>Step 4</p><p><strong>Create a Key Pair (your server password)</strong></p><p>A Key Pair is how you securely log into your server. AWS gives you a .pem file — think of it as a physical key. Download it once and keep it safe. You cannot download it again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*PS1g9Fq79Qp8KbyjsWDUCA.png" /></figure><p>Step 5</p><p><strong>Configure the Security Group (Firewall rules)</strong></p><p>A Security Group is your cloud firewall. It controls what traffic can enter and leave your server. For a basic web server, you need to open Port 22 (SSH) and Port 80 (HTTP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*wLcZJkWMhOHnNoLVwBJHPQ.png" /></figure><p><strong>Best practice:</strong> For SSH, set source to “My IP” not “Anywhere (0.0.0.0/0)” — this limits who can attempt to log in to your server.</p><p>Step 6</p><p><strong>Review &amp; Launch!</strong></p><p>Almost there. AWS shows a Summary panel on the right side. Double-check your settings, then hit the big orange “Launch Instance” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*q7bz6f759U2FizaXJWLVug.png" /></figure><p>After clicking launch, AWS will show a success screen with your Instance ID (e.g., i-0abc1234def56789). Click it to go to your instance details.</p><p>Step 7</p><p><strong>Connecting to your instance</strong></p><p>Your instance is running. Now let’s get inside it. You have two main options: EC2 Instance Connect (browser-based, zero setup) or SSH from your terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*4OtPfBVGYGoy3j5aON-hBg.png" /></figure><p>step 8</p><p>connect to ec2 instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*vkh9BHtFRjO8LQv5QrasLA.png" /></figure><p><strong>Step 9</strong></p><p><strong>In-browser terminal — you are connected!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*hGBfsr16Mz-QHEk6X0JB7g.png" /></figure><p>Step 10</p><p><strong>Instance Lifecycle — Stop, Start &amp; Terminate</strong></p><p>Understanding the lifecycle states of an EC2 instance is crucial — it directly affects your billing and whether your data is preserved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*FI2C8NeZrSfH3Fm7TjYwYQ.png" /></figure><p><strong>Stop vs Terminate:</strong><br><strong>Stop</strong> = power off, data kept on disk, no compute charges (storage still billed).<br><strong>Terminate</strong> = permanently deleted, data gone forever.</p><p><strong>Billing note:</strong><br>A <strong>stopped</strong> instance doesn’t charge for CPU, but your EBS disk still costs money. Delete unneeded volumes.</p><p><strong>Warning:</strong> Termination is IRREVERSIBLE. Your instance and its data will be permanently deleted. Always take an AMI snapshot before terminating if you need the data</p><p>Here’s your complete Medium blog guide! Here’s what’s included:</p><p><strong>Full end-to-end coverage:</strong></p><ul><li><strong>Intro</strong> — What EC2 is, explained simply (like renting a computer)</li><li><strong>Step 1</strong> — Sign in + EC2 Dashboard navigation</li><li><strong>Step 2</strong> — Naming your instance + choosing an AMI (Amazon Linux, Ubuntu, Windows)</li><li><strong>Step 3</strong> — Instance types (t2.micro for Free Tier)</li><li><strong>Step 4</strong> — Key Pair creation (your server’s “password” file)</li><li><strong>Step 5</strong> — Security Group / firewall rules (Port 22, 80, 443)</li><li><strong>Step 6</strong> — Review summary + Launch button</li><li><strong>Step 7</strong> — Connecting via browser (EC2 Instance Connect) and SSH terminal commands</li><li><strong>Step 8</strong> — Full lifecycle: Pending → Running → Stopped → Terminated with visual diagram</li><li><strong>Step 9</strong> — Billing tips to stay within Free Tier</li></ul><p><strong>Design features:</strong></p><ul><li>Every screenshot is a realistic mockup of the AWS Console</li><li><strong>Red borders + red labels</strong> highlight exactly where to click at each step</li><li>Color-coded status pills (green = running, orange = stopped, red = terminated)</li><li>Warning boxes for critical actions like termination</li><li>SSH terminal command block for Mac/Linux/Windows users</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5151a7f1b13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Building a Complete End-to-End DevOps CI/CD Pipeline from Scratch]]></title>
            <link>https://medium.com/@sasichandaka143/building-a-complete-end-to-end-devops-ci-cd-pipeline-from-scratch-368196a0c97e?source=rss-dee8ac62dc86------2</link>
            <guid isPermaLink="false">https://medium.com/p/368196a0c97e</guid>
            <dc:creator><![CDATA[Sasichandaka]]></dc:creator>
            <pubDate>Tue, 19 May 2026 05:40:58 GMT</pubDate>
            <atom:updated>2026-05-19T05:40:58.457Z</atom:updated>
            <content:encoded><![CDATA[<h3>GitHub ➜ Jenkins ➜ OWASP ➜ SonarQube ➜ Docker ➜ Trivy ➜ ArgoCD ➜ Kubernetes ➜ Prometheus ➜ Grafana 🔥</h3><p>I wanted to understand how real DevOps pipelines work in companies instead of learning tools separately.</p><p>So I built a complete beginner-friendly DevOps project from scratch using:</p><p>✅ GitHub<br>✅ Jenkins<br>✅ OWASP Dependency Check<br>✅ SonarQube<br>✅ Docker<br>✅ Trivy<br>✅ ArgoCD<br>✅ Kubernetes<br>✅ Prometheus<br>✅ Grafana</p><p>This post is not just theory.</p><p>It is a complete beginner walkthrough showing:</p><ul><li>how to install everything</li><li>how to configure everything</li><li>why each step exists</li><li>how the tools connect together</li></ul><p>I’m explaining it like someone is learning DevOps for the first time.</p><h3>🖥️ SYSTEM REQUIREMENTS</h3><p>Before starting, I used:</p><p>Requirement Value</p><p>RAM Minimum 16 GB CPU 4 cores recommended OS Ubuntu 22.04 Internet Required DockerHub Account Required GitHub Account Required</p><p>This project can also run on AWS EC2.</p><h3>🧠 FIRST UNDERSTAND THE FLOW</h3><p>Developer writes code → quality checked → security checked → packaged → deployed → monitored automatically.</p><p>Flow:</p><pre>Developer<br>   ↓<br>GitHub<br>   ↓<br>Jenkins CI<br>   ↓<br>OWASP Scan<br>   ↓<br>SonarQube Analysis<br>   ↓<br>Docker Build<br>   ↓<br>Trivy Scan<br>   ↓<br>DockerHub Push<br>   ↓<br>Jenkins CD<br>   ↓<br>GitHub Manifest Update<br>   ↓<br>ArgoCD<br>   ↓<br>Kubernetes Deployment<br>   ↓<br>Prometheus Monitoring<br>   ↓<br>Grafana Dashboard</pre><h3>🔧 STEP 1: INSTALL DOCKER</h3><p>Docker is needed because:</p><ul><li>Jenkins runs in Docker</li><li>SonarQube runs in Docker</li><li>Application builds Docker image</li></ul><h3>📦 Install Docker</h3><pre>sudo apt update</pre><pre>sudo apt install docker.io -y</pre><p>Start Docker:</p><pre>sudo systemctl start docker</pre><p>Enable Docker:</p><pre>sudo systemctl enable docker</pre><p>Check Docker:</p><pre>docker --version</pre><h3>🔓 GIVE USER DOCKER ACCESS</h3><p>Without this, you’ll get permission errors.</p><p>Run:</p><pre>sudo usermod -aG docker $USER</pre><p>Then logout and login again.</p><p>Check:</p><pre>docker ps</pre><p>If no sudo required → success.</p><h3>📚 STEP 2: INSTALL GIT</h3><pre>sudo apt install git -y</pre><p>Verify:</p><pre>git --version</pre><h3>☸️ STEP 3: INSTALL KUBERNETES (MINIKUBE)</h3><p>We need Kubernetes cluster.</p><p>For beginners:<br>Minikube is easiest.</p><h3>📦 Install kubectl</h3><pre>sudo snap install kubectl --classic</pre><p>Verify:</p><pre>kubectl version --client</pre><h3>📦 Install Minikube</h3><pre>curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64</pre><pre>sudo install minikube-linux-amd64 /usr/local/bin/minikube</pre><p>Verify:</p><pre>minikube version</pre><h3>🚀 Start Kubernetes Cluster</h3><pre>minikube start --driver=docker</pre><p>This may take several minutes.</p><p>Check nodes:</p><pre>kubectl get nodes</pre><p>You should see:</p><pre>Ready</pre><h3>📄 STEP 4: CREATE SIMPLE PYTHON APP</h3><p>Create folder:</p><pre>mkdir devops-project</pre><pre>cd devops-project</pre><h3>📄 Create app.py</h3><pre>touch app.py</pre><p>Paste:</p><pre>from flask import Flask</pre><pre>app = Flask(__name__)@app.route(&#39;/&#39;)<br>def home():<br>    return &quot;DevOps Pipeline Working Successfully 🚀&quot;if __name__ == &quot;__main__&quot;:<br>    app.run(host=&#39;0.0.0.0&#39;, port=5000)</pre><p>Save:<br>CTRL + X → Y → Enter</p><h3>📄 Create requirements.txt</h3><pre>touch requirements.txt</pre><p>Paste:</p><pre>flask</pre><h3>🐳 STEP 5: CREATE DOCKERFILE</h3><p>Create Dockerfile:</p><pre>nano Dockerfile</pre><p>Paste:</p><pre>FROM python:3.10</pre><pre>WORKDIR /appCOPY . .RUN pip install -r requirements.txtEXPOSE 5000CMD [&quot;python&quot;, &quot;app.py&quot;]</pre><h3>🧪 STEP 6: TEST DOCKER LOCALLY</h3><p>Build image:</p><pre>docker build -t flask-devops .</pre><p>Run container:</p><pre>docker run -d -p 5000:5000 flask-devops</pre><p>Open browser:</p><pre>http://localhost:5000</pre><p>If app opens → success.</p><h3>🌐 STEP 7: PUSH CODE TO GITHUB</h3><p>Create repository on GitHub.</p><p>Example:</p><pre>devops-project</pre><h3>🔑 Configure Git</h3><pre>git config --global user.name &quot;YOUR_NAME&quot;</pre><pre>git config --global user.email &quot;YOUR_EMAIL&quot;</pre><h3>🚀 Push Code</h3><pre>git init</pre><pre>git add .</pre><pre>git commit -m &quot;initial commit&quot;</pre><pre>git branch -M main</pre><pre>git remote add origin YOUR_GITHUB_REPO</pre><pre>git push -u origin main</pre><h3>🤖 STEP 8: INSTALL JENKINS</h3><p>Run Jenkins container:</p><pre>docker run -d \<br>--name jenkins \<br>-p 8080:8080 \<br>-p 50000:50000 \<br>-v jenkins_home:/var/jenkins_home \<br>jenkins/jenkins:lts</pre><p>Check:</p><pre>docker ps</pre><h3>🌐 ACCESS JENKINS</h3><p>Open:</p><pre>http://YOUR_SERVER_IP:8080</pre><h3>🔑 GET JENKINS PASSWORD</h3><pre>docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword</pre><p>Copy password.</p><p>Paste in Jenkins UI.</p><p>Install suggested plugins.</p><p>Create admin user.</p><h3>🔌 STEP 9: INSTALL JENKINS PLUGINS</h3><p>Go to:</p><pre>Manage Jenkins → Plugins</pre><p>Install:</p><p>✅ Docker Pipeline<br>✅ SonarQube Scanner<br>✅ OWASP Dependency Check<br>✅ Email Extension Plugin<br>✅ Kubernetes CLI Plugin</p><p>Restart Jenkins.</p><h3>🔍 STEP 10: INSTALL SONARQUBE</h3><p>Run SonarQube container:</p><pre>docker run -d \<br>--name sonarqube \<br>-p 9000:9000 \<br>sonarqube:lts-community</pre><h3>🌐 ACCESS SONARQUBE</h3><p>Open:</p><pre>http://YOUR_SERVER_IP:9000</pre><p>Default:</p><pre>username: admin<br>password: admin</pre><h3>🔑 CREATE SONARQUBE TOKEN</h3><p>Go to:</p><pre>Administration → Security → Users → Tokens</pre><p>Generate token.</p><p>Copy it.</p><p>Very important.</p><h3>🔗 CONNECT SONARQUBE TO JENKINS</h3><p>Go to Jenkins:</p><pre>Manage Jenkins → System</pre><p>Find:</p><pre>SonarQube Servers</pre><p>Add:</p><ul><li>Name: sonarqube</li><li>URL: <a href="http://your_server_ip:9000/">http://YOUR_SERVER_IP:9000</a></li><li>Token: paste token</li></ul><p>Save.</p><h3>🛡️ STEP 11: CONFIGURE OWASP</h3><p>Go to:</p><pre>Manage Jenkins → Tools</pre><p>Find:</p><pre>Dependency Check</pre><p>Add installer.</p><p>Save.</p><h3>🔐 STEP 12: INSTALL TRIVY</h3><pre>sudo apt install wget apt-transport-https gnupg lsb-release -y</pre><pre>wget https://github.com/aquasecurity/trivy/releases/latest/download/trivy_0.50.1_Linux-64bit.deb</pre><pre>sudo dpkg -i trivy_0.50.1_Linux-64bit.deb</pre><p>Check:</p><pre>trivy --version</pre><h3>📦 STEP 13: CREATE DOCKERHUB ACCOUNT</h3><p>Create account:</p><ul><li>DockerHub.com</li></ul><p>Create repository:</p><pre>flask-devops</pre><h3>🔑 ADD DOCKERHUB CREDENTIALS TO JENKINS</h3><p>Go to:</p><pre>Manage Jenkins → Credentials</pre><p>Add:</p><ul><li>username</li><li>password</li></ul><p>ID:</p><pre>dockerhub</pre><h3>⚙️ STEP 14: CREATE JENKINS PIPELINE</h3><p>Go to:</p><pre>New Item</pre><p>Select:</p><pre>Pipeline</pre><p>Name:</p><pre>devops-pipeline</pre><h3>📄 CREATE JENKINSFILE</h3><p>Inside project:</p><pre>nano Jenkinsfile</pre><p>Paste:</p><pre>pipeline {<br>    agent any</pre><pre>environment {<br>        IMAGE_NAME = &quot;YOUR_DOCKERHUB_USERNAME/flask-devops&quot;<br>    }    stages {        stage(&#39;Pull Code&#39;) {<br>            steps {<br>                git &#39;YOUR_GITHUB_REPO&#39;<br>            }<br>        }        stage(&#39;OWASP Dependency Check&#39;) {<br>            steps {<br>                dependencyCheck additionalArguments: &#39;--scan ./&#39;<br>            }<br>        }        stage(&#39;SonarQube Analysis&#39;) {<br>            steps {<br>                withSonarQubeEnv(&#39;sonarqube&#39;) {<br>                    sh &#39;&#39;&#39;<br>                    sonar-scanner \<br>                    -Dsonar.projectKey=flask-app \<br>                    -Dsonar.sources=. \<br>                    -Dsonar.host.url=http://YOUR_SERVER_IP:9000 \<br>                    -Dsonar.login=YOUR_TOKEN<br>                    &#39;&#39;&#39;<br>                }<br>            }<br>        }        stage(&#39;Docker Build&#39;) {<br>            steps {<br>                sh &#39;docker build -t $IMAGE_NAME:$BUILD_NUMBER .&#39;<br>            }<br>        }        stage(&#39;Trivy Scan&#39;) {<br>            steps {<br>                sh &#39;trivy image $IMAGE_NAME:$BUILD_NUMBER&#39;<br>            }<br>        }        stage(&#39;Docker Push&#39;) {<br>            steps {<br>                withDockerRegistry([credentialsId: &#39;dockerhub&#39;]) {<br>                    sh &#39;docker push $IMAGE_NAME:$BUILD_NUMBER&#39;<br>                }<br>            }<br>        }<br>    }<br>}</pre><p>Commit and push Jenkinsfile.</p><h3>▶️ STEP 15: RUN JENKINS PIPELINE</h3><p>In Jenkins:</p><pre>Build Now</pre><p>Watch stages execute.</p><p>If successful:<br>Docker image pushed to DockerHub.</p><h3>☸️ STEP 16: CREATE KUBERNETES MANIFESTS</h3><p>Create deployment.yaml</p><pre>nano deployment.yaml</pre><p>Paste:</p><pre>apiVersion: apps/v1<br>kind: Deployment</pre><pre>metadata:<br>  name: flask-appspec:<br>  replicas: 2  selector:<br>    matchLabels:<br>      app: flask-app  template:<br>    metadata:<br>      labels:<br>        app: flask-app    spec:<br>      containers:<br>      - name: flask-app<br>        image: YOUR_DOCKERHUB_USERNAME/flask-devops:1        ports:<br>        - containerPort: 5000</pre><p>Create service.yaml</p><pre>nano service.yaml</pre><p>Paste:</p><pre>apiVersion: v1<br>kind: Service</pre><pre>metadata:<br>  name: flask-servicespec:<br>  type: NodePort  selector:<br>    app: flask-app  ports:<br>  - port: 5000<br>    targetPort: 5000<br>    nodePort: 30007</pre><p>Apply:</p><pre>kubectl apply -f deployment.yaml</pre><pre>kubectl apply -f service.yaml</pre><p>Check pods:</p><pre>kubectl get pods</pre><h3>🚀 STEP 17: INSTALL ARGOCD</h3><p>Create namespace:</p><pre>kubectl create namespace argocd</pre><p>Install:</p><pre>kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml</pre><p>Wait few minutes.</p><h3>🌐 ACCESS ARGOCD</h3><p>Port forward:</p><pre>kubectl port-forward svc/argocd-server -n argocd 8081:443</pre><p>Open:</p><pre>https://localhost:8081</pre><h3>🔑 GET ARGOCD PASSWORD</h3><pre>kubectl get secret argocd-initial-admin-secret -n argocd -o yaml</pre><p>Decode password.</p><p>Login:</p><ul><li>username: admin</li></ul><h3>🔄 STEP 18: CONNECT GITHUB TO ARGOCD</h3><p>In ArgoCD:<br>Create Application.</p><p>Fill:</p><ul><li>repo URL</li><li>branch</li><li>deployment path</li></ul><p>Enable auto sync.</p><p>Now whenever YAML changes in GitHub:</p><p>ArgoCD automatically deploys latest version.</p><h3>📈 STEP 19: INSTALL PROMETHEUS &amp; GRAFANA</h3><p>Install Helm:</p><pre>sudo snap install helm --classic</pre><p>Add repo:</p><pre>helm repo add prometheus-community https://prometheus-community.github.io/helm-charts</pre><p>Update:</p><pre>helm repo update</pre><p>Create namespace:</p><pre>kubectl create namespace monitoring</pre><p>Install stack:</p><pre>helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring</pre><p>Wait several minutes.</p><h3>🌐 ACCESS GRAFANA</h3><p>Port forward:</p><pre>kubectl port-forward svc/prometheus-grafana 3000:80 -n monitoring</pre><p>Open:</p><pre>http://localhost:3000</pre><h3>🔑 GET GRAFANA PASSWORD</h3><pre>kubectl get secret -n monitoring prometheus-grafana -o jsonpath=&quot;{.data.admin-password}&quot; | base64 --decode</pre><p>Username:</p><pre>admin</pre><h3>📧 STEP 20: CONFIGURE EMAIL ALERTS</h3><p>In Grafana:</p><pre>Alerting → Contact Points</pre><p>Add Gmail SMTP.</p><p>SMTP:</p><pre>smtp.gmail.com:587</pre><p>Use Gmail App Password.</p><p>Now Grafana can send alerts automatically.</p><h3>🚨 FINAL RESULT</h3><p>Now complete flow works:</p><p>✅ Developer pushes code<br>✅ Jenkins pipeline starts<br>✅ OWASP scans dependencies<br>✅ SonarQube checks code quality<br>✅ Docker builds image<br>✅ Trivy scans vulnerabilities<br>✅ Docker image pushed<br>✅ ArgoCD deploys automatically<br>✅ Kubernetes runs application<br>✅ Prometheus monitors infrastructure<br>✅ Grafana visualizes metrics<br>✅ Alerts sent automatically</p><h3>🎯 BIGGEST THING I LEARNED</h3><p>Real DevOps is not:<br>“installing tools”</p><p>It is understanding:</p><p>✅ automation<br>✅ deployment flow<br>✅ monitoring<br>✅ security<br>✅ scaling<br>✅ reliability</p><p>This project helped me understand how modern production-grade DevOps environments actually work. 🚀</p><p>#devops #jenkins #docker #kubernetes #argocd #prometheus #grafana #trivy #sonarqube #owasp #gitops #devsecops #automation #cloud #linux #python #flask #opensource #monitoring #cicd</p><p>Press enter or click to view image in full size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*gy6QeCwuelqj112R.gif" /></figure><h4><strong>Docker Kubernetes </strong><a href="https://medium.com/tag/devops?source=post_page-----297bf74c3959---------------------------------------"><strong>DevOps</strong></a><strong> </strong><a href="https://medium.com/tag/aws?source=post_page-----297bf74c3959---------------------------------------"><strong>AWS</strong></a><strong> </strong><a href="https://medium.com/tag/linux?source=post_page-----297bf74c3959---------------------------------------"><strong>Linux</strong></a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=368196a0c97e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>