<?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 Malar on Medium]]></title>
        <description><![CDATA[Stories by Malar on Medium]]></description>
        <link>https://medium.com/@malar_nath?source=rss-041241198fe0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9esqmMWqBY7DpnNdQ1uKRw.jpeg</url>
            <title>Stories by Malar on Medium</title>
            <link>https://medium.com/@malar_nath?source=rss-041241198fe0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:15:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@malar_nath/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[Docker Magic: From First Image to Publishing on Docker Hub!]]></title>
            <link>https://infosecwriteups.com/docker-magic-from-first-image-to-publishing-on-docker-hub-89ba39df08ae?source=rss-041241198fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/89ba39df08ae</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[web-application-security]]></category>
            <dc:creator><![CDATA[Malar]]></dc:creator>
            <pubDate>Sat, 21 Dec 2024 21:33:26 GMT</pubDate>
            <atom:updated>2025-01-13T06:24:03.646Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn Docker Commands Today and Deploy Tomorrow</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*5AkkXt311MX0ZlNV.jpg" /></figure><h3>Hello Connections! 😃</h3><p>Welcome back to my blog. I’m <strong>Malarvizhi</strong>, a <strong>Cybersecurity Professional</strong> with a strong passion for <strong>DevSecOps</strong> and <strong>web application security</strong>. In my last blog we talked about the role of docker between DevOps and DevSecOps. Today, let’s explore key Docker concepts and commands. By the end of this post, you’ll learn how to:</p><ul><li>Define essential Docker concepts like containers, images, Docker Daemon, Docker Client, and Docker Hub.</li><li>Work with foundational Docker commands.</li><li>Use Play with Docker for hands-on practice.</li><li>Run a static site and create your very first Docker image.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RH8GlQUGkJ9Vw9h0" /><figcaption>Image from Unsplash</figcaption></figure><p><strong>Docker:</strong> It is a platform to test, develop, ship and run applications inside a lightweight containers. To test an application, we can simply use the ID of the container to run and it will start in a second.</p><p><strong>Image:</strong> An Image is a blueprint used for creating containers. It contains everything needed to run an application: the application code, libraries, dependencies, configurations, and the base operating system.</p><p>Assume like, image is a architecture for the house, where they have complete template/blueprint to build a container.</p><p><strong>Container: </strong>It is a unit that package an application and its dependencies, includes libraries, configurations or binaries. It ensures consistent behavior across environment and makes flawless for development, testing, and deployment.</p><p>Assume like, it is a house (container), where you have all the furniture (dependencies) and extra stuff already in place. No need to buy anything separately.</p><blockquote>Image serves as basis for the container when its run. As a result, the container is isolated and runs as a version of the image.</blockquote><p><strong>Docker Daemon: </strong>The Docker Daemon (often referred to as dockerd) is a background service that runs on a Docker host (the machine where Docker is installed) and is responsible for managing containers. Daemon handles the entire Docker lifecycle, from creating and running containers to handling images and networks.</p><p>We can communicates with Docker CLI (Command Line Interface) commands and performs the actual work of starting, stopping, and managing containers.</p><p><strong>Docker Client: </strong>Nothing much but a command-line tool used to interact with the Docker Daemon through commands like docker run or docker pull.</p><p><strong>Docker Hub:</strong> It is a centralized repository, where we can share and find container images.</p><h3>SetUp: Utilize Play with Docker Lab (PWD)</h3><p><strong>Why I’m using Play with Docker?</strong> — It is a separate lab where I can access it via browser itself. No need to download Docker Desktop or anything in your system. You can visit Play with Docker website (a browser-based lab to test Docker commands), give start, and there you go, a command line page appears to play around.</p><p><strong>Bonus tip:</strong> You will have totally 3 hours for each session to test your skills and it is cost free. Below is the link :)</p><p><a href="https://labs.play-with-docker.com/">Play with Docker</a></p><h3>Let’s know the Docker Commands</h3><ol><li><strong>Docker pull</strong></li></ol><p><strong>Purpose:</strong> Pull an image from Docker Hub.</p><p><strong>Example: </strong>I’m pulling a nginx image from the docker hub.</p><pre>docker pull nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*V-pyarhki0i2GX6kQecl2A.png" /></figure><p>It’ll pull the nginx from the hub and completes in a second. Now I want to check the pulled image and what are all the other images I have. Well, let’s check.</p><p>2. <strong>Docker Image</strong></p><p><strong>Purpose:</strong> It will show all the images that you currently have on the local system.</p><pre>docker images</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*7P7aHJgfhkejjvpfEeWRRQ.png" /></figure><p>Image is here, then let’s build a container. How?</p><p>3. <strong>Docker run</strong></p><p><strong>Purpose:</strong> Create and start a container from a pulled image.</p><pre>docker run -d -p 8080:80 nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*GTFiM6bmZQrYSNC439UaPg.png" /></figure><p><strong>docker :</strong> CLI command line tool.</p><p><strong>run :</strong> tells docker to create and start a new container.</p><p><strong>-d (detached mode) :</strong> This flag runs the container in the background (detached mode), so it doesn’t lock up your terminal. Without this flag, the container logs would display in the terminal.</p><p><strong>-p 8080:80 (port mapping) :</strong> This maps the container’s port <strong>80</strong> (which nginx uses by default) to the host machine’s port <strong>8080</strong>.</p><ul><li><strong>8080</strong>: The port on the host machine.</li><li><strong>80</strong>: The port inside the container where nginx is running.<br>This means you can access the nginx server on http://localhost:8080 (or your host IP address and port).</li></ul><p><strong>nginx :</strong> Specifies the Docker image to use.</p><blockquote>If the nginx image is not already present on your machine, Docker will pull it from the Docker Hub (Docker’s default registry).</blockquote><p><strong>Note:</strong> In the top of the lab, nect to open port you can see the port 8080 just popped up, click on that and there you go, the nginx page :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oZFx_S85oRpXmCvls0PNvw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kf5cQCKrLj_LEoYdV9oJYg.png" /></figure><p>4. <strong>Docker ps</strong></p><p><strong>Purpose: </strong>Show running containers.</p><pre>docker ps</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ScKTCShKPhiTM2LOp9OnUQ.png" /></figure><p>5.<strong> Docker stop</strong></p><p><strong>Purpose:</strong> Stop a running container</p><pre>docker stop &lt;container_id&gt;</pre><p>once you stop, try to check “docker ps” command, you will not able to see the running container</p><p>OK, let’s have a little more bit fun :)</p><h3>Run a Static site and create your very first Docker image</h3><p>Let’s try running a basic web server that serves static files.</p><ol><li>Here I’m using the same nginx web-server. So no need to pull again.</li><li>Run a container and map a local directory to serve your site:</li></ol><pre>docker run -d -p 8080:80 -v $(pwd):/usr/share/nginx/html nginx</pre><p><strong>Important :</strong> give your port as any 4 digit number except 8080, as we already used 8080 to view the nginx webpage. Everytime you give run command along with host machine port, change the post number and execute.</p><pre>docker run -d -p 8081:80 -v $(pwd):/usr/share/nginx/html nginx</pre><p>here, the command starts an nginx web server in a Docker container and sets up your local directory as the source for the website content. Here’s a simplified explanation of each part:</p><p><strong>Breakdown:</strong></p><ul><li>v $(pwd):/usr/share/nginx/html : volume mapping</li></ul><p><strong>-v</strong>: Binds (links) a directory from your host machine to the container.</p><p><strong>$(pwd)</strong>: Refers to the current directory on your local machine (from where you run the command).</p><p><strong>/usr/share/nginx/html</strong>: The default directory in the nginx container where website files (HTML, CSS, etc.) are served.</p><blockquote><strong>In simple:</strong></blockquote><blockquote>Your local directory becomes the source of the website content served by nginx.</blockquote><blockquote>Any files (e.g., index.html) in your local directory will be displayed as the website when accessed via <a href="http://localhost:8080.">http://localhost:</a>8081<a href="http://localhost:8080.">.</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KWA3u9rYz4uKkKeIU8Uujg.png" /></figure><h3>Creating your First Docker Image</h3><p>Building a custom Docker image is a key step toward mastering Docker.</p><ol><li><strong>Creating a simple web page</strong></li></ol><p>Create a file called <strong>index.html </strong>in a sample text.</p><p><strong>Step1 : </strong>vi index.html</p><p><strong>Step2 : </strong>Type below HTML Lines</p><pre>&lt;h1&gt; Hello from Docker!&lt;/h1&gt;<br>&lt;h2&gt;Myself Malarvizhi :). Great, You&#39;ve made it this far. Good luck!&lt;/h2&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*xlaAHsiL5ruEBrlcygxohg.png" /></figure><p>To exit vi, give click “esc”; now type :wq; and enter :)</p><p>2. <strong>Write a Dockerfile</strong></p><ul><li>The Dockerfile defines instructions for building your image. Save this as Dockerfile in the same directory as your index.html:</li></ul><p><strong>Step1 :</strong> vi Dockerfile</p><p><strong>Step2 :</strong> Type below lines</p><pre>FROM nginx<br>COPY index.html /usr/share/nginx/html/index.html</pre><p>3.<strong> Build the image</strong></p><pre>docker build -t my-static-site .</pre><p><strong>Important:</strong> Don’t forget to mention the dot after space. The . tells Docker to use the current directory as the build context. Docker will look for the Dockerfile in this directory and include all necessary files (e.g., index.html</p><p>4. <strong>Now run your container</strong></p><pre>docker run -d -p 8082:80 my-static-site</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TEUN9-E7VsPCM0z9Wl4L8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uCjgtMTtB1-hUHcx.jpg" /></figure><h3>Let’s Publish it in our Docker Hub</h3><h4><strong>Step 1: Login to Docker Hub</strong></h4><p>Before pushing your Docker image, you need to log in to your Docker Hub account. Run:</p><pre>docker login</pre><p>Here you need to activate your account. Once done, it’ll confirm it in you CLI prompt as Logged in successfully.</p><blockquote>If you don’t have docker hub account, I suggest you to create it and then proceed for docker login in CLI :)</blockquote><h4>Step 2: Tag Your Docker Image</h4><p>Docker Hub requires images to have a repository name format like username/repository_name. You can tag your image using:</p><pre>docker tag my-static-site your_dockerhub_username/my-static-site:latest</pre><ul><li>my-static-site – The name of your local image.</li><li>your_dockerhub_username/my-static-site – The name of the image for Docker Hub.</li><li>latest – (Optional) Specifies the version tag. By default, it&#39;s latest</li></ul><h4>Step 3: Push the Image to Docker Hub</h4><p>Push the tagged image to your Docker Hub repository:</p><pre>docker push your_dockerhub_username/my-static-site:latest</pre><p>Docker will upload the image to Docker Hub. Once completed, your image will be available for public or private use based on your repository’s settings. Check your docker hub account now :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_vdnHsqXHTywrhSx9mTfog.png" /><figcaption>:)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*BUH2XWVoDpyid0nX" /></figure><h3>Bonus: Pull the Image</h3><p>To ensure your image was successfully uploaded, pull it from Docker Hub using:</p><pre>docker pull your_dockerhub_username/my-static-site:latest</pre><p>This confirms the image is publicly accessible (if you made it public). Also, with your image published on Docker Hub, you can easily share it, pull it from other systems, or integrate it into CI/CD pipelines!</p><h3>Closing Thoughts:</h3><p>I hope this write-up has provided you with valuable insights into Docker commands, from creating your first image to publishing it in a Docker Hub repository. In the next blog, I have an exciting topic lined up to share with you. Meanwhile, I’d love to hear your thoughts on this post — let me know in the comments section below!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/0*6qtodyrNTI4CSAgg" /><figcaption>Image from Unsplash</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89ba39df08ae" width="1" height="1" alt=""><hr><p><a href="https://infosecwriteups.com/docker-magic-from-first-image-to-publishing-on-docker-hub-89ba39df08ae">Docker Magic: From First Image to Publishing on Docker Hub!</a> was originally published in <a href="https://infosecwriteups.com">InfoSec Write-ups</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker: The Bridge Between DevOps and DevSecOps]]></title>
            <link>https://medium.com/@malar_nath/docker-the-bridge-between-devops-and-devsecops-1aca44ca6eca?source=rss-041241198fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1aca44ca6eca</guid>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Malar]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 18:51:32 GMT</pubDate>
            <atom:updated>2024-12-20T18:51:32.956Z</atom:updated>
            <content:encoded><![CDATA[<p>From Code to Cloud, let’s check the role :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Tb19AkroiW2srz5R.jpg" /></figure><h3>Hello Connections! 😃</h3><p>Welcome back to my blog. Today, we’re diving into an exciting topic: <strong>the role of Docker in DevOps and DevSecOps</strong>, and the <strong>concept of containerization with its benefits</strong>.</p><p>In this post, we’ll explore how Docker simplifies development and security processes, making it an essential tool in modern workflows. If you’re curious about <strong>Docker commands</strong> and creating your first Docker image, stay tuned for my next blog where we’ll dive into those practical aspects in detail!</p><p>Now, let’s get started. 🚀</p><h3>Quick Recap</h3><p>In my previous post, we explored topics like <strong>SDLC</strong>, <strong>CI/CD Pipelines</strong>, <strong>SSDL</strong>, and <strong>DevOps vs. DevSecOps Principles</strong>. This write-up continues from where we left off, focusing on how Docker plays a pivotal role between DevOps and DevSecOps.</p><p>You can check out my earlier posts [below link], and let me know your thoughts!</p><ul><li><a href="https://medium.com/@malar_nath/from-sdlc-to-ci-cd-a-beginners-guide-1f3958b14e48">From SDLC to CI/CD: A Beginner’s Guide</a></li><li><a href="https://medium.com/@malar_nath/enhancing-sdlc-with-security-a-guide-to-ssdl-and-ci-cd-pipelines-00d2174b9d0e">Enhancing SDLC with Security: A Guide to SSDL and CI/CD Pipelines</a></li><li><a href="https://medium.com/@malar_nath/devops-principles-4ae1f6760f81">DevOps Principles</a></li><li><a href="https://medium.com/@malar_nath/from-devops-to-devsecops-securing-the-software-development-lifecycle-65b646dd553d">From DevOps to DevSecOps: Securing the Software Development Lifecycle</a></li></ul><h3>Role of Docker in DevOps and DevSecOps:</h3><p><strong>First of all, Why Docker?</strong></p><p>Docker makes life easier in application development and deployment. Let’s compare Docker with traditional Virtual Machines (VMs) to understand its significance:</p><p><strong>VM Challenges:</strong> Running a server in a VM requires separate resources (CPU, memory, disk). VMs depend on a hypervisor that virtualizes hardware and isolates environments. This architecture, while powerful, leads to:</p><ul><li>High resource consumption.</li><li>Slow boot times due to larger footprints (gigabytes).</li><li>Additional abstraction layers, resulting in slower performance.</li></ul><p><strong>Docker Advantage:</strong><br>Think of Docker containers as rooms in a shared apartment — efficient and quick to set up, sharing utilities (the host OS). On the other hand, VMs are like separate apartments, offering full independence but consuming more resources and time to establish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/0*wVSm7ZOT088mllJe" /></figure><h3>Why Containers Beat VMs</h3><ol><li><strong>Lightweight:</strong> Docker containers package applications and their dependencies in a small, efficient unit. No need for a separate guest OS; because containers are sharing the host kernel.</li><li><strong>Resource Efficient:</strong> Containers occupy megabytes of space (versus gigabytes for VMs) and start in seconds, thanks to shared kernel architecture.</li><li><strong>Perfect for CI/CD and Microservices:</strong> Containers are lightweight and isolated, making them ideal for these agile approaches.</li></ol><h3>Docker In DevOps:</h3><ul><li><strong>Streamlined CI/CD Pipelines:</strong> Docker allows application to be packaged into a container, where it ensures consistency across development, testing, and production environment.</li><li><strong>Portability:</strong> Developers can “build once, run anywhere,” ensuring that applications behave the same irrespective of the host OS.</li><li><strong>Resource Efficiency:</strong> Containers use fewer resources than virtual machines (VMs), enabling efficient scaling and running of microservices.</li></ul><h3>Docker In DevSecOps:</h3><ul><li><strong>Security During Build and Run Time:</strong> Docker ensures isolation between containers, reducing the attack surface. With proper configuration, this secures the app against unauthorized access.</li><li><strong>Image Scanning for Vulnerabilities:</strong> DevSecOps pipelines often include scanning Docker images (using tools like Docker Security Scan, Trivy, or AquaSec) to identify vulnerabilities before deployment.</li><li><strong>Compliance and Policy Enforcement:</strong> Container security tools enforce security benchmarks such as CIS Docker Benchmark and assist in compliance with industry regulations.</li></ul><h3>Containerization and Its Benefits</h3><h3>What is Containerization?</h3><p>Containerization involves bundling an application along with its dependencies (libraries, binaries, configurations) into a lightweight, executable unit called a <strong>container.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WfdvWbnXVE6xe6tU.jpg" /></figure><h3>Benefits of Containerization:</h3><ol><li><strong>Consistency Across Environments:</strong> Containers guarantee that software behaves the same, regardless of where it runs.</li><li><strong>Isolation:</strong> Containers are isolated from each other and the underlying host, which improves security.</li><li><strong>Efficiency:</strong> Containers share the same OS kernel, making them lighter and faster compared to VMs.</li><li><strong>Faster Deployment:</strong> Containers can start in seconds, speeding up development and scaling efforts.</li><li><strong>Scalability:</strong> Containers make it easy to scale microservices up or down based on traffic or resource needs</li></ol><h3>What’s Next?</h3><p>In the next blog, we’ll get hands-on with Docker commands and learn to create our first Docker image. If you’re excited to dive into Docker’s practical side, stay tuned! 🚀</p><p><strong>Closing Thoughts:</strong></p><p>I hope this write-up provided clarity on how Docker bridges DevOps and DevSecOps and the immense value it brings to modern development workflows. Let me know your thoughts in the comments below! 😊</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/0*FxZWbfHlZPhJpSx_.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1aca44ca6eca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From DevOps to DevSecOps: Securing the Software Development Lifecycle]]></title>
            <link>https://medium.com/@malar_nath/from-devops-to-devsecops-securing-the-software-development-lifecycle-65b646dd553d?source=rss-041241198fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/65b646dd553d</guid>
            <category><![CDATA[bug-hunting]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Malar]]></dc:creator>
            <pubDate>Mon, 16 Dec 2024 18:57:53 GMT</pubDate>
            <atom:updated>2024-12-16T18:57:53.850Z</atom:updated>
            <content:encoded><![CDATA[<p>Do you want to know DevSecOps, let’s explore together :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UNQmcNT1lmm3ETTs.jpg" /><figcaption>Image from Google :)</figcaption></figure><h3>Connection 😊</h3><p>In our recent blogs, we’ve explored SDLC, SSDL, CI/CD pipelines, and DevOps principles, and how they all fit into the software development lifecycle. As a continuation of the <strong>DevOps Principles</strong> blog, today we’ll dive deeper into how <strong>DevOps</strong> and <strong>DevSecOps</strong> are connected and explore the key principles of <strong>DevSecOps</strong>.</p><p>At the end of this blog, I’ve shared a story to make it even easier for my readers to understand the concepts. 😉</p><p>Please use the below post to have quick grasp of my previous blogs.</p><ul><li><a href="https://medium.com/@malar_nath/devops-principles-4ae1f6760f81">DevOps Principles</a></li><li><a href="https://medium.com/@malar_nath/enhancing-sdlc-with-security-a-guide-to-ssdl-and-ci-cd-pipelines-00d2174b9d0e">Enhancing SDLC with Security: A Guide to SSDL and CI/CD Pipelines</a></li><li><a href="https://medium.com/@malar_nath/from-sdlc-to-ci-cd-a-beginners-guide-1f3958b14e48">From SDLC to CI/CD: A Beginner’s Guide</a></li></ul><p>Let’s have a recap here. In the last blog, we discussed</p><ol><li>how the collaboration will happen between developers and operation team to meet the user requirements.</li><li>How automation works well to improve software quality just by using the CI Tools like <strong>Jenkins</strong>, where it triggers the automation to build the application, run tests, all without manual intervention.</li><li>CI/CD process which covers the entire process automating repetitive tasks such as <strong>building</strong>, <strong>testing</strong>, <strong>deploying in a production environment</strong>, till <strong>monitoring applications</strong>.</li><li>Last but not least, we have a foundational grasp of IaC and what is does. cool 😇</li></ol><p>Till this everything is fine, but are you sure about the application/ software is secure and safer for user? Also as we know from our previous blogs that DevOps isn’t complete without security- hence the evolution to DevSecOps (between Dev and Ops)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/0*9OXvrxFB_ivfTCmB.jpg" /></figure><h3>How DevSecOps Integrates Security into DevOps Workflows</h3><p>DevSecOps adds security into the DevOps workflow by ensuring that security is part of every step in software development — from writing code to deploying and maintaining it. Instead of waiting until the end of development to check for vulnerabilities, security practices are integrated right from the start and throughout the process.</p><h4><strong>How It Works:</strong></h4><ol><li><strong>Automated Security Checks in CI/CD Pipelines</strong>:</li></ol><ul><li>Security tools automatically scan the code for vulnerabilities (e.g., SAST for static code, DAST for running applications).</li><li><strong>Example:</strong> If a developer writes vulnerable code, a tool like <strong>SonarQube</strong> flags it immediately during the build process.</li></ul><p><strong>2. Shifting Security Left</strong>:</p><ul><li>Developers get early feedback about security issues when writing code, rather than discovering them late during testing.</li><li><strong>Example:</strong> Tools like <strong>Snyk</strong> check for outdated libraries with known vulnerabilities while the code is still being developed.</li></ul><p><strong>3. Container and Infrastructure Security</strong>:</p><ul><li>Docker images and infrastructure-as-code (IaC) configurations are scanned for misconfigurations or vulnerabilities before deployment.</li><li><strong>Example:</strong> <strong>Trivy</strong> scans Docker containers for outdated software packages or exposed credentials.</li></ul><p><strong>4. Continuous Monitoring in Production</strong>:</p><ul><li>After the software is deployed, security tools monitor for suspicious activity, performance issues, or intrusions in real-time.</li><li><strong>Example:</strong> <strong>Prometheus</strong> or <strong>ELK Stack</strong> helps detect if the system is under attack or showing signs of breaches.</li></ul><h4>Why its essential?:</h4><ol><li>It’ll catch vulnerabilities early and reduces the effort of fixing bugs at the last moment.</li><li>DevSecOps integrate security into every phase of software development lifecycle (SDLC), so team can build a strong software/application by collaborating with teams and ensuring security checks at all phases.</li><li>Security becomes a <strong>shared responsibility</strong>, where developers, operations, and security teams work together, ensuring faster and smoother software delivery.</li><li>Continuous automation of security practices — ensures fast software releases without omitting security, making software delivery both efficient and reliable.</li></ol><p>DevSecOps make sure security is not a last minute check-in, ensures software is fast to deliver, safe to use, and always reliable. 😊</p><h3>Principles of DevSecOps:</h3><p>We already know the purpose and process of DevSecOps, then lets get explore the principles 🙂</p><ol><li><strong>Shift Left Security:</strong></li></ol><ul><li><strong>What it means</strong>: Shift left means addressing security early in the development process, rather than waiting until later stages.</li><li><strong>Why it matters</strong>: By catching security issues early, you save time and costs, and avoid introducing vulnerabilities that could be exploited in production.</li><li><strong>Example</strong>: Code scans or vulnerability checks are automatically triggered during the build phase, helping developers catch issues before the code is even deployed.</li></ul><p><strong>2. Automation:</strong></p><ul><li><strong>What it means</strong>: This includes automated code scans, vulnerability detection, testing, and infrastructure checks.</li><li><strong>Why it matters</strong>: Automation helps minimize human error, saves time, and ensures security is applied consistently across the pipeline.</li><li><strong>Example</strong>: Using tools like <strong>Jenkins</strong> or <strong>GitLab CI</strong> to automatically run security tests when new code is pushed.</li></ul><p><strong>3. Continuous Monitoring:</strong></p><ul><li><strong>What it means</strong>: Continuously monitor the application and infrastructure for security vulnerabilities or suspicious activity throughout its lifecycle.</li><li><strong>Why it matters</strong>: This enables the detection of potential security threats and system vulnerabilities as soon as they arise, allowing for immediate remediation.</li><li><strong>Example</strong>: Tools like <strong>Prometheus</strong> and <strong>Splunk</strong> track system performance and alert teams to possible security threats in real-time.</li></ul><p><strong>4. Collaboration Between Teams (Dev, Sec, Ops):</strong></p><ul><li><strong>What it means</strong>: Make sure that developers, security experts, and operations teams work together to ensure the application and its infrastructure are secure. Everyone shares responsibility for security.</li><li><strong>Why it matters</strong>: When all teams focus on security together, they ensure the application is safe at every stage — whether it’s being built, deployed, or used by users.</li><li><strong>Example</strong>: Security experts team up with developers right from the start to make sure the code follows security rules and best practices.</li></ul><p><strong>5. Secure By Design:</strong></p><ul><li><strong>What it means</strong>: Security isn’t just an afterthought, it should be integrated into the design and architecture of the software right from the start.</li><li><strong>Why it matters</strong>: By embedding security practices directly into the software architecture, organizations build safer and more resilient applications.</li><li><strong>Example</strong>: Ensuring the software follows <strong>security best practices</strong> such as encryption, input validation, and proper authentication during its initial design phase.</li></ul><p><strong>6. IaC:</strong></p><ul><li><strong>What it means</strong>: Infrastructure, like servers, networks, and databases, should be managed through code. This also includes defining security configurations using automation.</li><li><strong>Why it matters</strong>: IaC ensures environments are consistently built and security configurations are applied correctly. It also reduces human error and speed up provisioning.</li><li><strong>Example</strong>: Using tools like <strong>Terraform</strong> to define secure cloud infrastructure and <strong>Ansible</strong> for managing secure configurations across multiple systems.</li></ul><p><strong>7. Continuous Compliance:</strong></p><ul><li><strong>What it means</strong>: Ensuring security and compliance requirements are continuously monitored and enforced in every phase, from development to production.</li><li><strong>Why it matters</strong>: With continuous compliance, you can ensure the software meets industry regulations and avoid costly non-compliance issues.</li><li><strong>Example</strong>: Regular automated checks against compliance standards like GDPR or PCI-DSS through tools like <strong>Chef InSpec</strong>.</li></ul><p><strong>8. Risk Reduction &amp; Minimizing Vulnerabilities:</strong></p><ul><li><strong>What it means</strong>: Identifying, prioritizing, and fixing vulnerabilities as early as possible in the development cycle.</li><li><strong>Why it matters</strong>: Addressing vulnerabilities early in the process is cost-effective and reduces the potential risk of exploits or data breaches later.</li><li><strong>Example</strong>: Running vulnerability scans on Docker containers before deployment using <strong>Trivy</strong> or <strong>Clair</strong>.</li></ul><p>Now we got a good understanding of DevSecOps principles. Its just same like we explored in DevOps, here we are just implementing security</p><h3>Story Time</h3><h4>Traditional Workflow vs DevSecOps:</h4><h3>Story of Building a Castle 😎</h3><p>Imagine you’re building a grand <strong>castle</strong> that will be a fortress protecting inhabitants. The development of this castle involves several stages:</p><p><strong><em>Goal:</em></strong> Architecture and Builders asked to make a castle.</p><ol><li><strong>Planning the Castle</strong> — Architects (developers) design the blueprint, making sure the rooms are spacious and the foundation is strong.</li><li><strong>Building the Walls and Gates</strong> — The construction workers (operations) start building. They follow the architect’s designs but don’t think much about defense. Their goal is to get the structure up and running as quickly as possible.</li><li><strong>Final Touches and Defenses</strong> — After the castle is built, the <strong>security guards (security)</strong> come in and ensure that the gates are locked, guards are positioned properly, and all entrances are protected to prevent intruders.</li></ol><p>This is how traditional development worked: Architecture understand the needs of user; based on the needs, our architects made a blueprint (developers designed); construction workers successfully build the house (operations built) and defenses took place (security checked the final product (in last stage)), and finally it’ went to user end. But what happens if an enemy infiltrates during the building phase? What if a window is left unlocked or there is a weak point in the design that becomes a vulnerability? Too late to secure it now! 😬</p><h3>Now, enter DevSecOps:</h3><p>With DevSecOps, every step of building the castle is implemeted with <strong>security</strong>; lets explore how:</p><ol><li><strong>Planning and Designing the Castle</strong> — The architects now work with the security guards right from the start. The design is focused not just on creating a beautiful castle but making sure it’s <strong>defensible</strong> (security is designed into the plan itself). The architects make decisions about gates, surveillance systems, and the positioning of walls to prevent weaknesses early on.</li><li><strong>Building the Castle</strong> — As the construction workers build, they are not only focusing on speed but also using <strong>security tools</strong>. The builders have security experts watching as the castle walls go up, ensuring <strong>every brick is fortified</strong>, and vulnerabilities are patched while the castle is under construction. <strong>Automated checks</strong> are used to keep building secure as it progresses.</li><li><strong>Final Inspection and Continuous Monitoring</strong> — When construction is complete, security teams do <strong>real-time checks</strong>, even after the castle is built, continuously monitoring the perimeter. They set up automated systems to detect if the castle walls weaken or any new threats arise.</li></ol><p>The difference here is <strong>security</strong> isn’t an afterthought. It’s built into <strong>every phase</strong>. This makes the castle stronger, safer, and more resilient — ready to stand tall against any attack. 🏰💪</p><h3>“So, Why Does DevSecOps Matter?”</h3><p>DevSecOps isn’t just about scanning your code before release; it’s about <strong>shaping</strong> every part of your application to be secure <strong>from the beginning</strong>. The collaborative culture, automated tools, and ongoing security practices make sure your software <strong>delivers quickly</strong>, <strong>without compromising security</strong> — from code to deployment and beyond. 🏰💪</p><p>In the next blog, we’ll explore how <strong>Docker and Kubernetes</strong> come into play in a <strong>DevSecOps</strong> environment. Stay tuned! 🔒🚀</p><p>Let me know your thoughts on this blog and comment below and finally don’t forget to applaud if you like it.😎</p><p>Learn -&gt; Practice -&gt; Hack -&gt; Get Amazing Swags🚀</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*oCE_zxhsbYWV9sPn.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65b646dd553d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DevOps Principles]]></title>
            <link>https://medium.com/@malar_nath/devops-principles-4ae1f6760f81?source=rss-041241198fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ae1f6760f81</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Malar]]></dc:creator>
            <pubDate>Sat, 14 Dec 2024 19:50:07 GMT</pubDate>
            <atom:updated>2024-12-14T19:50:07.733Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*s0r-uu3KOt4f_euV.jpg" /><figcaption>Image from Pinterest :)</figcaption></figure><h3><strong>Hey Everyone! 👋 Welcome back! 🎉</strong></h3><p>I’m thrilled to be back with fresh content! In my previous blogs, we’ve covered some solid topics like <strong>SDLC</strong>, <strong>CI/CD</strong>, and how <strong>security</strong> fits into the mix. Now, it’s time to level up and dive into something even more exciting — <strong>the powerful principles behind DevOps</strong> and how they are revolutionizing software development, making it faster, more reliable, and super efficient. 🚀</p><h4><strong>What is DevOps and Its Principles?</strong></h4><p>DevOps is a collaboration between developers and operations team where they can get closer to the user by gaining a better understanding of user requirements and needs. The main goal of DevOps is to automate and streamline workflows, ensure seamless collaboration between teams, and improve software delivery and reliability. Let’s break down the core principles that make DevOps effective.</p><h4>DevOps Principles</h4><blockquote><strong>1. Collaboration and Communication:</strong></blockquote><p>DevOps is about removing the barriers between Development and Operations teams. It focuses on teamwork and shared responsibility to build and deliver software more quickly and reliably.</p><p><strong><em>Why it matters?</em></strong></p><p>Historically, developers and operations teams worked separately. Developers wrote the code, while operations teams deployed and maintained the systems. This caused delays and communication gaps.</p><p>Now DevOps aims to create a collaborative culture. Developers and operation team will share their code into a shared repository, this reduce delays and errors and make them work together throughout the development cycle, from code creation to deployment</p><blockquote><strong>2. Automation</strong></blockquote><p>In DevOps, we automate as much of the software development lifecycle (SDLC) as possible. Using <strong>CI tools</strong> like <strong>Jenkins</strong>, developers can automate repetitive tasks such as <strong>building</strong>, <strong>testing</strong>, <strong>deploying</strong>, and <strong>monitoring applications</strong>.</p><p><strong><em>Why it matters</em></strong><em>:</em></p><p>Automation speeds up processes, reduces the chance of human errors, and ensures tasks are consistently performed. By automating manual steps, teams can focus more on development and improving software quality.</p><p><strong><em>In short:</em></strong><em> </em>Automated processes, like using Jenkins, can automatically build, test, and deploy new versions of an application. Once code is pushed to the repository, Jenkins triggers the automation to build the application, run tests, and deploy it to production, all without manual intervention.</p><blockquote><strong>3. Continuous Integration (CI)</strong></blockquote><p>CI means automatically integrating code changes into a shared repository several times a day, helping detect defects and bugs early.</p><p><strong><em>Why it matters</em></strong><em>:</em></p><p>By frequently integrating changes, teams catch bugs and errors early, reducing large-scale integration issues later in the process.</p><p><strong><em>Example</em></strong><em>:</em></p><p>When developers push code to <strong>GitHub</strong>, Jenkins can immediately trigger <strong>unit tests</strong> to ensure code quality.</p><blockquote><strong>4. Continuous Delivery/Deployment (CD)</strong></blockquote><p><strong>Continuous Delivery</strong> ensures that code is always ready for production. <strong>Continuous Deployment</strong> automates the entire delivery process, deploying directly to production after testing without human intervention.</p><p><strong><em>Why it matters</em></strong><em>:</em></p><p>CD minimizes delays and reduces errors between writing code and delivering it to users.</p><p><strong><em>Example</em></strong><em>:</em></p><p>After Jenkins tests the code, it can automatically deploy the app to a <strong>staging environment</strong> (CD) or directly to <strong>production</strong> (Continuous Deployment).</p><blockquote><strong>5</strong>. <strong>Infrastructure as Code (IaC)</strong></blockquote><p>IaC means managing infrastructure (servers, networks) through code, automating provisioning and ensuring consistency.</p><p><strong><em>Why it matters</em></strong><em>:</em></p><p>IaC enables scalability, repeatability, and error-free infrastructure management. Teams can replicate environments easily and maintain consistency across development and production.</p><p><strong><em>Example</em></strong><em>:</em></p><p>With <strong>Terraform</strong> or <strong>Ansible</strong>, developers can create server environments or deploy applications automatically by running scripts.</p><blockquote><strong>6. Customer-Centric Action:</strong></blockquote><p>DevOps encourages continuous feedback loops from end users, helping teams <strong>stay focused on user needs</strong> throughout the development process.</p><p><strong><em>Why it matters</em></strong><em>:</em> Real-time monitoring and immediate feedback enable teams to improve software quickly and ensure the product is aligned with user needs.</p><blockquote><strong>7. Continuous Monitoring and Feedback:</strong></blockquote><p>DevOps ensures that applications are <strong>monitored constantly</strong> to track performance, security, and availability, allowing teams to react fast to issues before users are affected.</p><p><strong><em>Why it matters</em></strong><em>:</em> Continuous monitoring ensures system health and performance, enabling quick response to performance bottlenecks, bugs, or security breaches.</p><p><strong><em>Example</em></strong><em>:</em> Tools like <strong>Prometheus</strong> and <strong>Grafana</strong> monitor system performance and send alerts if there are any issues.</p><h4>How Does This Relate to SDLC and SSDL?</h4><p>You’ll notice the DevOps principles share some similarities with what we discussed in the <strong>SDLC</strong> and <strong>SSDL</strong> blogs. The idea is to automate, improve, and continuously deploy without compromising security — making everything faster and more reliable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*y3S9wH9nLCBDMSQO" /></figure><h4>In the Next Blog, Let’s See How Docker Fits into DevOps</h4><p>Now that we’ve covered the basics of DevOps principles, let’s dive into how <strong>Docker</strong> fits into the DevOps cycle and explore some <strong>Docker commands</strong> for hands-on learning.</p><h3>Conclusion</h3><p>DevOps principles provide the structure to streamline collaboration and delivery, driving speed, quality, and consistency in software development. With <strong>Docker</strong> added to the mix, teams can create isolated, reproducible environments for development, testing, and production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dnsZnh4MigCVpewt.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ae1f6760f81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancing SDLC with Security: A Guide to SSDL and CI/CD Pipelines]]></title>
            <link>https://medium.com/devsecops-community/enhancing-sdlc-with-security-a-guide-to-ssdl-and-ci-cd-pipelines-00d2174b9d0e?source=rss-041241198fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/00d2174b9d0e</guid>
            <dc:creator><![CDATA[Malar]]></dc:creator>
            <pubDate>Sun, 01 Dec 2024 20:38:25 GMT</pubDate>
            <atom:updated>2025-05-02T09:51:49.705Z</atom:updated>
            <content:encoded><![CDATA[<h4>Security in SSDL Pipelines — DevOps</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*92fDCI2BV6ox3R-C.jpg" /></figure><p>Welcome back! I’m <strong>Malarvizhi</strong>, a <strong>Cybersecurity Professional</strong> with a strong passion for <strong>DevSecOps</strong> and <strong>web application security</strong>. In my last blog post, we explored the SDLC and CI/CD pipeline processes. Today, we’ll discuss how these concepts extend into SSDL with CI/CD pipelines.</p><p>Previously, we covered essential topics including the fundamentals of SDLC, its importance, its various phases, and how CI/CD pipelines work. We also examined both traditional and modern CI/CD pipeline methods, and how organizations can scale their pipelines based on business needs.</p><p>If you need a refresher/not yet familiar with SDLC and its relationship with CI/CD pipelines, I encourage you to review my previous blog post. Now, let’s dive into today’s topic!</p><p><a href="https://medium.com/@malar_nath/from-sdlc-to-ci-cd-a-beginners-guide-1f3958b14e48">From SDLC to CI/CD: A Beginner’s Guide</a></p><blockquote><strong>What is Secure Software Development Lifecycle (SSDL)?</strong></blockquote><p>It is an approach to SDLC that integrated security practices in each phases of the Software Development Lifecycle. Here, the primary goal for this SSDL is to identify and address security vulnerabilities early, minimizing risks and ensuring the final product is secure.</p><p>With this information let’s move on to the Phases of SDLC with security in mind :)</p><blockquote><strong>Focusing on Each Phase: SDLC + Secure SDLC (SSDL):</strong></blockquote><ol><li><strong><em>Planning —</em></strong></li></ol><p><strong>SDLC Goal:</strong> Define project goals, scope, and resources.</p><p><strong>SSDL Enhancement: </strong>Set security objectives, perform preliminary threat modeling, and align with compliance requirements (e.g., PCI DSS, GDPR).</p><p><strong>Example</strong>:</p><p>For an e-commerce website, security goals include payment data encryption, maintaining uptime during peak sales, and ensuring PCI DSS compliance for protecting cardholder data.</p><p>2. <strong><em>Requirement Analysis —</em></strong></p><p><strong>SDLC Goal: </strong>Understand what software must do and gather functional and non-functional requirements.</p><p><strong>SSDL Enhancement: </strong>Identify security-specific requirements like authentication, data encryption, and compliance integration (e.g., GDPR, HIPAA).</p><p><em>Functional: User authentication, access authorization, and secure data encryption.</em></p><p><em>Non-functional: System uptime, performance scaling, and security incident handling (In short, it ensures the functionality of enabling easy browsing, checkout systems, and efficient order tracking with best practices such as compliance implementation identifying risk).</em></p><p><strong>Example</strong>:</p><p>Stakeholders require the payment gateway to implement <strong>two-factor authentication</strong> and <strong>TLS encryption</strong> for all financial transactions.</p><p>3. <strong><em>Design —</em></strong></p><p><strong>SDLC Goal:</strong> Architect the software with workflows, modules, and database schemas.</p><p><strong>SSDL Enhancement:</strong> Use frameworks like STRIDE to detect potential threats such as spoofing, tampering, and data breaches. Apply secure design principles like least privilege, defense in depth, and secure defaults.</p><p><strong>Example</strong>:</p><p>In an e-commerce system, the customer payment database is kept separate from the application server to prevent unauthorized access.</p><blockquote><strong>SSDL + CI/CD Pipeline Process:</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/0*0YTF674y10Y4klQ4.png" /></figure><p>The CI/CD process (Continuous Integration and Continuous Deployment/Delivery) starts in the Development phase of the SDLC and extends through Testing, Deployment, and into the Maintenance phase. Let’s explore how it fits into the SSDL process:</p><p>4. <strong><em>Development (Implementation) —</em></strong></p><p><strong>SDLC Goal:</strong> Write and integrate code based on design documents.</p><p><strong>SSDL Enhancement:</strong> Code review will happen as part of Secure Coding Practices using SAST tool.</p><p><em>What happens here?</em></p><ul><li>Developers write the code for e-commerce application in IDE’s or Git.</li><li>Developers push their code to a shared repository (e.g., GitHub or GitLab).</li><li>CI tools like <strong>Jenkins</strong>, <strong>GitLab CI</strong>, or <strong>CircleCI</strong> gets trigger/update and automatically fetch the code, build it, and run automated tests (unit and integrated test will happen to ensure the code works as expected).</li><li>Integration checks verify that new code maintains compatibility with existing functionality.</li></ul><p><strong>Security Perspective:</strong></p><ul><li>The CI pipeline integrates <strong>SAST (Static Application Security Testing)</strong> tools to scan code for security vulnerabilities (e.g., hardcoded secrets or SQL injection risks).</li><li><strong><em>Note:</em></strong><em> How CI pipeline perform SAST scan? Well, In CI Pipeline, for example Jenkins, it have plugins which is integrated into CI pipeline. Many SAST tools provide </em><strong><em>dedicated plugins</em></strong><em> for CI/CD platforms like Jenkins, GitLab CI, or Azure DevOps. Tools like </em><strong><em>SonarQube</em></strong><em>, </em><strong><em>Checkmarx</em></strong><em>, and </em><strong><em>Fortify</em></strong><em> offer plugins that can be added to the CI pipeline.</em></li></ul><p><strong><em>How It Works:</em></strong></p><ul><li><em>The CI tool (Jenkins) installs the SAST plugin.</em></li><li><em>During the build or testing phase, the plugin automatically scans the source code.</em></li><li><em>The CI/CD dashboard displays the scan results, highlighting any vulnerabilities or code quality issues.</em></li><li><em>However, command-line and API methods are also common when a plugin isn’t available.</em></li></ul><p><strong>Example:</strong> When developers implement new payment features for an e-commerce site, Jenkins initiates a build to verify functionality and employs <strong>SonarQube</strong> to detect potential security flaws.</p><p>5. <strong><em>Testing —</em></strong></p><p><strong>SDLC Goal: </strong>Identify and fix bugs through functional and performance</p><p><strong>SSDL Enhancement:</strong> Code reviews and Penetration Testing will happen using SAST, DAST, Burpsuite, OWASP ZAP tool.</p><p><em>What happens here?</em></p><ul><li>The CI/CD pipeline runs comprehensive automated tests, including unit, integration, performance, and security testing.</li><li>DAST (Dynamic Application Security Testing) tools like <strong>OWASP ZAP</strong> or <strong>Burp Suite</strong> test the application’s security by simulating real-world attacks.</li></ul><p><strong>Security Perspective:</strong></p><ul><li>This testing catches critical vulnerabilities like cross-site scripting (XSS) and insecure APIs before they reach production.</li></ul><p><strong>Example:</strong> For the e-commerce site, DAST tools verify that the login system is protected against brute force attacks and session hijacking attempts.</p><p>6. <strong><em>Deployment(Continuous Deployment — CD) —</em></strong></p><p><strong>SDLC Goal:</strong> Launch the software in a production environment.</p><p><strong>SSDL Enhancement:</strong> Here before sending the build artifacts to CD tools (e.g., Ansible or Kubernetes), it ensure the hardening configurations for servers, databases, APIs are well and secure to move. Deploy monitoring tools (e.g., Splunk, New Relic) to track system performance and detect potential breaches.</p><p><em>What happens here?</em></p><p><strong>Security Perspective:</strong></p><ul><li>After testing is complete, the code is packaged into deployable artifacts (e.g., Docker images, JAR files).</li><li>This build artifact is then pushed to JFrog Artifactory for storage.</li><li>While Jenkins doesn’t initially know the artifactory repository location, it uses integrated plugins to interact with artifactory repository hubs like JFrog, AWS, Azure, and GCP.</li><li>Jenkins shares the compiled executable files with these hubs through artifactory plugins.</li><li>For additional security testing or containerization, Jenkins retrieves the artifacts from the artifactory repository to create Docker images (If it is for large-scale application. For small scale, we can just move the build artifact to deployment process directly).</li><li>The artifact is incorporated into a Dockerfile, which defines the container’s environment.</li><li>These Docker images are then sent back to the artifactory repository for container security scans and storage.</li><li>Security professionals review the registry repository and application image, conducting security scans.</li><li>Once security professionals confirm no vulnerabilities exist, developers retrieve the build artifacts from the artifactory repository through Jenkins for the deployment process.</li></ul><p>Deployment tools like <strong>Ansible</strong>, <strong>Kubernetes</strong>, or <strong>Spinnaker</strong> handle the automated rollout to staging or production environments.</p><p><strong>Example: Ansible</strong> deploys a new version of the e-commerce site while maintaining the database’s security rules.</p><p>7. <strong><em>Maintenance (Continuous Monitoring and Updates) —</em></strong></p><p><strong>SDLC Goal:</strong> Ensure the software runs smoothly post-deployment with regular updates and patches.</p><p><strong>SSDL Enhancement:</strong> Continuous monitoring with SIEM tools (e.g., Splunk, QRadar) helps detect unusual activities. Regular patch management ensures updates to libraries, frameworks, and tools to mitigate vulnerabilities, and a documented incident response plan is in place to detect, respond to, and recover from security incidents.</p><p><em>What happens here?</em></p><ul><li>Continuous monitoring tools (e.g., <strong>Splunk</strong>, <strong>Dynatrace</strong>) track application performance and detect anomalies.</li><li>When vulnerabilities are discovered in libraries or frameworks, CD pipelines are triggered to patch and deploy updates.</li></ul><p><strong>Example:</strong> The CI/CD pipeline automates patching a vulnerable library in the e-commerce payment module.</p><blockquote><strong>Lastly,</strong></blockquote><p>SSDL integrates security measures into every stage of software development. Without SSDL, security checks would only occur in the final phases of SDLC, risking the oversight of major vulnerabilities. Instead, SSDL helps identify and fix problems from the initial phase through completion. Through CI/CD pipelines, teams can automate security tasks, accelerate development, and ensure software is both functional and secure from the start. Hope we’ve explored the complete process of SDLC, SSDL, and their integration with the CI/CD pipeline process.</p><p>In the next blog, we’ll dive into another exciting topic. Stay tuned for more insights!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00d2174b9d0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devsecops-community/enhancing-sdlc-with-security-a-guide-to-ssdl-and-ci-cd-pipelines-00d2174b9d0e">Enhancing SDLC with Security: A Guide to SSDL and CI/CD Pipelines</a> was originally published in <a href="https://medium.com/devsecops-community">devsecops-community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From SDLC to CI/CD: A Beginner’s Guide]]></title>
            <link>https://faun.pub/from-sdlc-to-ci-cd-a-beginners-guide-1f3958b14e48?source=rss-041241198fe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f3958b14e48</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[devsecops]]></category>
            <category><![CDATA[ssdl]]></category>
            <dc:creator><![CDATA[Malar]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 21:59:10 GMT</pubDate>
            <atom:updated>2025-01-31T12:41:37.273Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aoN8qAp7gKqC6N8L" /></figure><p>Hello! I’m <strong>Malarvizhi</strong>, a <strong>Cybersecurity Professional</strong> with a strong passion for <strong>DevSecOps</strong> and <strong>web application security</strong>. I am dedicated to learning and implementing security practices that seamlessly integrate into the software development process, ensuring that security is embedded from the start.</p><p>Through my blogs, I aim to share my journey and insights into <strong>DevSecOps</strong> and <strong>web application security</strong>, exploring how security practices, automation, and tools like <strong>CI/CD pipelines</strong> contribute to faster, more reliable, and secure software delivery.</p><p>In this post, we’ll dive into the <strong>Software Development Lifecycle (SDLC)</strong> and explore how <strong>CI/CD pipelines</strong> streamline traditional processes, enabling faster and more reliable software delivery.</p><p>Let’s explore.</p><p>In today’s fast-paced digital world, software development relies on structured methodologies to deliver reliable and high-quality products. One such methodology is the Software Development Lifecycle (SDLC) — a step-by-step framework that guides the development of software from inception to maintenance.</p><p>With the rise of CI/CD (Continuous Integration/Continuous Deployment) pipelines, SDLC has become more automated and agile, allowing teams to rapidly deliver updates while maintaining high standards. In this blog, we’ll explore the SDLC, its phases, and how modern CI/CD pipelines enhance its efficiency.</p><blockquote><strong>What is SDLC?</strong></blockquote><p>SDLC means, it is a structured framework, where it used to design, develop, test and deploy the software applications. It covers the entire process, from the creation of software to its deployment in the production environment.</p><p>ok, so what is the need of SDLC — Well, It ensures software (or application) are well-managed, delivered on time, and meet both business and quality standards, ultimately enhancing customer satisfaction and helps the organization build a stronger brand reputation.</p><p><strong><em>For example</em></strong>, A company is planning to launch a new e-commerce website to allow customers to browse the products, make purchases, and track orders. The company wants to ensure the site is user-friendly, secure, and performs well under traffic spikes. Now the company must have to follow the process of SDLC to create an application and send it to production environment. Let’s see how SDLC plays in the given example.</p><p>First, let discuss what are the phases of SDLC and how we can build an e-commerce application in the phases of SDLC.</p><p>To meet the requirements of the production environment, the SDLC consists of several phases, those are:</p><ol><li><strong>Planning </strong>— <strong><em>Goal</em></strong>: Define project goals, scope, and resources.</li></ol><p><strong><em>Example</em></strong> — talks about the scope of how website should look, features it needs(product catalog, shopping cart, and payment gateway), discuss on target launch date.</p><p>2. <strong>Requirement Analysis — <em>Goal</em></strong>: Understand what software must do and gather functional and non-functional requirements.</p><p><strong><em>Example</em></strong> — ensures the business requirements from stakeholders are clearly understood such as enabling easy browsing, checkout systems, and efficient order tracking.</p><p>3. <strong>Design — <em>Goal</em></strong>: Architect the software with workflows, modules, and database schemas</p><p><strong><em>Example</em> </strong>— helps to plan the website’s architecture. The development team would design the website’s UI and define how the application will interact with the database to store user data, product details, and transaction history.</p><p><strong>4. Development (Implementation) —<em> Goal</em></strong>: Write and integrate code based on design documents.</p><p><strong><em>Example</em></strong> — The development team writes the code to build the website’s functionality, such as the product catalog, shopping cart, and checkout system. Then the application is tracked using version control, and checks the code is regularly updated to ensure progress.</p><blockquote>Note:<em> </em>why tracking using version control, because it allows developers to keep track of code changes over time.</blockquote><p>5. <strong>Testing — <em>Goal</em></strong>: Identify and fix bugs through functional and performance</p><p><strong><em>Example</em></strong> — Thorough testing is conducted to ensure the website works as expected. Tests like unit test to ensure each feature functionality; integration tests to verify entire application works together as expected; performance testing ensures the website can handle a high number of users during peak traffic times.</p><p>6. <strong>Deployment — <em>Goal</em></strong>: Launch the software in a production environment.</p><p><strong><em>Example</em></strong> — Here the company will use some deployment tools to push the application to deploy in the production environment, where it becomes publicly accessible.</p><p>7. <strong>Maintenance — <em>Goal</em></strong>: Provide updates, fix bugs, and ensure long-term performance.</p><p><strong><em>Example</em></strong> — After the website is live, the development team monitors its performance and addresses any issues that arise, such as bug fixes or updates regularly.</p><p>Hope, we have covered the phases of SDLC with its best example, lets check how CI/CD pipelines are used to automate SDLC phases in modern development.</p><p><strong>CI/CD process in SDLC:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/0*5aDmF7uCtr_71TUZ" /><figcaption>Photo from Google Search :)</figcaption></figure><p><strong><em>What are the process that CI/CD includes in SDLC</em></strong> — Build, Test, Package, Deploy</p><p><strong><em>Where these process are relating to SDLC phases</em></strong> — Build (Development phase), Test(Testing phase), Package(Testing phase), Deploy(Deployment phase)</p><p>Lets discuss, what developers will do to meet business needs and on time delivery before CI/CD. Before the technology of CI/CD pipeline automation, developers will work largely on manuals, slower and mostly it prone to errors.</p><p><strong><em>Here the overview: </em></strong><em>Manually writing the code; testing was done manually or with limited automation tools; Once testing was complete, the application was manually packaged into deployable formats (e.g., JAR or WAR files); Deployment involved copying files to servers manually or running custom scripts. Overall its time-consuming for developers.</em></p><p><strong>Transition to CI/CD:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XNp11hA8Xo9iTVe_.jpg" /><figcaption>Mike Snapping from Stranger Things :)</figcaption></figure><p>CI/CD replaced these manual processes with automated pipelines, enabling faster builds, automated testing, seamless deployments, and quick feedback loops. Let check what it does :)</p><p><strong><em>Continuous Integration (CI):</em></strong></p><ul><li>Automates the integration of code changes into a shared repository.</li><li><strong><em>Example:</em></strong> Developers push code to GitHub repository, and Jenkins gets triggers/updates and it automatically builds and tests the application.</li></ul><p><strong><em>Continuous Deployment (CD):</em></strong></p><ul><li>Ensures the software is always ready for deployment.</li><li><strong><em>Example:</em></strong> Artifacts like Docker containers are stored in a repository like JFrog Artifactory, ready for staging or production.</li></ul><p>Lets don’t get confused, we will break this down now. We discussed on what are the process it needs for CI/CD pipeline workflow to complete the SDLC process. In that process the organization might follows in 2 different menthods. Let break it.</p><blockquote><strong><em>METHOD 1:</em></strong></blockquote><p>This process is handled entirely within Jenkins, which builds, tests, packages, and deploys the software:</p><p>Till Phase 3, the process will be same, from phase 4 of SDLC the following CI/CD workflow will happen. Let’s explore.</p><ol><li><strong>Build </strong>— When Jenkins receives updates/triggers from repositories (like GitHub, GitLab, Bitbucket), it pulls the latest code, use that code to build and compiles it, and resolves any dependencies.</li><li><strong>Test</strong> — Jenkins runs automated tests — including unit tests, integration tests — to verify the code functions correctly as expected.</li><li><strong>Package</strong> — After successful testing, Jenkins packages the code into a deployable build artifact. The build artifacts could be executable files (eg., JAR file, WAR file, ZIP file or docker image)</li><li><strong>Deployment</strong> — Jenkins automatically pushes the software to CD tools like Ansible, Kubernetes, or other deployment tools for staging and production environments.</li></ol><p><strong><em>Key Points:</em></strong><em> This process compiles and packages code directly into deployable artifacts and sends them for deployment without intermediate steps. It works best for small-scale applications or environments that don’t require storing artifacts in a centralized repository for reuse or auditing. Since there’s no artifact repository (like JFrog Artifactory or Docker Hub &lt;will discuss below&gt;) in this workflow, artifacts move directly from Jenkins to the deployment tool.</em></p><p><strong>METHOD 2:</strong></p><p><strong>Build</strong> — When Jenkins receives triggers for updated code from repositories (like GitHub, GitLab, Bitbucket), it pulls the latest code, builds and compiles it, and resolves dependencies.</p><p><strong>Test</strong> — Jenkins runs automated tests, including unit tests, integration tests, to ensure the code works as expected.</p><p><strong>Package</strong> -</p><ul><li>Jenkins packages the application into a build artifact, such as a <strong>JAR file</strong>, <strong>WAR file</strong>, or <strong>Docker image</strong>.</li><li>The packaged artifacts are pushed to an artifact repository (e.g., <strong>JFrog Artifactory</strong>, <strong>AWS</strong>, <strong>Azure</strong>, <strong>GCP</strong>) using Jenkins Artifactory plugins.</li></ul><p><strong><em>Note:</em></strong><em> Here the Jenkins do not know where the artifactory repository is placed. However, jenkins have plugins which is integrated into CI/CD pipelines.</em></p><ul><li>For <strong>additional</strong> <strong>containerization</strong>: Jenkins retrieves the artifacts from the artifact repository.</li><li>Creates <strong>Docker images</strong> using a <strong>Dockerfile</strong> that defines the container environment.</li><li>The Docker images are sent back to the artifact repository for: <strong>Storage</strong> for later use.</li><li>Once the above process and security checks are done, developers retrieve the build artifacts from the repository for deployment.</li></ul><p><strong><em>Keypoints:</em></strong><em> This process includes the use of an artifact repository like JFrog Artifactory, Docker Hub, Aws, GCP, Azure for centralized storage and distribution of build artifacts. It is common in large-scale applications or containerized environments where multiple teams need access to the same artifacts, Artifacts need to be stored for auditing, compliance, or reusability. The use of an artifact repository provides better version control, traceability, and scalability.</em></p><p><strong>Deployment </strong>— After the above processes, Jenkins triggers a deployment job that passes the artifact to a CD tool (such as Ansible for server configuration or Kubernetes for container orchestration). In other words, the CI tool (Jenkins) shares the artifact with CD tools (Ansible or Kubernetes) for production deployment.</p><p>And Lastly, after the deployment phase, it’ll go for continuous monitoring.</p><p><strong>Maintenance —</strong></p><ul><li>Provide updates, fix bugs, and ensure long-term performance.</li><li>Example: Regularly patching vulnerabilities and releasing new features based on user feedback.</li></ul><h3>Real-World Example: Jenkins and Ansible for an E-Commerce Website</h3><p>Let’s see how Jenkins and Ansible work together when deploying an e-commerce website with a new payment gateway feature:</p><ol><li><strong>Code Integration</strong>:</li></ol><ul><li>Developers push code updates to a GitHub repository.</li><li>Jenkins automatically fetches the code and runs unit tests to verify the payment gateway functionality.</li></ul><p><strong>2. Build and Artifact Storage</strong>:</p><ul><li>Jenkins creates a Docker image of the website and stores it in a secure repository (e.g., Docker Hub or JFrog Artifactory).</li></ul><p><strong>3. Deployment</strong>:</p><ul><li>Kubernetes pulls the Docker image, deploys it to production, and manages automatic scaling during high-traffic periods.</li></ul><p>This automated pipeline accelerates delivery while maintaining quality standards, minimizing human error, and meeting business objectives.</p><p><strong><em>Note:</em></strong><em> CI and CD tools are vary based on the project needs. Few CI and CD tools are listed for follow up :)</em></p><p><strong><em>Other CI Tools: </em></strong><em>Jenkins, GitLab CI, Travis CI, Circle CI, TeamCity, Azure DevOps, etc.</em></p><p><strong><em>Other CD Tools:</em></strong><em> Bamboo, Ansible, Argo CD, Spinnaker, Harness, Buildkit</em></p><p><strong>Conclusion:</strong></p><p>The SDLC forms the backbone of structured software development, while modern CI/CD pipelines enhance it with speed, automation, and reliability. This powerful combination enables teams to rapidly deliver high-quality applications that meet both user expectations and business needs.</p><p>Let me know what are your thoughts on SDLC and CI/CD? Share your experiences or questions in the comments below!</p><p>In the next blog, we’ll explore <strong>how to integrate security into SDLC</strong>, transforming it into <strong>Secure SDLC (SSDL)</strong> to ensure robust, secure software development. Stay tuned!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*aUyN6YOrWzsxBQmw.png" /></figure><h4>👋 If you find this helpful, please click the clap 👏 button below a few times to show your support for the author 👇</h4><h4>🚀<a href="http://from.faun.to/r/8zxxd">Join FAUN Developer Community &amp; Get Similar Stories in your Inbox Each Week</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f3958b14e48" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/from-sdlc-to-ci-cd-a-beginners-guide-1f3958b14e48">From SDLC to CI/CD: A Beginner’s Guide</a> was originally published in <a href="https://faun.pub">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>