<?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 Pushkar Patil on Medium]]></title>
        <description><![CDATA[Stories by Pushkar Patil on Medium]]></description>
        <link>https://medium.com/@patilpushkar98?source=rss-bfa10cf2b6b9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cigJTYGgymQBr8CoYeDh9g.jpeg</url>
            <title>Stories by Pushkar Patil on Medium</title>
            <link>https://medium.com/@patilpushkar98?source=rss-bfa10cf2b6b9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 12:47:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@patilpushkar98/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[Implementing SAST & SCA — Challenges, Choices, and Workflow]]></title>
            <link>https://medium.com/@patilpushkar98/implementing-sast-sca-challenges-choices-and-workflow-d805ac3b18f4?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/d805ac3b18f4</guid>
            <category><![CDATA[sbom]]></category>
            <category><![CDATA[code-scanning]]></category>
            <category><![CDATA[sast]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 23:06:49 GMT</pubDate>
            <atom:updated>2025-08-06T18:25:53.586Z</atom:updated>
            <content:encoded><![CDATA[<h3>Implementing SAST &amp; SCA — Challenges, Choices, and Workflow</h3><h3>1. Where I Started</h3><ul><li>My <strong>source code repo</strong> is in <strong>GitLab Premium</strong>.</li><li>Goal: I should <strong>deploy clean code to production</strong>.</li></ul><p>I need both:</p><p><strong>SAST</strong> → Check our own code.</p><p><strong>SCA</strong> → Check third‑party dependencies.</p><ul><li>Problem: GitLab Premium <strong>does not include</strong> the full SAST dashboard — that’s only in <strong>Ultimate</strong>.</li><li>Solution: Look for <strong>free/open‑source tools</strong> that work in GitLab Premium.</li></ul><h3>2. Why I Started This</h3><p>I wanted to ensure that any code going to production was <strong>secure, compliant, and free from known vulnerabilities</strong>.</p><h3>Security Scanning Basics — What You Should Know</h3><h3>SAST (Static Application Security Testing)</h3><blockquote><em>(“Apna khachra batata hai” — Checks your own code)</em></blockquote><ul><li><strong>What it does:</strong> Scans your source code without running the program.</li><li><strong>Goal:</strong> Finds issues like SQL injection, XSS, hardcoded secrets.</li><li><strong>When used:</strong> During development (before deployment).</li><li><strong>Tools:</strong> Semgrep CE, SonarQube OSS</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sySm4JCL3knp-lN1uA7FXQ.png" /></figure><p>Semgrep CE : Limited to analyzing within a single function at a time (intraprocedural), does not follow control flow across functions or files.</p><ul><li><em>Intraprocedural means analyzing code only inside one function at a time, without looking at how it interacts with other functions. It focuses just on what happens within that single function</em>.</li></ul><p>Semgrep CLI can work for local scans and don’t need a token for generating reports but SonarQube OSS needs token.</p><p>I’m going to add comparison of Semgrep and SonarQube for reference (Still working on it)</p><p>Synk — Free, up to 100 scans/month</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*Y0kSNyxJsZFW7kHnbafLfw.png" /></figure><p>Ref: <a href="https://www.julieabyrne.com/post/shift-left-with-secure-coding-for-web-applications">https://www.julieabyrne.com/post/shift-left-with-secure-coding-for-web-applications</a></p><p>Get detailed adoption and popularity metrics here:</p><p>Ref: <a href="https://aimultiple.com/open-source-sast-tools">https://aimultiple.com/open-source-sast-tools</a></p><h3>SCA (Software Composition Analysis)</h3><blockquote><em>(“Bahar ka khachra batata hai” — Checks third‑party code)</em></blockquote><ul><li><strong>What it does:</strong> Analyzes your project’s third‑party libraries (npm, pip, Maven, etc.).</li><li><strong>Goal:</strong> Finds known vulnerabilities in packages you use.</li><li><strong>When used:</strong> Any time you install or update dependencies.</li><li><strong>Tools:</strong></li><li><strong>Syft</strong> → Generates SBOM.</li><li><strong>Grype</strong> → Analyzes SBOM for vulnerabilities.</li></ul><h3>SBOM (Software Bill of Materials)</h3><ul><li><strong>What it is:</strong> A list of all components in your software — especially dependencies.</li><li><strong>Why it matters:</strong> Helps track what’s inside your app for vulnerability management.</li><li><strong>Think of it as:</strong> A recipe of all packages and versions.</li><li><strong>Tools:</strong> Syft, CycloneDX, SPDX.</li></ul><p><strong>Difference Between SBOM &amp; SCA</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*fteSNeN9ap1pYD9v4lEB0w.png" /></figure><p>Formats:</p><ul><li><strong>CycloneDX 1.4 (JSON)</strong> → For vulnerability scanning + security tracking.</li><li><strong>SPDX 2.3-compatible (JSON)</strong> → For license compliance + open‑source IP tracking.</li></ul><p><strong>SBOM + SCA Flow</strong></p><pre>[Syft: Generate SBOM] ---&gt; [SBOM File]<br>                               |<br>                               v<br>[Grype: Analyze SBOM for CVEs, License Issues]<br>                               |<br>                               v<br>[Security Findings for Developer Action]</pre><h3>3. Other Key Security Practices</h3><ul><li><strong>Shift Left Security:</strong> Move security checks earlier in development to catch bugs before production.</li><li><strong>OWASP:</strong> Nonprofit sharing security best practices (famous for OWASP Top 10).</li><li><strong>Secrets Scanning:</strong> Finds sensitive data like API keys/passwords in code. Example: Flags AWS_SECRET_KEY=abcd1234 in .env.</li><li><strong>Linting:</strong> Checks code for syntax/style/best practice violations (e.g., unused variables, bad indentation).</li></ul><h3>4. Pricing &amp; Tool Notes</h3><p><strong>Free / Low‑Cost Options</strong></p><ul><li>Jit → Up to 3 users free.</li><li>Aikido → 2 users free.</li><li>Faraday Community Edition → Manual uploads, 1 user only.</li></ul><p><strong>Limitations</strong></p><ul><li>Streamlit dashboards → Need heavy customization.</li><li>AWS Inspector → Doesn’t support GitLab SaaS.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wocv_pfauhZMJFv6WQKYUw.png" /></figure><ul><li>GitLab SAST Dashboard → Requires <strong>Ultimate License</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*ZYlvzozn-zZRL4CRnwjBYg.png" /></figure><p><strong>DefectDojo Pro Pricing (Annual Billing)</strong></p><ul><li>Starter: $1,675/month → Up to 30,000 findings/endpoints.</li><li>Custom: Pricing based on scale (up to 20M findings).</li><li>Trial: 14‑day free trial.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JSepATeCBoWxv_m0BFdvA.png" /></figure><h3>5. What I Chose</h3><p>After my analysis:</p><p><strong>SCA:</strong> <strong>Syft + Grype</strong></p><ul><li>Syft creates SBOM, Grype scans it for vulnerabilities.</li><li>Free, open‑source, integrates well with GitLab CI/CD.</li></ul><p><strong>SAST:</strong> <strong>Semgrep</strong></p><ul><li>Fast, customizable rule‑based scanning.</li><li>Works in GitLab Premium without needing Ultimate.</li><li>Defect Dojo: Unified dashboard for both SCA &amp; SAST</li></ul><h3>6. How It Runs in Our Pipeline</h3><p><strong>Workflow Diagram (Stick Figure Style)</strong></p><pre>[Developer] <br>    |<br>    v<br>[Commit Code to GitLab Premium Repo]<br>    |<br>    +--&gt; [SAST: Semgrep] --(scan own code)--&gt;<br>    |<br>    +--&gt; [SCA: Syft + Grype] --(scan dependencies)--&gt;<br>    |<br>    v<br>[Findings?] --Yes--&gt; [Alert via Slack/Email] --&gt; [Developer Fixes] --&gt; [Re-commit]<br>           --No--&gt; [Deploy to Production]</pre><h3>7. Scan Frequency</h3><p><strong>Options:</strong></p><ul><li><strong>Change-based &amp; periodic scanning</strong> → Scan on commit + scheduled days.</li><li><strong>Customized scanning</strong> → Choose triggers (PR open, commit to default branch, etc.).</li></ul><p><strong>Periodic Scan Settings:</strong></p><ul><li>Enable/disable as needed.</li><li>Pick week/day for scheduled scans.</li></ul><h3>8. Automating Response (Must Have)</h3><ul><li><strong>Purpose:</strong> Reduce manual steps after a vulnerability is found.</li></ul><p><strong>Examples of Automation:</strong></p><ul><li>Auto‑create tickets in Jira for high/critical findings.</li><li>Automatically notify developers in Slack or email.</li><li>Trigger remediation scripts (e.g, dependency update).</li><li>Block merge/deploy until issues are resolved.</li></ul><p><strong>Automation Flow</strong></p><pre>[Security Finding]<br>       |<br>       v<br>[Automation Rule Triggered]<br>       |<br>  +----+----+<br>  |         |<br>  v         v<br>[Create Ticket]   [Send Alert to Slack/Email]<br>  |<br>  v<br>[Developer Fixes Issue] --&gt; [Re-scan]</pre><h3>9. Vulnerability Management Workflow</h3><ol><li><strong>Detection:</strong> SAST, SCA, DAST, IaC scans.</li><li><strong>Prioritization:</strong> Severity (CVSS), exploitability (EPSS), business impact.</li><li><strong>Remediation:</strong> Patching code, upgrading packages, applying WAF rules.</li><li><strong>Verification:</strong> Re-scan to confirm fix.</li><li><strong>Documentation:</strong> Track findings in tools like Jira, DefectDojo, or ServiceNow.</li></ol><h3>Additional Security Insights (Don’t read below if you are bored)</h3><h3>Scan Analysis</h3><ul><li><strong>Static Application Security Testing (SAST):</strong> Analyzes source code for vulnerabilities.</li><li><strong>IaC scanning:</strong> Detects misconfigurations in Terraform, YAML, CloudFormation.</li><li><strong>Static SCA:</strong> Examines open-source packages for vulnerabilities.</li></ul><p><strong>Vulnerability Types:</strong></p><ul><li><strong>Package vulnerability:</strong> Common Vulnerabilities</li></ul><p>Ref: <a href="https://www.cve.org/">https://www.cve.org/</a></p><ul><li><strong>Code vulnerability:</strong> Common Weakness Enumeration</li></ul><p>Ref: <a href="https://cwe.mitre.org/">https://cwe.mitre.org/</a></p><ul><li><strong>Network reachability:</strong> Open ports, network paths, remediation suggestions.</li></ul><h3>CVSS vs. EPSS</h3><ul><li><strong>CVSS (Common Vulnerability Scoring System):</strong> Rates severity from 0–10 (technical risk).</li><li><strong>EPSS (Exploit Prediction Scoring System):</strong> Probability a CVE will be exploited in the next 30 days (threat likelihood).</li></ul><h3>DAST (Dynamic Application Security Testing)</h3><ul><li><strong>What it does:</strong> Tests a running application from the outside (black-box testing).</li><li><strong>Goal:</strong> Finds vulnerabilities in a live environment (e.g., broken authentication, exposed APIs).</li><li><strong>When used:</strong> After deployment to a test or staging environment.</li><li><strong>Tools:</strong> OWASP ZAP, Burp Suite, AppSpider.</li></ul><h3>Container Security</h3><ul><li><strong>Image Scanning:</strong> Check Docker images for vulnerabilities (Trivy, Anchore, Clair).</li><li><strong>Runtime Security:</strong> Detect suspicious processes, privilege escalation, or crypto-mining in running containers (Falco, Sysdig Secure).</li></ul><h3>Dependency Pinning &amp; Supply Chain Security</h3><h3>- Dependency Pinning</h3><ul><li>Lock dependencies to <strong>specific versions</strong> (requests==2.31.0) to avoid unexpected or malicious updates.</li><li>Maintain <strong>lockfiles</strong> (requirements.txt, package-lock.json).</li><li>Update only after review &amp; testing.</li></ul><h3>- Supply Chain Security</h3><ul><li>Broader concept — securing the <strong>entire software delivery chain</strong>.</li></ul><p>Includes SCA but also:</p><ul><li>Dependency pinning.</li><li>Package signature verification (Sigstore, Cosign).</li><li>Securing CI/CD pipelines.</li><li>Protecting build environments.</li><li>Monitoring artifact repositories.</li><li>Maintaining SBOMs.</li></ul><p><strong>Analogy:</strong></p><ul><li>SCA = Checking if the <em>ingredients</em> are safe.</li><li>Supply Chain Security = Ensuring the <em>kitchen, delivery truck, and recipe</em> are safe.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d805ac3b18f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessing AWS Redis Clusters from Internet Using a NAT Instance]]></title>
            <link>https://medium.com/@patilpushkar98/accessing-aws-redis-clusters-from-internet-using-a-nat-instance-dfc26f46fc7e?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfc26f46fc7e</guid>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Fri, 23 May 2025 00:12:24 GMT</pubDate>
            <atom:updated>2025-05-23T00:28:46.404Z</atom:updated>
            <content:encoded><![CDATA[<h3>High-Level Overview</h3><p>To connect to private AWS Redis (ElastiCache) clusters from external environments (such as a corporate office or a developer laptop), you need a secure and controlled way to bridge into the VPC. These clusters do not expose public endpoints, regardless of the subnet type.</p><h4>Access Options:</h4><ul><li><strong>AWS Direct Connect: </strong>A dedicated private network connection between your on-premises data center and AWS.</li><li><strong>AWS Site-to-Site VPN: </strong>An encrypted IPSec VPN tunnel that links your on-prem network to AWS over the internet.</li><li><strong>NAT Instance (Used in This Guide): </strong>A lightweight and cost-effective option for test environments. It forwards external ports from a public EC2 instance to private Redis endpoints inside the VPC using iptables.</li></ul><p>In addition you can go for HA — NAT as well</p><p>Reference: <a href="https://aws.amazon.com/articles/high-availability-for-amazon-vpc-nat-instances-an-example/">https://aws.amazon.com/articles/high-availability-for-amazon-vpc-nat-instances-an-example/</a></p><h3>NAT Instance Access Method (Used Here)</h3><p>According to <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/accessing-elasticache.html">AWS Documentation</a>, connecting to ElastiCache over the internet using a NAT instance requires the following:</p><h4>Requirements:</h4><ul><li>The Redis cluster must reside within a VPC.</li><li>The NAT instance must be in the same VPC and placed in a <strong>public subnet</strong>.</li><li>The NAT instance must have a <strong>public Elastic IP (EIP)</strong>.</li><li>iptables must be configured to forward traffic from public ports (e.g., 6500–6522) to internal Redis IPs on port 6379.</li></ul><h4>Considerations:</h4><ul><li>Clients connect using: NAT_EIP:&lt;forwarded_port&gt; (e.g., 1.2.3.4:6500).</li><li>The NAT acts as a TCP proxy; if Redis node IPs change (due to scaling or failover), forwarding rules must be updated.</li><li>Traffic between the client and NAT instance is <strong>unencrypted</strong> — avoid sending sensitive data.</li><li>This setup is intended for <strong>development or testing</strong> — not recommended for production.</li><li>The NAT instance adds infrastructure overhead and is a <strong>single point of failure</strong> unless high availability is implemented manually.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRvHrJ2zmhWxKtiMvEU6Jw.png" /></figure><h3>Step 1: Launch a NAT EC2 Instance</h3><ul><li><strong>AMI:</strong> Amazon Linux 2023</li><li><strong>Instance Type:</strong> t3.medium (or higher if expecting high traffic)</li><li><strong>Network Configuration:</strong></li></ul><p>i. Place the instance in a <strong>public subnet</strong></p><p>ii. Enable <strong>Auto-assign Public IP &amp; Attach an EIP</strong></p><ul><li><strong>Security Group:</strong></li><li>Inbound: TCP port 22 (SSH) and TCP ports 6500–6522 from your IP</li><li>Outbound: Allow all (default)</li><li><strong>Storage:</strong> Minimum 30 GB gp3</li><li><strong>IAM Role (Optional):</strong> Attach one with AmazonSSMManagedInstanceCore if you want to manage using Systems Manager</li><li><strong>Important:</strong> Disable source/destination check for the instance:</li><li>Go to EC2 &gt; Actions &gt; Networking &gt; Change source/destination check &gt; Set to “Stop”</li></ul><h3>Step 2: Enable NAT and IP Forwarding on the Instance</h3><p>Run the following script on the NAT instance after launch:</p><pre>#!/bin/bash<br># Install iptables service<br>sudo yum install -y iptables-services<br># Enable and start iptables<br>sudo systemctl enable iptables<br>sudo systemctl start iptables<br># Enable IP forwarding<br>echo &quot;net.ipv4.ip_forward=1&quot; | sudo tee /etc/sysctl.d/custom-ip-forwarding.conf<br>sudo sysctl -p /etc/sysctl.d/custom-ip-forwarding.conf<br># Detect primary interface<br>PRIMARY_IFACE=$(ip route get 192.168.0.1 | awk &#39;{for(i=1;i&lt;=NF;i++) if ($i==&quot;dev&quot;) print $(i+1); exit}&#39;)<br>echo &quot;Using interface: $PRIMARY_IFACE&quot;<br># Set POSTROUTING rule<br>sudo iptables -t nat -A POSTROUTING -o &quot;$PRIMARY_IFACE&quot; -j MASQUERADE<br># Allow forwarding<br>sudo iptables -F FORWARD<br># Save iptables config<br>sudo service iptables save</pre><h3>Step 3: Get Private IPs for Redis Endpoints</h3><p>Use this to resolve Redis DNS endpoints to IPs:</p><pre>#!/bin/bash<br>endpoints=(<br>  &quot;example-redis-1.abcdef.clustercfg.region.cache.amazonaws.com&quot;<br>  &quot;example-redis-2.abcdef.clustercfg.region.cache.amazonaws.com&quot;<br>)<br>echo &quot;Resolving Redis endpoints...&quot;<br>for endpoint in &quot;${endpoints[@]}&quot;; do<br>  ip=$(dig +short &quot;$endpoint&quot; | head -n 1)<br>  echo &quot;$endpoint -&gt; $ip&quot;<br>done</pre><p>Replace the array with your actual ElastiCache DNS endpoints.</p><h3>Step 4: Configure Port Forwarding Rules (NAT → Redis)</h3><pre>#!/bin/bash<br>PRIMARY_IFACE=&quot;ens5&quot;            # Replace with your actual primary network interface<br>NAT_PRIVATE_IP=&quot;10.0.0.5&quot;       # Replace with your NAT instance&#39;s private IP<br>echo &quot;[*] Flushing old NAT rules...&quot;<br>sudo iptables -t nat -F PREROUTING<br>sudo iptables -t nat -F POSTROUTING<br>sudo iptables -t nat -F OUTPUT<br># Map public ports 6500–6522 to private Redis IPs:6379<br>declare -A redis_map=(<br>  [6500]=&quot;10.0.1.101&quot;   # Redis Cluster 1<br>  [6501]=&quot;10.0.1.102&quot;   # Redis Cluster 2<br>  [6502]=&quot;10.0.1.103&quot;   # ...<br>)<br>echo &quot;[*] Setting up port forwarding...&quot;<br>for port in &quot;${!redis_map[@]}&quot;; do<br>  target_ip=&quot;${redis_map[$port]}&quot;<br>  echo &quot;Forwarding port $port to $target_ip:6379&quot;<br>  sudo iptables -t nat -A PREROUTING -i &quot;$PRIMARY_IFACE&quot; -p tcp --dport &quot;$port&quot; -j DNAT --to-destination &quot;$target_ip&quot;:6379<br>done<br># Set SNAT for return traffic<br>sudo iptables -t nat -A POSTROUTING -o &quot;$PRIMARY_IFACE&quot; -j SNAT --to-source &quot;$NAT_PRIVATE_IP&quot;<br># Save rules<br>sudo service iptables save</pre><h3>Step 5: Make iptables Rules Persistent</h3><p>Make sure the rules persist after reboot:</p><pre>sudo systemctl enable iptables<br>sudo cp /etc/sysconfig/iptables /etc/sysconfig/iptables.backup</pre><h3>Step 6: Update Route Table</h3><ul><li>Create a new route table (or modify an existing one)</li><li>Add route: 0.0.0.0/0 → <strong>NAT instance ID</strong></li><li>Associate this route table with the <strong>private subnets</strong> containing Redis clusters</li></ul><h3>Step 7: Access Redis from External Network</h3><p>From your local machine or office IP:</p><pre>redis-cli -h &lt;NAT_PUBLIC_IP&gt; -p 6500</pre><p>Or configure GUI tools like <strong>DataGrip</strong>, <strong>RedisInsight</strong>, etc., using:</p><p>Redis Cluster Host (NAT Public IP)</p><h3>Security Tips</h3><ul><li>Only allow access from trusted IPs (e.g., office, VPN)</li><li>Limit exposure by forwarding only needed ports</li><li>Monitor NAT instance logs and usage</li><li>Use SSH keys, IAM roles, and restrict SSM access</li></ul><h3>References</h3><ul><li><a href="https://docs.aws.amazon.com/vpc/latest/userguide/work-with-nat-instances.html">AWS: Create a NAT Instance</a></li><li><a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/accessing-elasticache.html">AWS: Accessing ElastiCache from Outside</a></li><li><a href="https://redis.io/insight/">RedisInsight</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfc26f46fc7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Passed the AWS Certified DevOps Engineer — Professional (DOP-C02) Exam & How You Can Too!]]></title>
            <link>https://medium.com/@patilpushkar98/how-i-passed-the-aws-certified-devops-engineer-professional-dop-c02-exam-how-you-can-too-7b4eaa488b0f?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b4eaa488b0f</guid>
            <category><![CDATA[certification]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 16:54:35 GMT</pubDate>
            <atom:updated>2025-03-02T16:55:22.200Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Passed the AWS Certified DevOps Engineer — Professional (DOP-C02) Exam &amp; How You Can Too!</h3><p>In this guide, I’ll share:<br> ✅ <strong>Why this exam is worth it</strong><br> ✅ <strong>How to prepare effectively (without wasting time)</strong><br> ✅ <strong>The exact study plan &amp; resources I used</strong><br> ✅ <strong>Key AWS services you must master</strong><br> ✅ <strong>Exam day tips &amp; tricks</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSsrO3wn7dLTMUTUP8iq0w.png" /></figure><h3>🎯 Why Take the AWS DevOps Pro Certification?</h3><p>This certification proves that you can <strong>design, manage, and automate</strong> distributed applications on AWS using DevOps best practices. It’s perfect for:</p><p>✔️ <strong>Cloud Engineers</strong> who want to move up the DevOps ladder<br> ✔️ <strong>SREs &amp; DevOps Engineers</strong> looking to validate their skills<br> ✔️ <strong>Developers &amp; SysAdmins</strong> transitioning to AWS DevOps roles</p><p>📌 <strong>Bottom Line</strong> — If you want to <strong>stand out</strong> in cloud &amp; DevOps, this cert is GOLD.</p><h3>📖 AWS Certified DevOps Engineer — Professional (DOP-C02) Exam Overview</h3><ul><li><strong>Exam Format:</strong> 75 multiple-choice/multiple-response questions</li><li><strong>Time:</strong> 180 minutes</li><li><strong>Passing Score:</strong> 750/1000</li><li><strong>Cost:</strong> $300 USD</li><li><strong>Mode:</strong> Online proctoring or test center</li></ul><p>🔹 <strong>You DON’T need to pass each section separately.</strong> The exam is scored <strong>overall</strong>, so <strong>play to your strengths</strong>.</p><h3>🛠 Best Study Resources</h3><p>Here’s what actually works (don’t waste time on random YouTube videos):</p><p>✅ <strong>Zeal Vora’s Course (Must-Have!)</strong> — Deep dive into every topic, with hands-on labs.<br> ✅ <strong>Tutorials Dojo Practice Exams</strong> — The closest to real AWS exam difficulty.<br> ✅ <strong>AWS Whitepapers</strong> — Focus on the <strong>Well-Architected Framework</strong> &amp; <strong>Security Pillars</strong>.<br> ✅ <strong>AWS Official Docs &amp; FAQs</strong> — Especially for services like <strong>CodeDeploy, CodePipeline, CloudFormation, and IAM</strong>.<br> ✅ <strong>Hands-on Labs</strong> — Spin up <strong>CI/CD pipelines, Auto Scaling setups, CloudFormation stacks</strong>.</p><h3>📆 30-Day Study Plan (How I Did It!)</h3><p><strong>💡 Week 1–2: Learn Core Concepts</strong><br> 📌 <strong>SDLC &amp; CI/CD Pipelines</strong> — CodeCommit, CodeBuild, CodeDeploy, CodePipeline<br> 📌 <strong>Infrastructure as Code (IaC)</strong> — CloudFormation, Terraform, AWS SAM<br> 📌 <strong>Security &amp; Compliance</strong> — IAM, GuardDuty, SCPs, Config, KMS, Secrets Manager<br> 📌 <strong>Monitoring &amp; Logging</strong> — CloudWatch, X-Ray, SNS, EventBridge</p><p>🛠 <strong>Hands-on Labs:</strong><br> ✔️ Deploy an <strong>end-to-end CI/CD pipeline</strong><br> ✔️ Implement <strong>Blue/Green &amp; Canary Deployments</strong><br> ✔️ Configure <strong>CloudFormation StackSets</strong></p><p><strong>💡 Week 3: Hands-on Practice + Mock Tests</strong></p><ul><li><strong>Deploy sample workloads using Terraform &amp; CloudFormation.</strong></li><li><strong>Run Lambda &amp; ECS Fargate deployments</strong> with automated rollbacks.</li><li><strong>Take Tutorials Dojo practice exams</strong> (aim for 80%+).</li><li><strong>Review AWS Docs</strong> for weak areas.</li></ul><p><strong>💡 Week 4: Full Exam Simulation + Rapid Review</strong></p><ul><li>Take <strong>two full-length mock exams</strong> under timed conditions.</li><li><strong>Skim through AWS Well-Architected Framework</strong> whitepapers.</li><li><strong>Go over weak topics</strong> and review past mistakes.</li></ul><h3>🔥 Critical AWS Topics to Master</h3><p>📌 <strong>1. CI/CD &amp; SDLC Automation</strong><br> ✅ AWS CodeCommit, CodeBuild, CodeDeploy, CodePipeline<br> ✅ Deployment strategies — <strong>Rolling, Blue/Green, Canary</strong><br> ✅ Lambda &amp; ECS deployment best practices</p><p>📌 <strong>2. Infrastructure as Code (IaC)</strong><br> ✅ CloudFormation (Stacks, StackSets, Drift Detection)<br> ✅ Terraform vs CloudFormation (pros &amp; cons)<br> ✅ AWS SAM for serverless applications</p><p>📌 <strong>3. Security &amp; Compliance</strong><br> ✅ IAM policies, roles, SCPs, and cross-account access<br> ✅ AWS Config, AWS Shield, AWS WAF<br> ✅ AWS Secrets Manager vs Parameter Store</p><p>📌 <strong>4. Monitoring &amp; Logging</strong><br> ✅ CloudWatch Logs, Metrics, Alarms, and Dashboards<br> ✅ AWS X-Ray (distributed tracing)<br> ✅ AWS Systems Manager (Patch Manager, Session Manager)</p><p>📌 <strong>5. Incident &amp; Event Response</strong><br> ✅ Auto Scaling &amp; Load Balancers (ALB, NLB)<br> ✅ Disaster Recovery &amp; Multi-AZ Deployments<br> ✅ AWS Organizations &amp; Control Tower</p><h3>🎯 Exam Day Tips &amp; Tricks</h3><p>🚀 <strong>1. Manage Your Time Wisely</strong></p><ul><li>75 questions in <strong>180 minutes</strong> → <strong>~2.4 min per question</strong>.</li><li>If stuck, <strong>flag the question</strong> and come back later.</li></ul><p>🚀 <strong>2. Use the Elimination Strategy</strong></p><ul><li>AWS questions are tricky! <strong>Eliminate 2 wrong answers first.</strong></li><li>If two options seem right, <strong>choose the AWS-native solution.</strong></li></ul><p>🚀 <strong>3. Expect Long-Winded Questions</strong></p><ul><li>AWS <strong>loves</strong> to add <strong>extra fluff</strong> — skip to the last sentence to find the real question.</li></ul><p>🚀 <strong>4. Hydrate &amp; Take Breaks</strong></p><ul><li>It’s a <strong>3-hour exam</strong> — don’t burn out!</li></ul><p>🚀 <strong>5. Don’t Overthink It!</strong></p><ul><li>Trust your gut. Your <strong>first instinct is often correct</strong>.</li></ul><h3>🎯 Final Takeaways</h3><p>💡 <strong>What I Learned:</strong><br> ✔️ <strong>Mock exams are a MUST</strong> — Don’t book your test until you hit <strong>80%+ consistently.</strong><br> ✔️ <strong>Hands-on beats theory</strong> — Deploy real-world projects, not just watch videos.<br> ✔️ <strong>The AWS DevOps Pro exam is a marathon, not a sprint</strong> — Stay consistent, and you’ll win.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b4eaa488b0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cost-Effective Strategies to Mitigate Botnet Attacks on AWS ALB + Lambda]]></title>
            <link>https://medium.com/@patilpushkar98/cost-effective-strategies-to-mitigate-botnet-attacks-on-aws-alb-lambda-6a7158183940?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a7158183940</guid>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Wed, 19 Feb 2025 02:30:02 GMT</pubDate>
            <atom:updated>2025-02-19T02:30:02.059Z</atom:updated>
            <content:encoded><![CDATA[<h4>Scenario: Botnet Attack on a Public AWS ALB + Lambda Application</h4><p><strong>Problem: </strong>A serverless application running on <strong>AWS ALB + Lambda</strong> is experiencing a <strong>surge in botnet traffic</strong>, leading to:</p><ul><li><strong>Increased Lambda execution costs</strong> due to unnecessary invocations.</li><li><strong>High request volume</strong> overwhelming key API endpoints (/login, /search, /signup).</li><li><strong>Service degradation</strong> affecting legitimate users.</li></ul><h3>Solution 1: AWS WAF with Bot Control (Comprehensive Protection)</h3><p>To effectively mitigate bot traffic, <strong>AWS WAF Bot Control</strong> can be attached to the ALB.</p><h4>Step 1: Enable AWS WAF &amp; Attach to ALB</h4><ul><li>Navigate to <strong>AWS WAF → Web ACLs → Create Web ACL</strong>.</li><li>Attach the Web ACL to the <strong>Application Load Balancer</strong>.</li><li>Select <strong>AWS Managed Rules — Bot Control</strong>.</li></ul><h4>Step 2: Implement Specific Bot Mitigation Rules</h4><ol><li><strong>AWS Managed Bot Control</strong> — Detects and blocks bot traffic based on AWS threat intelligence.</li><li><strong>Amazon IP Reputation List</strong> — Blocks traffic from known malicious IPs.</li><li><strong>Anonymous IP List</strong> — Blocks requests from VPNs, proxies, and Tor nodes.</li><li><strong>Rate-Based Rules</strong> — Limits excessive API requests (e.g., max <strong>50 requests/min per IP</strong> for /login).</li><li><strong>WAF CAPTCHA &amp; Challenge Actions</strong> — Adds CAPTCHA verification to prevent automated bot submissions.</li></ol><h4>Cost Breakdown: AWS WAF</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*UBuiJsTDAkZxSn42fItOZw.png" /></figure><p>💡 <strong>Cost Optimization:</strong></p><ul><li>Stick to <strong>Bot Control (Common) + Rate Limiting</strong> for a <strong>low-cost solution (~$10/month)</strong>.</li><li>Avoid excessive <strong>CAPTCHA-based rules</strong>, as costs may <strong>exceed $2,000/month</strong>.</li></ul><h3>Solution 2: ALB Listener Rules (Low-Cost Alternative)</h3><p>If <strong>AWS WAF is too expensive</strong>, use <strong>ALB Listener Rules</strong> to block bot traffic <strong>before reaching Lambda</strong>.</p><h4>Step 1: Block Requests with Suspicious User-Agents</h4><p>Modify <strong>ALB Listener Rules</strong> to <strong>deny requests</strong> from known bot user-agents:</p><pre>if ($http_user_agent ~* (curl|wget|bot|crawler|scraper|python-requests)) {<br>    return 403;<br>}</pre><p>✅ <strong>Blocks scrapers, headless browsers, and known bots</strong>.</p><h4>Step 2: Reject Traffic with Invalid Headers</h4><ul><li>Require <strong>custom headers</strong> (X-Custom-Auth: valid-key) to allow access.</li><li>Block requests with missing or unusual Content-Type values.</li></ul><h4>Step 3: Redirect Bot Traffic to a Static S3 Page</h4><p>Instead of <strong>invoking Lambda</strong>, suspected bot traffic is redirected to an S3-hosted <strong>403 Access Denied page</strong>.</p><ul><li>Prevents unnecessary Lambda execution, reducing costs.</li></ul><h4>Step 4: Enable ALB Target Group Stickiness</h4><ul><li>Ensures <strong>real users don’t trigger unnecessary Lambda invocations</strong>.</li></ul><h4>Cost Breakdown: ALB-Based Blocking</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*UGkWwCEQTDwbjqKj6MNpiw.png" /></figure><p>✅ <strong>ALB-based blocking is free</strong> and significantly <strong>reduces Lambda costs</strong>.<br>✅ <strong>Ideal for budget-conscious deployments</strong> with <strong>moderate bot activity</strong>.</p><h3>Final Recommendations</h3><p><strong>Use Case</strong> <strong>Best Solution</strong> <strong>Enterprise-grade bot protection</strong></p><p>✅ AWS WAF + Bot Control <strong>Moderate bot traffic, cost control</strong></p><p>✅ AWS WAF (Rate Limiting + IP Blocking) <strong>Tight budget, need basic protection</strong></p><p>✅ ALB Listener Rules + S3 Block Pages</p><h3>Conclusion</h3><ul><li><strong>For robust, automated bot protection</strong>, AWS WAF with <strong>Bot Control + Rate Limiting</strong> is <strong>recommended</strong>.</li><li><strong>For cost-effective mitigation</strong>, <strong>ALB listener rules</strong> prevent bots at the <strong>load balancer level</strong> without extra WAF costs.</li><li><strong>By combining both approaches</strong>, organizations can maintain <strong>cost efficiency</strong> while <strong>securing their AWS ALB + Lambda workloads</strong>. 🚀</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a7158183940" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Elastic Kubernetes Service Pod Identity (Step-by-Step Guide)]]></title>
            <link>https://medium.com/@patilpushkar98/aws-elastic-kubernetes-service-pod-identity-step-by-step-guide-6a9f0c507edb?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a9f0c507edb</guid>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 16:58:16 GMT</pubDate>
            <atom:updated>2025-02-15T16:58:16.773Z</atom:updated>
            <content:encoded><![CDATA[<h3>EKS <strong>Pod Identity</strong> allows Kubernetes pods to securely assume IAM roles <strong>without requiring an OIDC provider</strong>.</h3><h3>Below is a detailed breakdown of how it works, including IAM role setup, configuration, and execution.</h3><h3>✅ How EKS Pod Identity Works (Flow)</h3><h3>1️⃣ Pod Requests AWS Service Access</h3><ul><li>A <strong>Kubernetes pod</strong> runs inside an <strong>Amazon EKS cluster</strong>.</li><li>The application inside the pod <strong>needs access to an AWS service</strong> (e.g., S3, DynamoDB, Secrets Manager).</li><li>The pod <strong>uses an AWS SDK or AWS CLI</strong> to make an API request.</li></ul><h3>2️⃣ Kubernetes ServiceAccount is Mapped to an IAM Role</h3><ul><li>Each pod runs with a <strong>Kubernetes ServiceAccount</strong>.</li><li>The <strong>ServiceAccount is associated with an IAM role</strong> via <strong>Pod Identity Association</strong>.</li><li>This mapping is <strong>managed inside Amazon EKS</strong>, not inside Kubernetes objects.</li></ul><p>📌 <strong>Example Pod Identity Association</strong></p><pre>aws eks create-pod-identity-association \<br>  --cluster-name my-cluster \<br>  --namespace my-namespace \<br>  --service-account my-serviceaccount \<br>  --role-arn arn:aws:iam::123456789012:role/my-pod-role</pre><p>✅ <strong>This IAM role defines what AWS resources the pod can access.</strong></p><h3>3️⃣ EKS Pod Identity Agent Retrieves IAM Credentials</h3><ul><li>The <strong>EKS Pod Identity Agent (PIA)</strong> is installed as an <strong>EKS add-on</strong>.</li><li>It runs as a <strong>DaemonSet on each node</strong>.</li><li>When a <strong>new pod starts</strong>, the <strong>PIA injects IAM credentials</strong> inside the pod using <strong>environment variables and volume mounts</strong>.</li></ul><p>📌 <strong>Injected Environment Variables</strong></p><pre>env:<br>  - name: AWS_CONTAINER_CREDENTIALS_FULL_URI<br>    value: &quot;http://169.254.170.23/v1/credentials&quot;<br>  - name: AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE<br>    value: &quot;/var/run/secrets/pods.eks.amazonaws.com/serviceaccount/eks-pod-identity-token&quot;</pre><p>✅ <strong>The AWS SDK inside the pod automatically detects these credentials!</strong></p><h3>4️⃣ Pod Identity Agent Calls AWS STS (Security Token Service)</h3><ul><li>The <strong>Pod Identity Agent makes a request to AWS STS</strong> on behalf of the pod.</li><li>It calls <strong>sts:AssumeRole</strong> for the <strong>IAM role mapped to the ServiceAccount</strong>.</li><li>AWS STS <strong>verifies the request</strong> and <strong>issues temporary security credentials</strong>.</li></ul><p>📌 <strong>AWS STS Response (Example Credentials)</strong></p><pre>{<br>  &quot;AccessKeyId&quot;: &quot;ASIAEXAMPLE&quot;,<br>  &quot;SecretAccessKey&quot;: &quot;wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY&quot;,<br>  &quot;SessionToken&quot;: &quot;IQoJb3JpZ2luX2VjE...&quot;,<br>  &quot;Expiration&quot;: &quot;2025-02-15T12:00:00Z&quot;<br>}</pre><p>✅ <strong>These temporary credentials are automatically injected into the pod.</strong></p><h3>5️⃣ AWS SDK Uses the Retrieved IAM Credentials</h3><ul><li>The pod <strong>never needs static credentials</strong> (e.g., access keys).</li><li>The <strong>AWS SDK automatically fetches credentials</strong> from AWS_CONTAINER_CREDENTIALS_FULL_URI.</li><li>The application <strong>makes requests to AWS services</strong> using the <strong>temporary credentials</strong>.</li></ul><p>📌 <strong>Example: Pod Accessing S3</strong></p><pre>import boto3</pre><pre># AWS SDK automatically detects Pod Identity credentials<br>s3 = boto3.client(&#39;s3&#39;)<br>buckets = s3.list_buckets()<br>print(buckets)</pre><p>✅ <strong>The application now securely accesses AWS services.</strong></p><h3>6️⃣ Automatic Credential Rotation</h3><ul><li>AWS STS <strong>credentials expire</strong> after <strong>15 minutes to 1 hour</strong> (default).</li><li><strong>Pod Identity Agent automatically refreshes credentials</strong> before expiration.</li><li>The <strong>AWS SDK handles this rotation seamlessly</strong>.</li></ul><p>✅ <strong>The pod continuously gets fresh AWS credentials without any manual intervention.</strong></p><h3>✅ Step-by-Step Implementation</h3><h3>1️⃣ Enable EKS Pod Identity on Your Cluster</h3><p>Check if <strong>Pod Identity is enabled</strong>:</p><pre>aws eks describe-cluster --name my-cluster --query &quot;cluster.kubernetesNetworkConfig.podIdentityEnabled&quot;</pre><p>If disabled, enable it when creating a new cluster:</p><pre>eksctl create cluster --name my-cluster --version 1.27 --enable-pod-identity</pre><p>For existing clusters:</p><pre>eksctl update cluster --name my-cluster --enable-pod-identity</pre><p>✅ <strong>EKS Pod Identity is now enabled.</strong></p><h3>2️⃣ Install the EKS Pod Identity Agent</h3><p>Install the <strong>Pod Identity Agent (PIA)</strong>:</p><pre>aws eks create-addon --cluster-name my-cluster --addon-name eks-pod-identity-agent --addon-version latest</pre><p>Verify it is running:</p><pre>kubectl get pods -n kube-system | grep &#39;eks-pod-identity-agent&#39;</pre><p>✅ <strong>Agent is running, ready to provide credentials.</strong></p><h3>3️⃣ Create an IAM Role for Pod Identity</h3><h3>Create a Trust Policy (trust-policy.json)</h3><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Sid&quot;: &quot;AllowEksAuthToAssumeRoleForPodIdentity&quot;,<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;Service&quot;: &quot;pods.eks.amazonaws.com&quot;<br>      },<br>      &quot;Action&quot;: [<br>        &quot;sts:AssumeRole&quot;,<br>        &quot;sts:TagSession&quot;<br>      ]<br>    }<br>  ]<br>}</pre><p>✅ <strong>Allows EKS Pod Identity to assume the role.</strong></p><h3>Create the IAM Role</h3><pre>aws iam create-role \<br>  --role-name my-pod-role \<br>  --assume-role-policy-document file://trust-policy.json</pre><p>✅ <strong>Role is now created.</strong></p><h3>Attach Permissions</h3><p>Example: <strong>S3 Read Access</strong></p><pre>aws iam attach-role-policy \<br>  --role-name my-pod-role \<br>  --policy-arn arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess</pre><p>✅ <strong>IAM Role now has permissions.</strong></p><h3>4️⃣ Associate IAM Role with Kubernetes ServiceAccount</h3><pre>aws eks create-pod-identity-association \<br>  --cluster-name my-cluster \<br>  --namespace my-namespace \<br>  --service-account my-serviceaccount \<br>  --role-arn arn:aws:iam::123456789012:role/my-pod-role</pre><p>✅ <strong>Pods using this ServiceAccount can now access AWS resources.</strong></p><h3>5️⃣ Deploy a Pod Using EKS Pod Identity</h3><h3>Create a Kubernetes ServiceAccount</h3><pre>apiVersion: v1<br>kind: ServiceAccount<br>metadata:<br>  name: my-serviceaccount<br>  namespace: my-namespace</pre><p>Apply it:</p><pre>kubectl apply -f serviceaccount.yaml</pre><h3>Deploy the Pod</h3><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: s3-reader-pod<br>  namespace: my-namespace<br>spec:<br>  serviceAccountName: my-serviceaccount<br>  containers:<br>  - name: s3-reader<br>    image: amazonlinux<br>    command: [&quot;/bin/sh&quot;, &quot;-c&quot;, &quot;aws s3 ls&quot;]</pre><p>Apply it:</p><pre>kubectl apply -f pod.yaml</pre><p>✅ <strong>Pod Identity Agent injects AWS credentials automatically.</strong></p><h3>6️⃣ Verify the Configuration</h3><h3>Exec into the Pod</h3><pre>kubectl exec -it s3-reader-pod -n my-namespace -- /bin/sh</pre><h3>Check IAM Role Used</h3><pre>aws sts get-caller-identity</pre><p>Expected output:</p><pre>{<br>  &quot;UserId&quot;: &quot;AROAEXAMPLE&quot;,<br>  &quot;Account&quot;: &quot;123456789012&quot;,<br>  &quot;Arn&quot;: &quot;arn:aws:sts::123456789012:assumed-role/my-pod-role&quot;<br>}</pre><p>✅ <strong>Pod is securely authenticated with AWS.</strong></p><h3>🔹 Final Summary</h3><p>✅ <strong>EKS Pod Identity securely connects Kubernetes pods to AWS services without OIDC.</strong><br> ✅ <strong>AWS STS issues temporary credentials via the Pod Identity Agent.</strong><br> ✅ <strong>No need for static credentials, manual token handling, or external OIDC providers.</strong></p><p>🚀 <strong>Now, your Kubernetes pods can securely authenticate AWS services using EKS Pod Identity!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a9f0c507edb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Run GitLab Runner Jobs as root]]></title>
            <link>https://medium.com/@patilpushkar98/how-to-run-gitlab-runner-jobs-as-root-74587e7b4dc7?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/74587e7b4dc7</guid>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 23:05:37 GMT</pubDate>
            <atom:updated>2025-01-08T23:05:37.408Z</atom:updated>
            <content:encoded><![CDATA[<h3>Running GitLab Runner Jobs as Root</h3><p>If you’re using GitLab Runner and need your jobs to execute as the root user, follow this guide to configure your runner properly. By default, GitLab Runner runs jobs under a non-root user for security. However, some scenarios, like testing privileged commands, may require root access.</p><h4>Why Run Jobs as root?</h4><p>Running jobs as root allows elevated privileges for tasks such as:</p><ul><li>Installing system-level packages.</li><li>Configuring system services.</li><li>Managing files or directories restricted to the root user.</li></ul><p><strong>⚠️ Caution:</strong> Running jobs as root can introduce security risks. Only enable this configuration in trusted environments.</p><h3>Step-by-Step Configuration</h3><h4>1. Modify GitLab Runner Service</h4><p>The GitLab Runner process needs to be configured to run jobs as root.</p><ol><li><strong>Edit the Service File</strong> Open the GitLab Runner service file:</li></ol><pre>sudo nano /etc/systemd/system/gitlab-runner.service</pre><p>Find the line starting with ExecStart and modify it to include the --user root parameter:</p><pre>ExecStart=/usr/local/bin/gitlab-runner run --config /etc/gitlab-runner/config.toml --working-directory /home/gitlab-runner --service gitlab-runner --user root</pre><p><strong>Save and Exit</strong> Save the changes and exit the editor.</p><h4>2. Restart GitLab Runner Service</h4><p>Reload the systemd configuration and restart the GitLab Runner service:</p><pre>sudo systemctl daemon-reload<br>sudo systemctl restart gitlab-runner</pre><h4>3. Verify the Runner Process</h4><p>Check that the GitLab Runner process is running as root:</p><pre>ps aux | grep gitlab-runner</pre><p>The output should indicate that jobs will now execute as the root user.</p><h4>4. Test the Configuration</h4><p>Add a test job in your .gitlab-ci.yml file to verify that jobs are running as root:</p><pre>stages:<br>  - test<br><br>test_root_user:<br>  stage: test<br>  script:<br>    - whoami<br>    - id</pre><p>Run the pipeline and confirm the output:</p><ul><li>whoami should return root.</li><li>id should show the UID and GID as 0.</li></ul><h4>5. (Optional) Update Permissions</h4><p>If needed, ensure the working directory permissions are set for root:</p><pre>sudo chmod -R 700 /home/gitlab-runner<br>sudo chown -R root:root /home/gitlab-runner</pre><h3>Security Considerations</h3><ul><li><strong>Limit Usage:</strong> Only enable this in controlled environments.</li><li><strong>Job Source:</strong> Ensure jobs come from trusted repositories.</li><li><strong>Runner Isolation:</strong> Use isolated runners for sensitive configurations.</li></ul><h4>Conclusion</h4><p>With these steps, your GitLab Runner is configured to run jobs as root, enabling elevated privileges for tasks requiring administrative access. Always weigh the benefits against the security risks and apply this setup judiciously.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74587e7b4dc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recovery Steps for CrowdStrike Agent Issue on AWS EC2 Windows Instances]]></title>
            <link>https://medium.com/@patilpushkar98/recovery-steps-for-crowdstrike-agent-issue-on-aws-ec2-windows-instances-4c28cc594f5d?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c28cc594f5d</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[crowdstrike]]></category>
            <category><![CDATA[agent-issue]]></category>
            <category><![CDATA[ec2]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Fri, 19 Jul 2024 19:23:39 GMT</pubDate>
            <atom:updated>2024-07-19T19:23:39.801Z</atom:updated>
            <content:encoded><![CDATA[<p>Starting at 9:30 PM PDT on July 18, 2024, a CrowdStrike Falcon agent update caused connectivity issues and reboots on Windows EC2 instances due to a stop error (BSOD). The following recovery options are provided to resolve this issue.</p><h3><strong>Automated Option</strong></h3><p>This option is automated and supports multiple instances in parallel, but requires the impacted instance to be stopped which in Local Store configurations will result in data loss if the affected root volume is deleted.</p><p><strong>Support Automation Workflow (SAW) AWSSupport-StartEC2RescueWorkflow to automate recovery</strong></p><ol><li><strong>Open AWS Console:</strong> Go to <a href="https://console.aws.amazon.com/systems-manager/automation/execute/AWSSupport-StartEC2RescueWorkflow">https://console.aws.amazon.com/systems-manager/automation/execute/AWSSupport-StartEC2RescueWorkflow</a></li><li><strong>Select Region and Instances:</strong> Choose your region and the affected instances to recover.</li></ol><p><strong>*Note: If your EBS root volume is encrypted, make sure to set AllowEncryptedVolume as True.</strong></p><p><strong>3. Run the Workflow:</strong> This workflow will:</p><ul><li>Launch a temporary EC2 instance.</li><li>Attach the root volume of the affected instance(s) to the temporary instance.</li><li>Execute the following PowerShell command to delete the affected CrowdStrike file</li></ul><blockquote>get-childitem -path “$env:EC2RESCUE_OFFLINE_DRIVE\Windows\System32\drivers\CrowdStrike\” -Include C-00000291*.sys -Recurse | foreach { $_.Delete()}</blockquote><p><strong>4. Verify Locally (Optional):</strong> Use this command to decode and verify the script (Windows)</p><blockquote><em>[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(“[BASE64_STRING_HERE]”))</em></blockquote><p>Example:</p><blockquote>[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(“Z2V0LWNoaWxkaXRlbSAtcGF0aCAiJGVudjpFQzJSRVNDVUVfT0ZGTElORV9EUklWRVxXaW5kb3dzXFN5c3RlbTMyXGRyaXZlcnNcQ3Jvd2RTdHJpa2VcIiAtSW5jbHVkZSBDLTAwMDAwMjkxKi5zeXMgLVJlY3Vyc2UgfCBmb3JlYWNoIHsgJF8uRGVsZXRlKCl9”))</blockquote><p>Reference: https://docs.aws.amazon.com/systems-manager-automation-runbooks/latest/userguide/automation-awssupport-startec2rescueworkflow.html</p><h3><strong>Manual Option</strong></h3><p>Reference: <a href="https://health.aws.amazon.com/health/status">https://health.aws.amazon.com/health/status</a></p><p>1. Create a snapshot of the EBS root volume of the affected instance</p><p>2. Create a new EBS volume from the snapshot in the same Availability Zone as the affected instance</p><p>3. Launch a new instance in that Availability Zone using a different version of Windows</p><p>4. Attach the EBS volume from step (2) to the new instance as a data volume</p><p>5. Navigate to the \windows\system32\drivers\CrowdStrike\ folder on the attached volume and delete “C-00000291*.sys”</p><p>6. Detach the EBS volume from the new instance</p><p>7. Create a snapshot of the detached EBS volume</p><p>8. Create an AMI from the snapshot by selecting the same volume type as the affected instance</p><p>9. Call replace root volume on the original EC2 Instance specifying the AMI just created [<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replace-root.html">Reference Link</a>]</p><p>10. Reboot the instance</p><p>11. Confirm that the “C-00000291*.sys” file in the \windows\system32\drivers\CrowdStrike\ folder</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c28cc594f5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Karpenter: Best Practices for Optimizing Your Kubernetes Clusters]]></title>
            <link>https://medium.com/@patilpushkar98/karpenter-51697567a73e?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/51697567a73e</guid>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Sun, 31 Mar 2024 21:29:00 GMT</pubDate>
            <atom:updated>2024-04-02T15:58:47.250Z</atom:updated>
            <content:encoded><![CDATA[<p>Karpenter is an innovative, open-source cluster autoscaler designed to simplify and optimize node provisioning in Kubernetes environments. Its ability to dynamically scale clusters in response to workload demands, coupled with features aimed at reducing costs, makes Karpenter a compelling choice for managing Kubernetes cluster resources. This blog delves into the reasons for using Karpenter, outlines its benefits over traditional autoscaling solutions, and shares best practices to maximize its potential.</p><h4>Why Karpenter?</h4><p>Before Karpenter’s introduction, Kubernetes users primarily depended on Amazon EC2 Auto Scaling groups and the Kubernetes Cluster Autoscaler for dynamic compute capacity adjustment. However, these solutions often required extensive configuration and were limited by their tight coupling to specific Kubernetes and AWS API versions. Karpenter eliminates the need for numerous node groups and offers flexibility not previously available, allowing for more efficient resource utilization and simplified operations.</p><p>Karpenter’s approach to autoscaling is designed to be more Kubernetes-native, providing a closer alignment with Kubernetes APIs. It offers the ability to provision nodes based on actual workload requirements rather than preset metrics, supporting a wide variety of instance types and configurations. This flexibility ensures that resources are efficiently allocated, reducing waste and optimizing costs.</p><h4>Best Practices with Karpenter</h4><p>Maximizing the benefits of Karpenter involves adopting certain best practices, from configuring the Karpenter controller to creating NodePools and scheduling pods. Here are the key recommendations:</p><p>1. Use Karpenter for Dynamic Workloads:</p><p>Karpenter excels in environments where workloads are variable and demand can spike unpredictably. It is less suited for static workloads that do not frequently change in size or resource requirements.</p><p>2. Be Cautious with Custom Launch Templates:</p><p>Karpenter advises against using custom launch templates, as they can limit the system’s ability to automatically manage multi-architecture support, node upgrades, and security configurations. Instead, leverage Karpenter’s built-in functionalities for customizing node provisioning.</p><p>3. Efficient Node Management:</p><p>Avoid provisioning instances that do not match your workload needs. Karpenter allows for excluding certain instance types, enabling you to tailor your cluster to the specific requirements of your applications.</p><p>4. Enable Interruption Handling for Spot Instances:</p><p>When using spot instances, enable Karpenter’s native interruption handling to automatically manage node termination in response to AWS EC2 Spot interruption notices, maintaining workload availability and minimizing disruption.</p><p>5. Configure for Private Clusters:</p><p>For clusters without outbound internet access, ensure proper configuration of your environment according to EKS documentation, including creating necessary AWS VPC endpoints. This is crucial for the Karpenter controller to function correctly in a private cluster setting.</p><p>6. Optimize NodePools Configuration:</p><p>When your cluster serves diverse teams or workloads, consider creating multiple NodePools. This allows for the allocation of resources tailored to specific needs, improving efficiency and potentially reducing costs.</p><p>7. Schedule Pods Strategically:</p><p>Follow EKS best practices for high availability and use Karpenter’s features to spread pods across nodes and zones evenly. This helps in achieving a resilient and scalable deployment.</p><p>8. Monitor and Limit Resource Usage:</p><p>Implement billing alarms and set resource limits within Karpenter configurations to avoid unexpected spikes in cost. Accurately configuring resource requests and limits ensures that Karpenter can optimally provision resources without overcommitting.</p><p>9. Update CoreDNS Configuration:</p><p>Given Karpenter’s dynamic nature, update CoreDNS configurations to maintain DNS query reliability during rapid node scaling events.</p><h4>Leveraging Karpenter Blueprints</h4><p>To simplify the implementation of these best practices, the Karpenter project provides “Blueprints” — pre-configured templates that align with common workload scenarios. These blueprints serve as a starting point for configuring your cluster with Karpenter, ensuring you adhere to best practices from the outset.</p><h4>Conclusion</h4><p>Karpenter represents a significant evolution in Kubernetes autoscaling, offering flexibility, efficiency, and cost savings. By following the outlined best practices, you can ensure that your clusters are not only optimized for current workloads but are also poised to efficiently scale for future demands. Whether you’re managing dynamic applications with fluctuating needs or looking to streamline your Kubernetes operations, Karpenter provides the tools to meet these challenges effectively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51697567a73e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying OpenShift Cluster on AWS]]></title>
            <link>https://medium.com/@patilpushkar98/deploying-openshift-cluster-on-aws-6eb4a8c921f2?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eb4a8c921f2</guid>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[openshift]]></category>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Sun, 25 Feb 2024 09:01:35 GMT</pubDate>
            <atom:updated>2024-02-25T09:01:35.153Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted to deploy OC on my local machine but…..</p><p><strong>Issue: Windows Home is not Supported</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/0*5t0n80B01JeOwSoG" /></figure><p><strong><em>I choose AWS</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*Zv6AUV59PTip58MLzMQkRA.jpeg" /></figure><p>Pre-Requisite:</p><ol><li>Admin Access (AWS)</li><li>Domain Name</li></ol><p>Why Domain Name?</p><p>When you create a cluster in AWS, it receives a default domain from AWS, but this isn’t widely recognized on the internet. You need your own domain to properly link and identify your cluster online.</p><h3><strong>Step 1: Create a AWS User with Admin role &amp; get access keys</strong></h3><p>Access Key — xxx</p><p>Secret Key — xxx</p><h3>Step 2: Installer and client</h3><p><strong>Version of Installer should match Openshift Cluster Version</strong></p><p>Ref: <a href="https://console.redhat.com/openshift/downloads">https://console.redhat.com/openshift/downloads</a></p><p>Ref: <a href="https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.14.12/">https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.14.12/</a></p><p><strong>Dowload installer &amp; client</strong></p><p>wget <a href="https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.14.2/openshift-client-linux.tar.gz">https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.14.2/openshift-client-linux.tar.gz</a></p><p>wget <a href="https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.14.2/openshift-install-linux-4.14.2.tar.gz">https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.14.2/openshift-install-linux-4.14.2.tar.gz</a></p><p><strong>Untar it</strong></p><p>tar -xvf openshift-install-linux-4.14.2.tar.gz</p><p>openshift-install completion bash &gt; oi.completion_bash</p><p>source ./oi.completion_bash</p><p>sudo mv oi.completion_bash /etc/bash_completion.d/</p><p>Move Installer to appropriate location</p><p>sudo cp openshift-install /usr/local/bin/</p><h3><strong>Step 3: Create a SSH key pair</strong></h3><p>Why is it needed?</p><p>When the cluster is set up, you manage it with OC commands using a cluster admin password given by the installer at the end of the installation. If issues arise and OC commands, like debugging nodes, don’t work, you’ll need SSH to log into the cluster for troubleshooting. OpenShift doesn’t make a user for you, but it lets you add an SSH key during setup for this access.</p><p>ssh-keygen -f ocp4-aws-key -N “”</p><h3><strong>Step 4: Create a public hosted zone</strong></h3><p>sudo apt update &amp;&amp; sudo apt install awscli -y</p><p>aws configure</p><p>Access Key — xxx</p><p>Secret Key — xxx</p><p>aws route53 create-hosted-zone — name oc.neonkloud.com — caller-reference 2/15/2024</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5WKgRBfjIyYmf-pp" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MKEkINPcFVnLwnMO" /></figure><p>Add new record oc.neonkloud.com &amp; add those entries</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qsg4GOSoi-yXTQAb" /></figure><p>Verify if it propagating:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/0*xq2AN_NxecJSHDz6" /></figure><h3><strong>Step 5: Run the installer</strong></h3><p>cp ocp4-aws-key /root/.ssh</p><p>cp ocp4-aws-key.pub /root/.ssh</p><p>openshift-install create install-config — dir=./openshift</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0rD6SBBEN6qp1Y2Q" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s7eDchCCQm-ZGjYq" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ds2uMnnPFQYDd4Vg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7cjAAxQWfe7I6HYf" /></figure><p>Grab the secret</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i77FD9GBehVz1Sge" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kN3PYlI2ZdQAiJ1N" /></figure><p>Once done with the config part, you will find a yaml file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mwc2w4IQV8aOZs3p" /></figure><p>By default it assumes there are 3 control plane nodes &amp; 3 worker nodes.</p><p>For testing, just deploy single node openshift cluster — set worker nodes to 0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*Uy2m5DotAEZSwr-J" /></figure><p><strong>Deploy the Cluster now</strong></p><p><strong>Note: Once you deploy the cluster the yaml file is deleted automatically. In case you want to make changes and deploy cluster with any config changes you will need the yaml file.</strong></p><p><strong>Took a backup</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/0*eNlvBPA1fYjQwhr4" /></figure><p>openshift-install create cluster –dir=./ –log-level=debug</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*O76jIQX6tuQ9w50f" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*--wwhQG1uZgoFZhK" /></figure><p>INFO Login to the console with</p><p>user: “kubeadmin”,</p><p>password: “your-password”</p><p>cat /openshift/openshift/auth/kubeadmin-password</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sg1OIP2UYdgvjiP2" /></figure><p>Export KUBECONFIG=./kubeconfig</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YtVMaHI0kW7Bq3Eu" /></figure><p>Forgot to install CLI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uF3zdgZLtNdH4tKd" /></figure><p>tar -xvf openshift-client-linux.tar.gz</p><p>sudo mv oc /usr/local/bin/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MetXZMkVEx_JS1lP" /></figure><p><strong>Working now</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*0PPrjNRwflcHg2FdFdwVBw.jpeg" /></figure><p><strong>Step 6: Cleanup (Delete the cluster)</strong></p><p>openshift-install destroy cluster — dir=./openshift — log-level=debug</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sajPmrKcnUlN6fcT" /></figure><p>Reference Videos:</p><ol><li><strong>Good (works)</strong> — <a href="https://www.youtube.com/watch?v=z3bX_vfe3_M">https://www.youtube.com/watch?v=z3bX_vfe3_M</a></li><li><strong>Old (use for ref)</strong> — <a href="https://www.youtube.com/watch?v=n5ddDIS7pYw">https://www.youtube.com/watch?v=n5ddDIS7pYw</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eb4a8c921f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying React Node App on EC2]]></title>
            <link>https://medium.com/@patilpushkar98/deploying-react-node-app-on-ec2-a402a6361e42?source=rss-bfa10cf2b6b9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a402a6361e42</guid>
            <dc:creator><![CDATA[Pushkar Patil]]></dc:creator>
            <pubDate>Tue, 18 Oct 2022 22:53:12 GMT</pubDate>
            <atom:updated>2022-11-17T02:34:47.609Z</atom:updated>
            <content:encoded><![CDATA[<ol><li>Deploy EC2 Instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFqFfonLGj36hnwr2zJqUQ.png" /></figure><p>2. Install dependencies.</p><p>&gt;&gt; create bash script (contains nodejs,nginx &amp; creation of sample react project)</p><p>#!/bin/bash<br>sudo apt-get update -y<br>sudo apt-get install curl -y<br>curl -sL <a href="https://deb.nodesource.com/setup_14.x">https://deb.nodesource.com/setup_14.x</a> | sudo -E bash -<br>sudo apt-get install -y nodejs<br>sudo apt-get install nginx -y<br>sudo systemctl reload nginx<br>cd /var/www/html<br>npx create-react-app react-tutorial<br>cd react-tutorial<br>npm run build<br>npm start</p><p>3. Browse Public IP of EC2 with port number 3000</p><p>IP-Address:3000</p><p>//</p><p>For creating a custom project.</p><p>Github Link for Source Code : <a href="https://github.com/raghavsharma1729/281-project1-FE">https://github.com/raghavsharma1729/281-project1-FE</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u8U0544LGNlECbgDhbQnoA.png" /></figure><p>&gt;&gt; cd /var/www/html</p><p>&gt;&gt; npx create-react-app frontend<br>copy contents from github to this folder (used winscp)</p><p>&gt;&gt; cd frontend<br>&gt;&gt; npm install<br>&gt;&gt; npm run build <br>&gt;&gt; npm start</p><p>Access the URL via IP-Address:3000</p><p>// End to end bash script</p><p>#!/bin/bash<br>sudo apt-get update -y<br>sudo apt-get install curl -y<br>curl -sL <a href="https://deb.nodesource.com/setup_14.x">https://deb.nodesource.com/setup_14.x</a> | sudo -E bash -<br>sudo apt-get install -y nodejs<br>sudo apt-get install nginx -y<br>sudo systemctl reload nginx<br>cd /var/www/html<br>git clone <a href="https://github.com/raghavsharma1729/281-project1-FE">https://github.com/raghavsharma1729/281-project1-FE</a><br>mv 281-project1-FE frontend<br>cd frontend<br>npm install<br>npm run build<br>npm start</p><ul><li>***************************************************************************</li></ul><p>Running node app in background use PM2</p><p>Link — <a href="https://medium.com/idomongodb/how-to-npm-run-start-at-the-background-%EF%B8%8F-64ddda7c1f1">https://medium.com/idomongodb/how-to-npm-run-start-at-the-background-%EF%B8%8F-64ddda7c1f1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a402a6361e42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>