<?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 Adebisi Oluwatimileyin on Medium]]></title>
        <description><![CDATA[Stories by Adebisi Oluwatimileyin on Medium]]></description>
        <link>https://medium.com/@adebisidaniel124?source=rss-0bc105825941------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RkJxz0fXXoMFzaErlW8j0Q.jpeg</url>
            <title>Stories by Adebisi Oluwatimileyin on Medium</title>
            <link>https://medium.com/@adebisidaniel124?source=rss-0bc105825941------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:47:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adebisidaniel124/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Built a Production-Grade Anomaly Detection & DDoS Protection System from Scratch — HNG…]]></title>
            <link>https://medium.com/@adebisidaniel124/how-i-built-a-production-grade-anomaly-detection-ddos-protection-system-from-scratch-hng-7f0edcef3536?source=rss-0bc105825941------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f0edcef3536</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Adebisi Oluwatimileyin]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 12:34:43 GMT</pubDate>
            <atom:updated>2026-04-29T12:40:58.786Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q7xTl8OJqKa5GQ5iG5FncA.png" /></figure><h3>How I Built a Production-Grade Anomaly Detection &amp; DDoS Protection System from Scratch — HNG DevSecOps Stage 3</h3><h4>A complete beginner’s journey through Docker, Python daemons, iptables, statistical anomaly detection, and real-time dashboards on AWS</h4><h3>Introduction</h3><p>Three weeks ago, I had never written a security daemon in my life.</p><p>I knew what DDoS attacks were — I’d read about them in the news. But actually building a system that detects them in real time, automatically blocks attackers using Linux firewall rules, sends Slack alerts, and displays everything on a live dashboard? That felt like something only senior security engineers at big tech companies could do.</p><p>Then came HNG Stage 3.</p><p>This article is the complete, honest documentation of how I built it — every design decision, every line of code, every error, and every lesson learned. If you’re a beginner in DevSecOps and you want to understand how real-world threat detection systems work, this article is for you.</p><p><strong>By the end of this article, you will understand:</strong></p><ul><li>How to deploy Nextcloud with Docker and Nginx on AWS</li><li>How to parse real-time web server logs with Python</li><li>How statistical anomaly detection works (z-score and sliding windows)</li><li>How to block attackers automatically using Linux iptables</li><li>How to build a live security dashboard with Flask</li><li>How to wire everything together as a production systemd service</li></ul><h3>What Is HNG Stage 3?</h3><p>HNG (Hot Globals) is a competitive internship program for developers across Africa. Stage 3 of the DevSecOps track was the most challenging task yet.</p><p>The requirements were clear and unforgiving:</p><ul><li>Deploy Nextcloud in Docker using a specific prebuilt image</li><li>Configure Nginx as a reverse proxy with JSON-format access logs</li><li>Build a Python daemon that continuously monitors those logs</li><li>Detect anomalous traffic using sliding windows and statistical baselines</li><li>Automatically block attackers using iptables within 10 seconds of detection</li><li>Implement an auto-unban system with exponential backoff</li><li>Send real-time Slack alerts for every security event</li><li>Build a live web dashboard that auto-refreshes every 3 seconds</li><li>Write structured audit logs for every action</li></ul><p>No shortcuts. No Docker Compose for the detector. No external detection libraries. Pure Python, pure Linux.</p><h3>Project Overview</h3><p>The system I built works like a real-world security operations center — but fully automated.</p><p>Here’s what it does every second:</p><ol><li><strong>Watches</strong> Nginx access logs in real time</li><li><strong>Tracks</strong> how many requests each IP makes in the last 60 seconds</li><li><strong>Compares</strong> current traffic against a 30-minute rolling baseline</li><li><strong>Detects</strong> anomalies using z-score statistics and rate multipliers</li><li><strong>Blocks</strong> suspicious IPs using Linux iptables firewall rules</li><li><strong>Alerts</strong> the security team via Slack</li><li><strong>Automatically unbans</strong> IPs after a backoff period</li><li><strong>Displays</strong> everything live on a web dashboard</li></ol><p>By the time I finished writing this article, the system had:</p><ul><li>Processed <strong>791+ requests</strong></li><li>Blocked <strong>43+ unique IP addresses</strong></li><li>Detected global traffic anomalies with <strong>z-scores above 9.0</strong></li><li>Been running continuously for <strong>over 30 hours</strong></li></ul><h3>Tools and Technologies Used</h3><p><strong>The Tech Stack:</strong></p><p><strong>. AWS EC2</strong> (Ubuntu 24.04 Server)</p><p><strong>.Docker &amp; Docker Compose</strong> (Containerization)</p><p><strong>. Nginx</strong> (Reverse Proxy &amp; JSON Logging)</p><p><strong>.Python 3.12</strong> (Detection Logic)</p><p><strong>.Flask</strong> (Web Dashboard)</p><p><strong>.iptables</strong> (Linux Firewall)</p><p><strong>.systemd</strong> (Service Management)</p><p><strong>.Slack Webhooks</strong> (Security Alerts)</p><p>• <strong>GitHub</strong> (Version Control)</p><h3>System Architecture</h3><p>Before writing any code, I designed the full architecture. Understanding how all the pieces connect is critical.</p><pre>Internet Traffic<br>      │<br>      ▼<br>┌─────────────┐<br>│    Nginx    │──── JSON logs ──▶ Docker Volume (HNG-nginx-logs)<br>│  (Port 80)  │                        │<br>└─────────────┘                        │<br>      │                                ▼<br>      ▼                     /var/lib/docker/volumes/<br>┌─────────────┐             HNG-nginx-logs/_data/hng-access.log<br>│  Nextcloud  │                        │<br>│  (Docker)   │                        ▼<br>└─────────────┘              ┌─────────────────┐<br>                             │   monitor.py    │<br>                             │ (Log tailer)    │<br>                             └────────┬────────┘<br>                                      │<br>                             ┌────────▼────────┐<br>                             │ sliding_window  │<br>                             │ (deque per IP)  │<br>                             └────────┬────────┘<br>                                      │<br>                        ┌─────────────┼─────────────┐<br>                        ▼             ▼             ▼<br>                 ┌─────────┐  ┌──────────┐  ┌──────────┐<br>                 │baseline │  │detector  │  │unbanner  │<br>                 │  .py    │  │   .py    │  │   .py    │<br>                 └─────────┘  └────┬─────┘  └──────────┘<br>                                   │<br>                          ┌────────▼────────┐<br>                          │   blocker.py    │<br>                          │ (iptables DROP) │<br>                          └────────┬────────┘<br>                                   │<br>                    ┌──────────────┼──────────────┐<br>                    ▼              ▼              ▼<br>             ┌───────────┐ ┌──────────┐ ┌──────────┐<br>             │notifier   │ │dashboard │ │audit.log │<br>             │(Slack)    │ │ (Flask)  │ │          │<br>             └───────────┘ └──────────┘ └──────────┘</pre><p><strong>Data flows like this:</strong></p><ol><li>A user visits Nextcloud</li><li>Nginx logs the request as JSON to a Docker volume</li><li>monitor.py reads the new log line immediately</li><li>sliding_window.py records the request timestamp in a deque</li><li>baseline.py updates the rolling traffic history</li><li>detector.py checks if the rate is statistically abnormal</li><li>If anomaly detected → blocker.py adds an iptables rule</li><li>notifier.py sends a Slack alert</li><li>unbanner.py releases the IP after the ban period expires</li><li>dashboard.py shows everything live at port 5000</li></ol><h3>Project File Structure</h3><pre>hng-stage3-detector/<br>├── detector/<br>│   ├── main.py           # Entry point — starts everything<br>│   ├── monitor.py        # Nginx log tailer and parser<br>│   ├── baseline.py       # Rolling 30-min baseline engine<br>│   ├── detector.py       # Anomaly detection logic<br>│   ├── blocker.py        # iptables IP blocking<br>│   ├── unbanner.py       # Auto-unban with backoff<br>│   ├── notifier.py       # Slack webhook alerts<br>│   ├── dashboard.py      # Flask live dashboard<br>│   ├── sliding_window.py # deque-based request tracking<br>│   ├── state.py          # Shared state between modules<br>│   ├── audit.py          # Structured audit logging<br>│   ├── config.py         # Python configuration<br>│   ├── config.yaml       # YAML configuration<br>│   └── requirements.txt  # Python dependencies<br>├── nginx/<br>│   └── nginx.conf        # Nginx reverse proxy config<br>├── docs/<br>│   └── architecture.md   # System architecture<br>├── screenshots/          # Dashboard and alert screenshots<br>└── README.md</pre><h3>Step-by-Step Implementation</h3><h4>Step 1 — Provision the AWS EC2 Server</h4><p>I launched a <strong>t3.small</strong> instance on AWS with Ubuntu 24.04 LTS. The minimum requirement was 2 vCPU and 2GB RAM — t3.small meets this exactly.</p><p><strong>Security Group inbound rules:</strong></p><p>To keep the system running and accessible, I configured the server’s “doors” (network ports) with specific roles. <strong>Port 22</strong> is my private entrance for remote management via SSH, while <strong>Port 80</strong> and <strong>Port 443</strong> serve as the main gates for public web traffic to reach the Nextcloud application. Most importantly, I opened <strong>Port 5000</strong>, which acts as the dedicated window for my Live Metrics Dashboard, allowing anyone to view the real-time security stats and active bans.</p><p><strong>Connecting via SSH:</strong></p><pre>ssh -i &quot;hng-detector-key.pem&quot; ubuntu@ec2-3-90-230-120.compute-1.amazonaws.com</pre><p><strong>System setup:</strong></p><pre>sudo apt update &amp;&amp; sudo apt upgrade -y<br>sudo apt install -y curl wget git python3 python3-pip python3-venv iptables<br>curl -fsSL https://get.docker.com | sudo sh<br>sudo usermod -aG docker ubuntu</pre><h4>Step 2 — Create the Docker Volume for Nginx Logs</h4><p>The logs need to be shared between the Nginx container and the Python daemon running on the host. Docker volumes make this possible.</p><pre>docker volume create HNG-nginx-logs</pre><p><strong>Why a named volume?</strong> A named volume persists independently of containers. Even if the Nginx container is restarted or replaced, the log file stays intact and our Python daemon keeps reading it.</p><h4>Step 3 — Configure Nginx with JSON Logging</h4><p>This was one of the most important steps. The Python daemon needs logs in a structured JSON format — not the default Nginx format.</p><p><strong>nginx/nginx.conf:</strong></p><pre>events {<br>    worker_connections 1024;<br>}<br>http {<br>    log_format json_combined escape=json<br>        &#39;{&#39;<br>            &#39;&quot;source_ip&quot;:&quot;$remote_addr&quot;,&#39;<br>            &#39;&quot;timestamp&quot;:&quot;$time_iso8601&quot;,&#39;<br>            &#39;&quot;method&quot;:&quot;$request_method&quot;,&#39;<br>            &#39;&quot;path&quot;:&quot;$request_uri&quot;,&#39;<br>            &#39;&quot;status&quot;:$status,&#39;<br>            &#39;&quot;response_size&quot;:$body_bytes_sent,&#39;<br>            &#39;&quot;user_agent&quot;:&quot;$http_user_agent&quot;,&#39;<br>            &#39;&quot;request_time&quot;:$request_time&#39;<br>        &#39;}&#39;;access_log /var/log/nginx/hng-access.log json_combined;server {<br>        listen 80;<br>        server_name _;<br>        client_max_body_size 512M;<br><br>        location / {<br>            proxy_pass http://nextcloud:80;<br>            proxy_set_header Host $host;<br>            proxy_set_header X-Real-IP $remote_addr;<br>            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>        }<br>    }<br>}</pre><p><strong>Each JSON log entry looks like this:</strong></p><pre>{<br>  &quot;source_ip&quot;: &quot;1.2.3.4&quot;,<br>  &quot;timestamp&quot;: &quot;2026-04-25T21:17:33+00:00&quot;,<br>  &quot;method&quot;: &quot;GET&quot;,<br>  &quot;path&quot;: &quot;/&quot;,<br>  &quot;status&quot;: 200,<br>  &quot;response_size&quot;: 6674,<br>  &quot;user_agent&quot;: &quot;curl/8.5.0&quot;,<br>  &quot;request_time&quot;: 0.342<br>}</pre><h4>Step 4 — Launch Nextcloud and Nginx with Docker Compose</h4><pre>services:<br>  nextcloud:<br>    image: kefaslungu/hng-nextcloud<br>    container_name: nextcloud<br>    restart: unless-stopped<br>    networks:<br>      - hng-network<br><br> nginx:<br>    image: nginx:alpine<br>    container_name: hng-nginx<br>    restart: unless-stopped<br>    ports:<br>      - &quot;80:80&quot;<br>    volumes:<br>      - ./nginx.conf:/etc/nginx/nginx.conf:ro<br>      - HNG-nginx-logs:/var/log/nginx<br>    depends_on:<br>      - nextcloud<br>    networks:<br>      - hng-network<br><br>networks:<br>  hng-network:<br>    driver: bridge <br><br>volumes:<br>  HNG-nginx-logs:<br>    external: true</pre><pre>cd /opt/hng-nextcloud<br>docker compose up -d</pre><p><strong>Verify logs are working:</strong></p><p>bash</p><pre>curl http://localhost/<br>docker exec hng-nginx cat /var/log/nginx/hng-access.logStep 5 — Build the Python Daemon</pre><p>The daemon is made of 9 modules that work together. Let me explain each one.</p><p>Module 1 — state.py (Shared Memory)</p><p>All modules share a single state object. This is the central memory of the system.</p><pre>import threading<br>from collections import defaultdict, deque<br><br>lock = threading.Lock()<br><br>ip_window = defaultdict(deque)      # Per-IP request timestamps<br>global_window = deque()             # Global request timestamps<br>baseline_buckets = defaultdict(list) # Per-hour traffic history<br>baseline_mean = 0.0<br>baseline_stddev = 0.0<br>banned_ips = {}<br>ip_error_window = defaultdict(deque)<br>start_time = None<br>total_requests = 0<br>total_blocked = 0<br>current_rps = 0.0<br>ip_request_counts = defaultdict(int)</pre><p><strong>Why a shared state?</strong> All modules run in separate threads. They need to read and write the same data without conflicts. The threading.Lock() ensures only one thread modifies the state at a time — like a traffic light at a crossroads.</p><p>Module 2 — sliding_window.py (Request Tracking)</p><p><strong>What is a sliding window?</strong> Imagine a conveyor belt that’s 60 seconds long. Every new request is placed on the right end. Old requests (older than 60 seconds) automatically fall off the left end. At any moment, you can count how many items are on the belt.</p><p><strong>Why deque?</strong> A deque (double-ended queue) is perfect for this. Adding to the right is O(1). Removing from the left is O(1). Much faster than a list for this use case.</p><pre>def evict_old_entries(window: deque, max_age: float) -&gt; None:<br>    cutoff = time.time() - max_age<br>    while window and window[0] &lt; cutoff:<br>        window.popleft()<br><br>def record_request(ip: str) -&gt; None:<br>    now = time.time()<br>    with state.lock:<br>        state.ip_window[ip].append(now)<br>        state.global_window.append(now)<br>        state.ip_request_counts[ip] += 1<br>        state.total_requests += 1<br>        evict_old_entries(state.ip_window[ip], WINDOW_SECONDS)<br>        evict_old_entries(state.global_window, GLOBAL_WINDOW_SECONDS)<br><br>def get_ip_rate(ip: str) -&gt; float:<br>    with state.lock:<br>        evict_old_entries(state.ip_window[ip], WINDOW_SECONDS)<br>        count = len(state.ip_window[ip])<br>    return count / WINDOW_SECONDS</pre><p>Module 3 — baseline.py (Normal Traffic History)</p><p><strong>What is a baseline?</strong> The baseline is what “normal” looks like. If your server usually gets 10 requests per second, and suddenly gets 100, that’s suspicious. But if you always get 100 at noon, then 100 at noon is normal.</p><p>The baseline engine:</p><ul><li>Keeps a 30-minute rolling history of request rates</li><li>Organizes data into per-hour buckets (so noon traffic is compared to previous noon traffic)</li><li>Recalculates mean and standard deviation every 60 seconds</li></ul><pre>def recalculate_baseline() -&gt; None:<br>    hour = get_current_hour()<br>    with state.lock:<br>        current_hour_data = state.baseline_buckets.get(hour, [])<br>        <br>        if len(current_hour_data) &gt;= 5:<br>            data = current_hour_data  # Prefer current hour<br>        else:<br>            data = []<br>            for bucket_data in state.baseline_buckets.values():<br>                data.extend(bucket_data)<br>        <br>        if not data:<br>            state.baseline_mean = 0.0<br>            state.baseline_stddev = 0.0<br>            return<br>        <br>        mean = sum(data) / len(data)<br>        variance = sum((x - mean) ** 2 for x in data) / len(data)<br>        <br>        state.baseline_mean = mean<br>        state.baseline_stddev = math.sqrt(variance)</pre><p>Module 4 — detector.py (Anomaly Detection)</p><p>This is the brain of the system. It uses two detection methods:</p><p><strong>Method 1 — Z-Score</strong> The z-score measures how many standard deviations above the mean the current rate is.</p><pre>z = (current_rate - baseline_mean) / baseline_stddev</pre><ul><li>z = 0 → exactly average</li><li>z = 1 → slightly above average (normal)</li><li>z = 3+ → very unusual → <strong>ANOMALY</strong></li></ul><p><strong>Method 2 — Rate Multiplier</strong> If current rate is more than 5x the baseline mean → <strong>ANOMALY</strong></p><p>This catches cases where the standard deviation is zero (very stable traffic) and z-score would be undefined.</p><p><strong>Error Surge Detection:</strong> If an IP’s 4xx/5xx error rate is 3x the baseline, thresholds are tightened automatically:</p><ul><li>Z-score threshold: 3.0 → 2.0</li><li>Rate multiplier: 5.0 → 3.0</li></ul><pre>def check_ip(ip: str) -&gt; dict | None:<br>    with state.lock:<br>        mean = state.baseline_mean<br>        stddev = state.baseline_stddev<br><br>if mean == 0.0:<br>        return None<br><br>current_rate = get_ip_rate(ip)<br>    zscore_threshold, rate_threshold = get_dynamic_thresholds(ip, mean)<br>    zscore = calculate_zscore(current_rate, mean, stddev)<br><br>zscore_triggered = zscore &gt; zscore_threshold<br>    rate_triggered = current_rate &gt; (mean * rate_threshold)<br><br> if zscore_triggered or rate_triggered:<br>        return {<br>            &quot;ip&quot;: ip,<br>            &quot;rate&quot;: current_rate,<br>            &quot;baseline_mean&quot;: mean,<br>            &quot;zscore&quot;: zscore,<br>            &quot;condition&quot;: f&quot;zscore={zscore:.2f}&quot;<br>        }<br>    return None</pre><p>Module 5 — blocker.py (IP Blocking)</p><p>When an anomaly is detected, the IP is blocked using Linux iptables — within 10 seconds.</p><pre>def block_ip(ip: str, detection_result: dict) -&gt; bool:<br>    # Add iptables DROP rule<br>    success = run_iptables([&quot;-I&quot;, &quot;INPUT&quot;, &quot;-s&quot;, ip, &quot;-j&quot;, &quot;DROP&quot;])<br>    <br>    if not success:<br>        return False<br><br>now = time.time()<br>    duration = UNBAN_SCHEDULE[0]  # First ban = 10 minutes<br>    <br>    with state.lock:<br>        state.banned_ips[ip] = {<br>            &quot;banned_at&quot;: now,<br>            &quot;level&quot;: 0,<br>            &quot;unban_at&quot;: now + duration,<br>            &quot;condition&quot;: detection_result.get(&quot;condition&quot;),<br>            &quot;rate&quot;: detection_result.get(&quot;rate&quot;, 0)<br>        }<br>        state.total_blocked += 1<br><br>send_ban_alert(ip, detection_result, duration)<br>    return True</pre><p><strong>What does </strong><strong>iptables -I INPUT -s IP -j DROP mean?</strong></p><ul><li>-I INPUT — Insert at the top of the INPUT chain (highest priority)</li><li>-s IP — Match packets from this source IP</li><li>-j DROP — Silently discard the packet — the attacker gets no response</li></ul><p>Module 6 — unbanner.py (Auto-Unban with Backoff)</p><p>The unbanner runs every 10 seconds and checks if any ban has expired.</p><p><strong>Backoff Schedule:</strong></p><p>1st ban — — — — — 10 minutes</p><p>2nd ban — — — — -30 minutes</p><p>3rd ban — — — — — -2 hours</p><p>4th ban — — — — — -Permanent</p><pre>def check_unbans() -&gt; None:<br>    now = time.time()<br>    with state.lock:<br>        banned_snapshot = dict(state.banned_ips)<br><br> for ip, ban_info in banned_snapshot.items():<br>        unban_at = ban_info.get(&quot;unban_at&quot;, -1)<br>        <br>        if unban_at == -1:  # Permanent ban<br>            continue<br>        <br>        if now &lt; unban_at:  # Not yet<br>            continue<br>        <br>        unblock_ip(ip)  # Time&#39;s up — release</pre><p>Module 7 — notifier.py (Slack Alerts)</p><p>Every security event triggers a Slack notification with full context.</p><pre>def send_ban_alert(ip: str, detection_result: dict, duration) -&gt; None:<br>    message = {<br>        &quot;text&quot;: &quot;🚨 *IP BANNED*&quot;,<br>        &quot;attachments&quot;: [{<br>            &quot;color&quot;: &quot;#ff0000&quot;,<br>            &quot;fields&quot;: [<br>                {&quot;title&quot;: &quot;IP Address&quot;, &quot;value&quot;: ip},<br>                {&quot;title&quot;: &quot;Duration&quot;, &quot;value&quot;: f&quot;{duration}s&quot;},<br>                {&quot;title&quot;: &quot;Condition&quot;, &quot;value&quot;: detection_result.get(&quot;condition&quot;)},<br>                {&quot;title&quot;: &quot;Rate&quot;, &quot;value&quot;: f&quot;{detection_result.get(&#39;rate&#39;, 0):.2f} req/s&quot;},<br>                {&quot;title&quot;: &quot;Baseline&quot;, &quot;value&quot;: f&quot;{detection_result.get(&#39;baseline_mean&#39;, 0):.2f} req/s&quot;},<br>                {&quot;title&quot;: &quot;Timestamp&quot;, &quot;value&quot;: format_timestamp()}<br>            ]<br>        }]<br>    }<br>    send_slack_message(message)</pre><p><strong>Security note:</strong> The Slack webhook URL is never hardcoded in the source code. It’s passed as an environment variable through the systemd service file — so it never appears in the GitHub repository.</p><p>Module 8 — dashboard.py (Live Web Dashboard)</p><p>A Flask web application that auto-refreshes every 3 seconds showing:</p><ul><li>All currently banned IPs with countdown timers</li><li>Current requests per second</li><li>Top 10 IPs by request count</li><li>CPU and memory usage</li><li>Baseline mean and standard deviation</li><li>System uptime</li></ul><p>The dashboard uses a dark terminal-style theme and a pulsing green dot to show the system is alive.</p><p><strong>API endpoints:</strong></p><ul><li>GET / — HTML dashboard</li><li>GET /api/stats — JSON stats for programmatic access</li><li>GET /api/banned — JSON list of banned IPs</li></ul><p>Module 9 — monitor.py (Log Tailer)</p><p>The monitor is the entry point of all data. It continuously tails the Nginx log file and processes every new line.</p><pre>def tail_log_file() -&gt; None:<br>    with open(LOG_FILE, &quot;r&quot;) as f:<br>        f.seek(0, 2)  # Seek to end — ignore old entries<br>        <br>        while True:<br>            line = f.readline()<br>            <br>            if not line:<br>                time.sleep(0.1)<br>                continue<br>            <br>            entry = parse_log_line(line)<br>            if entry:<br>                process_log_entry(entry)</pre><p><strong>Why seek to end first?</strong> When the daemon starts, we don’t want to reprocess millions of old log entries. We start from the current end of the file and only process new requests going forward.</p><h4>Step 6 — Run as a Systemd Service</h4><p>The daemon needs to run automatically — even after a server reboot.</p><pre>[Unit]<br>Description=HNG Anomaly Detection &amp; DDoS Protection System<br>After=network.target docker.service<br>Requires=docker.service<br><br>[Service]<br>Type=simple<br>User=ubuntu<br>WorkingDirectory=/opt/hng-detector/detector<br>Environment=PATH=/opt/hng-detector/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin<br>Environment=SLACK_WEBHOOK_URL=your_webhook_url_here<br>ExecStart=/opt/hng-detector/venv/bin/python3 /opt/hng-detector/detector/main.py<br>Restart=always<br>RestartSec=10<br><br>[Install]<br>WantedBy=multi-user.target</pre><pre>sudo systemctl daemon-reload<br>sudo systemctl enable hng-detector<br>sudo systemctl start hng-detector<br>sudo systemctl status hng-detector</pre><h3>The System in Action</h3><p>After running for 30+ hours, here are the real stats from my system:</p><pre>{<br>  &quot;active_bans&quot;: 1,<br>  &quot;total_blocked&quot;: 43,<br>  &quot;total_requests&quot;: 791,<br>  &quot;uptime&quot;: &quot;1d 6h 30m 14s&quot;,<br>  &quot;current_rps&quot;: 0.017,<br>  &quot;baseline_mean&quot;: 0.111,<br>  &quot;baseline_stddev&quot;: 0.416,<br>  &quot;cpu&quot;: 0.3,<br>  &quot;memory&quot;: 63.0<br>}</pre><p><strong>Real detection from the audit log:</strong></p><pre>[2026-04-29T06:50:19] GLOBAL_ANOMALY | condition=global_zscore=9.42 | rate=3.02 | baseline=0.06<br>[2026-04-29T06:41:05] UNBAN | 45.156.129.57 | condition=zscore=5.39</pre><p>A z-score of 9.42 means the traffic was <strong>9.42 standard deviations above the mean</strong> — an unmistakable attack pattern.<strong>Lessons Learned</strong></p><p><strong>1. Design before you code</strong> I spent time designing the full architecture before writing a single line. This saved hours of refactoring later. Every module had a clear, single responsibility.</p><p><strong>2. Never hardcode secrets</strong> The GitHub push protection caught my webhook URL. Use environment variables for all secrets — always.</p><p><strong>3. deque is the right tool for sliding windows</strong> A Python list would have required O(n) operations to remove old entries. A deque does it in O(1). For a system processing hundreds of requests per second, this matters.</p><p><strong>4. Threading requires careful state management</strong> Multiple threads reading and writing the same data without locks causes race conditions — unpredictable bugs that are very hard to debug. Every shared state access uses threading.Lock().</p><p><strong>5. Test with real traffic</strong> Running for i in {1..200}; do curl -s http://localhost/; done immediately triggered anomaly detection and showed the system working end-to-end.</p><p><strong>6. Systemd is the right way to run daemons</strong> Using systemd means the daemon starts automatically on boot, restarts if it crashes, and logs to the system journal. This is production-grade reliability.</p><p><strong>7. Statistical baselines need time to warm up</strong> For the first few minutes, the baseline has no data. The system correctly handles this by skipping detection until enough data exists.</p><h3>Conclusion</h3><p>I went from never having written a security daemon to building a system that:</p><ul><li>✅ Monitors real web server traffic in real time</li><li>✅ Detects attacks using statistical z-score analysis</li><li>✅ Blocks attackers with Linux iptables within 10 seconds</li><li>✅ Automatically unbans IPs with exponential backoff</li><li>✅ Sends real-time Slack alerts for every security event</li><li>✅ Displays everything on a live web dashboard</li><li>✅ Has blocked 43+ real IP addresses attempting to scan the server</li><li>✅ Has been running continuously for 30+ hours without intervention</li></ul><p>This is what production DevSecOps looks like in the real world. Not just deploying containers — but monitoring them, protecting them, and responding to threats automatically.</p><p>If you’re a beginner reading this — don’t be intimidated by the complexity. Break it into modules. Understand each piece before moving to the next. Test everything in isolation.</p><p>The best way to learn security engineering is to build security systems.</p><p><em>Source code: </em><a href="https://github.com/AdebisiOluwatimileyin/hng-stage3-detector"><em>github.com/AdebisiOluwatimileyin/hng-stage3-detector</em></a></p><p><em>Live dashboard: </em><a href="http://3.90.230.120:5000/"><em>http://3.90.230.120:5000</em></a></p><p><em>Written as part of the HNG Internship DevSecOps Track — Stage 3</em></p><p><em>— Adebisi Daniel</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f0edcef3536" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Zero to Production: How I Containerized a Microservices App as a Complete Beginner]]></title>
            <link>https://medium.com/@adebisidaniel124/from-zero-to-production-how-i-containerized-a-microservices-app-as-a-complete-beginner-8c28d895a6fc?source=rss-0bc105825941------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c28d895a6fc</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Adebisi Oluwatimileyin]]></dc:creator>
            <pubDate>Sun, 26 Apr 2026 19:15:20 GMT</pubDate>
            <atom:updated>2026-04-26T19:15:20.595Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mDPBRZMSBVtPD8rri7jb-w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9bV4ICr8-voMc619yGERsQ.png" /></figure><p>A beginner’s journey through Docker, CI/CD pipelines, and AWS deployment — HNG Internship Stage 2.</p><h3>Introduction</h3><p>Six months ago, I didn’t know what Docker was. I thought “containers” meant physical boxes. “CI/CD pipeline” sounded like something engineers built in a factory.</p><p>Today, I’ve built and deployed a fully containerized microservices application on AWS, complete with an automated CI/CD pipeline that lints, tests, scans for security vulnerabilities, and deploys code automatically every time I push to GitHub.</p><p>This is the story of how I did it — every command, every mistake, every error message, and every lesson learned.</p><p>If you’re a beginner in DevOps, this article is for you. I’m going to explain everything the way I wish someone had explained it to me.</p><h3>What Is This Project About?</h3><p>As part of the HNG Internship Stage 2 DevOps track, I was given a job processing system — a small application made of three separate services:</p><ul><li><strong>Frontend</strong> — A Node.js/Express web app where users submit and track jobs</li><li><strong>API</strong> — A Python/FastAPI service that creates jobs and serves status updates</li><li><strong>Worker</strong> — A Python service that picks up jobs from a queue and processes them</li><li><strong>Redis</strong> — A shared message queue connecting the API and Worker</li></ul><p>The catch? <strong>The code had intentional bugs</strong>. Finding them, fixing them, and documenting every single one was a graded part of the task.</p><p>My job was to:</p><ol><li>Find and fix all the bugs</li><li>Containerize all three services using Docker</li><li>Make them work together using Docker Compose</li><li>Write an automated CI/CD pipeline using GitHub Actions</li><li>Deploy everything to a live AWS EC2 server</li><li>Set up Nginx as a reverse proxy.</li></ol><h3>Why Does This Matter?</h3><p>Before I explain the steps, let me explain why this matters in the real world.</p><p>Modern software companies — Netflix, Uber, Airbnb — don’t run their applications as one giant program. They break them into small, independent services (microservices) that can be developed, deployed, and scaled independently.</p><p>The challenge is making all these services work together consistently. Before Docker, the classic developer excuse was <strong>“it works on my machine.”</strong> Code that worked perfectly on a developer’s laptop would fail on the server because the environments were different.</p><p><strong>Docker solved this.</strong> It packages your application and everything it needs into a container that runs the same way on any machine, anywhere in the world.</p><p><strong>CI/CD pipelines</strong> took it further — automating the entire process of testing and deploying code so humans don’t have to do it manually every time.</p><p>This is what every serious tech company does today. And now I know how.</p><h3>Tools and Technologies Used</h3><p>Before diving in, here’s everything we used and what each one does:</p><p>| Tool | What It Does |<br>| — — — | — — — — — — -|<br>| Docker | Packages apps into portable containers |<br>| Docker Compose | Runs multiple containers together |<br>| GitHub | Stores the code and triggers the pipeline |<br>| GitHub Actions | Automates testing and deployment (CI/CD) |<br>| AWS EC2 | The cloud server where everything runs |<br>| Ubuntu 24.04 | The operating system on the server |<br>| Nginx | Routes web traffic to the application |<br>| Redis | Message queue between the API and Worker |<br>| Python/FastAPI | The API service |<br>| Node.js/Express | The Frontend service |<br>| Trivy | Scans Docker images for security vulnerabilities |<br>| flake8 | Checks Python code style |<br>| ESLint | Checks JavaScript code style |<br>| hadolint | Checks Dockerfile best practices |<br>| pytest | Runs automated Python tests |</p><h4>Step-by-Step Implementation</h4><h4>Step 1 — Fork and Clone the Repository</h4><p>The first thing I did was fork the starter repository. Forking is like photocopying someone’s notebook — you get your own copy to write in without affecting the original.</p><p>git clone <a href="https://github.com/AdebisiOluwatimileyin/hng14-stage2-devops.git">https://github.com/AdebisiOluwatimileyin/hng14-stage2-devops.git</a><br>cd hng14-stage2-devops</p><p><strong>Why:</strong> You need the code on your local machine to read it, find bugs, and make changes.</p><h4>Step 2 — Read Every File Before Touching Anything</h4><p>This is the step most beginners skip, and it’s the most important one.</p><p>The task warned that the code had intentional bugs. So before writing a single line, I opened every file and read it carefully.</p><p>Here’s what I found in api/main.py:</p><pre>r = redis.Redis(host=&quot;localhost&quot;, port=6379)</pre><p>And in worker/worker.py:</p><pre>r = redis.Redis(host=&quot;localhost&quot;, port=6379)</pre><p>And in frontend/app.js:</p><pre>const API_URL = &quot;http://localhost:8000&quot;;</pre><p>Same bug, three places. And it’s a critical one.</p><h4>Step 3 — Fix the Bugs</h4><p>🐛 Bug 1 — Hardcoded “localhost” (The Critical One)</p><p>localhost means &quot;this same computer.&quot; When apps run in Docker containers, each container is its own isolated mini-computer. Container A can&#39;t reach Container B by saying &quot;localhost&quot; — that would mean calling itself.</p><p>Inside Docker, containers talk to each other using their <strong>service names</strong> — the names you define in docker-compose.yml.</p><p><strong>The fix in </strong><strong>api/main.py:</strong></p><pre># BEFORE (broken)<br>r = redis.Redis(host=&quot;localhost&quot;, port=6379)</pre><pre># AFTER (fixed)<br>r = redis.Redis(<br>    host=os.environ.get(&quot;REDIS_HOST&quot;, &quot;redis&quot;),<br>    port=int(os.environ.get(&quot;REDIS_PORT&quot;, 6379)),<br>    decode_responses=True<br>)</pre><p>Same fix in worker/worker.py. And in frontend/app.js:</p><pre>// BEFORE (broken)<br>const API_URL = &quot;http://localhost:8000&quot;;</pre><pre>// AFTER (fixed)<br>const API_URL = process.env.API_URL || &quot;http://api:8000&quot;;</pre><p>🐛 Bug 2 — Missing decode_responses=True</p><p>Without this, Redis returns raw bytes (b&quot;queued&quot;) instead of readable strings (&quot;queued&quot;). This causes crashes when the code tries to use the data as text.</p><p>🐛 Bug 3 — No Version Pins in requirements.txt</p><pre># BEFORE (dangerous)<br>fastapi<br>uvicorn<br>redis</pre><pre># AFTER (safe)<br>fastapi==0.104.1<br>uvicorn==0.24.0<br>redis==5.0.1</pre><p>Without version pins, every install might get a different version. Version 2.0 of a library might break code written for version 1.0. Pinning ensures <strong>reproducible builds</strong>.</p><p>All bugs were documented in FIXES.md.</p><h4>Step 4 — Write the Dockerfiles</h4><p>A Dockerfile is a recipe for building a Docker container. It tells Docker exactly what to install and how to run the app.</p><p>I used <strong>multi-stage builds</strong> for all three services. Think of it like cooking in two phases:</p><ol><li><strong>Build stage</strong> — Use a fully equipped kitchen to prepare everything</li><li><strong>Production stage</strong> — Only take the finished dish to the table, not all the cooking equipment</li></ol><p><strong>api/Dockerfile:</strong></p><pre># Stage 1: Builder<br>FROM python:3.11-slim AS builder<br>WORKDIR /app<br>COPY requirements.txt .<br>RUN pip install --no-cache-dir --user -r requirements.txt</pre><pre># Stage 2: Production<br>FROM python:3.11-slim<br>WORKDIR /app<br>RUN useradd --system --create-home --uid 1001 --gid 0 appuser<br>COPY --from=builder /root/.local /home/appuser/.local<br>COPY . .<br>RUN chown -R appuser /app<br>USER appuser<br>ENV PATH=/home/appuser/.local/bin:$PATH<br>EXPOSE 8000<br>HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \<br>    CMD python -c &quot;import urllib.request; urllib.request.urlopen(&#39;http://localhost:8000/health&#39;)&quot;<br>CMD [&quot;uvicorn&quot;, &quot;main:app&quot;, &quot;--host&quot;, &quot;0.0.0.0&quot;, &quot;--port&quot;, &quot;8000&quot;]</pre><p><strong>Key decisions:</strong></p><ul><li>python:3.11-slim — minimal base image (smaller and more secure)</li><li>useradd — create a non-root user (security best practice)</li><li>USER appuser — run the app as a non-root user</li><li>HEALTHCHECK — Docker checks if the container is actually working, not just running</li></ul><h4>Step 5 — Write docker-compose.yml</h4><p>Docker Compose is what makes all three containers work together. It defines every service, their networks, dependencies, and resource limits.</p><pre>yaml<br>services:<br>  redis:<br>    image: redis:7-alpine<br>    networks:<br>      - internal<br>    healthcheck:<br>      test: [&quot;CMD&quot;, &quot;redis-cli&quot;, &quot;ping&quot;]<br>      interval: 10s<br>      timeout: 5s<br>      retries: 5<br>    restart: unless-stopped<br>    deploy:<br>      resources:<br>        limits:<br>          cpus: &#39;0.5&#39;<br>          memory: 128M</pre><pre>  api:<br>    build: ./api<br>    environment:<br>      - REDIS_HOST=${REDIS_HOST:-redis}<br>      - REDIS_PORT=${REDIS_PORT:-6379}<br>    networks:<br>      - internal<br>      - public<br>    depends_on:<br>      redis:<br>        condition: service_healthy<br>    restart: unless-stopped</pre><pre>  worker:<br>    build: ./worker<br>    environment:<br>      - REDIS_HOST=${REDIS_HOST:-redis}<br>      - REDIS_PORT=${REDIS_PORT:-6379}<br>    networks:<br>      - internal<br>    depends_on:<br>      redis:<br>        condition: service_healthy<br>    restart: unless-stopped</pre><pre>  frontend:<br>    build: ./frontend<br>    environment:<br>      - API_URL=${API_URL:-http://api:8000}<br>    ports:<br>      - &quot;3000:3000&quot;<br>    networks:<br>      - internal<br>      - public<br>    depends_on:<br>      api:<br>        condition: service_healthy<br>    restart: unless-stopped</pre><pre>networks:<br>  internal:<br>    internal: true<br>  public:</pre><p><strong>Key decisions:</strong></p><ul><li>depends_on: condition: service_healthy — services only start after their dependencies are healthy, not just started</li><li>internal: true — Redis is only accessible to other containers, not the public internet</li><li>Resource limits — prevents one container from consuming all server resources</li><li>All configuration via environment variables — nothing hardcoded</li></ul><h4>Step 6 — Write Automated Tests</h4><p>The task required at least 3 unit tests for the API with Redis mocked.</p><p><strong>What is mocking?</strong> When testing code that talks to Redis, you don’t want to need a real Redis server. Mocking replaces Redis with a fake version that behaves correctly for testing purposes — like using a prop gun in a movie instead of a real one.</p><pre>python<br># api/tests/test_main.py</pre><pre>import pytest<br>from fastapi.testclient import TestClient<br>from unittest.mock import MagicMock, patch<br>import sys, os</pre><pre>sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))</pre><pre>with patch(&#39;redis.Redis&#39;) as mock_redis:<br>    mock_redis.return_value = MagicMock()<br>    from main import app</pre><pre>client = TestClient(app)</pre><pre>def test_health_check():<br>    response = client.get(&quot;/health&quot;)<br>    assert response.status_code == 200<br>    assert response.json() == {&quot;status&quot;: &quot;ok&quot;}</pre><pre>def test_create_job():<br>    with patch(&#39;main.r&#39;) as mock_r:<br>        mock_r.lpush = MagicMock()<br>        mock_r.hset = MagicMock()<br>        response = client.post(&quot;/jobs&quot;)<br>        assert response.status_code == 200<br>        assert &quot;job_id&quot; in response.json()</pre><pre>def test_get_job_not_found():<br>    with patch(&#39;main.r&#39;) as mock_r:<br>        mock_r.hget = MagicMock(return_value=None)<br>        response = client.get(&quot;/jobs/nonexistent-id&quot;)<br>        assert response.status_code == 200<br>        assert response.json() == {&quot;error&quot;: &quot;not found&quot;}</pre><pre>def test_get_job_found():<br>    with patch(&#39;main.r&#39;) as mock_r:<br>        mock_r.hget = MagicMock(return_value=&quot;completed&quot;)<br>        response = client.get(&quot;/jobs/test-job-id&quot;)<br>        assert response.status_code == 200<br>        assert response.json()[&quot;status&quot;] == &quot;completed&quot;</pre><h4>Step 7 — Test Locally</h4><p>Before pushing anything to GitHub, I tested the entire stack locally:</p><pre>docker compose up --build</pre><p>I visited http://localhost:3000 in my browser, clicked &quot;Submit New Job,&quot; and watched it go from queued → completed.</p><p><strong>Lesson:</strong> Always test locally first. Never push untested code.</p><h4>Step 8 — Deploy to AWS EC2</h4><p>I provisioned a fresh Ubuntu 24.04 EC2 instance on AWS and installed Docker:</p><pre>curl -fsSL https://get.docker.com | sudo sh<br>sudo usermod -aG docker ubuntu<br>newgrp docker</pre><p>Then cloned the repo and started the containers:</p><pre>git clone https://github.com/AdebisiOluwatimileyin/hng14-stage2-devops.git /opt/hng14-stage2-devops<br>cd /opt/hng14-stage2-devops<br>docker compose up -d --build</pre><h4>Step 9 — Configure Nginx as Reverse Proxy</h4><p>Nginx acts like a hotel receptionist — users talk to Nginx on port 80, and Nginx forwards their requests to the frontend container on port 3000.</p><pre>sudo apt install nginx -y<br>sudo nano /etc/nginx/sites-available/default</pre><pre>nginx<br><br>server {<br>    listen 80;<br>    server_name 54.174.111.132;<br><br>location / {<br>        proxy_pass http://localhost:3000;<br>        proxy_http_version 1.1;<br>        proxy_set_header Upgrade $http_upgrade;<br>        proxy_set_header Connection &#39;upgrade&#39;;<br>        proxy_set_header Host $host;<br>        proxy_cache_bypass $http_upgrade;<br>    }<br>}</pre><pre>sudo nginx -t &amp;&amp; sudo systemctl reload nginx</pre><h3>The CI/CD Pipeline</h3><p>The GitHub Actions pipeline runs automatically every time I push code to the main branch. It has six stages that run in strict order:</p><pre>lint → test → build → security-scan → integration-test → deploy</pre><h4>🔍 Lint</h4><p>Checks code quality and style:</p><ul><li>flake8 for Python</li><li>eslint for JavaScript</li><li>hadolint for Dockerfiles</li></ul><p>If your code is messy or has obvious errors, the pipeline stops here.</p><h4>🧪 Test</h4><p>Runs pytest against the API with Redis mocked. Generates a coverage report and uploads it as an artifact.</p><h4>🏗️ Build</h4><p>Builds all three Docker images and pushes them to a local registry (running as a Docker service inside the pipeline). Tags each image with the git SHA and latest.</p><h4>🔒 Security Scan</h4><p>Trivy scans all three images for known vulnerabilities. Results are uploaded as SARIF artifacts.</p><h4>🔄 Integration Test</h4><p>Brings the entire stack up inside the GitHub runner, submits a real job through the frontend, polls until it completes, then tears everything down.</p><h4>🚀 Deploy</h4><p>Only runs on pushes to main. SSHs into the EC2 server and performs a rolling update — the new container must pass its health check before the old one is stopped.</p><h3>Challenges and How I Solved Them</h3><h4>Challenge 1 — The cat Command in Dockerfiles</h4><h4><strong>Error:</strong></h4><pre>dockerfile parse error on line 1: unknown instruction: cat</pre><p><strong>What happened:</strong> When I ran cat &gt; api/Dockerfile &lt;&lt; &#39;EOF&#39; in the terminal to create the Dockerfile, the command itself got written into the file.</p><p><strong>Fix:</strong> Opened the file in VS Code, selected all, deleted everything, pasted the correct content directly.</p><p><strong>Lesson:</strong> Always verify file contents after creation with cat filename.</p><h4>Challenge 2 — Port Already in Use</h4><p><strong>Error:</strong></p><pre>failed to bind host port 0.0.0.0:3000/tcp: address already in use</pre><pre>What happened: My Stage 1 application was still running on port 3000.</pre><p><strong>Fix:</strong></p><pre>sudo lsof -i :3000        # find what&#39;s using port 3000<br>sudo kill -9 &lt;PID&gt;        # kill it<br>docker compose up -d frontend  # start the container</pre><p><strong>Lesson:</strong> Always check what’s running on a port before deploying.</p><h4>Challenge 3 — Redis UID Already Exists</h4><p><strong>Error:</strong></p><pre>useradd: UID 1000 is not unique</pre><p><strong>What happened:</strong> The node:18-slim base image already has a user with UID 1000.</p><p><strong>Fix:</strong> Changed --uid 1000 to --uid 1001 in all Dockerfiles.</p><h4>Challenge 4 — Docker DNS Resolution Failed</h4><p><strong>Error:</strong></p><pre>dial tcp: lookup registry-1.docker.io: no such host</pre><p><strong>What happened:</strong> Docker couldn’t reach Docker Hub due to a DNS issue.</p><p><strong>Fix:</strong> Added Google’s DNS servers to Docker Desktop settings:</p><p>json</p><pre>{<br>  &quot;dns&quot;: [&quot;8.8.8.8&quot;, &quot;8.8.4.4&quot;]<br>}</pre><h4>Challenge 5 — Requirements Typo</h4><p><strong>Error:</strong></p><pre>No matching distribution found for redis==5.0.1redis</pre><p><strong>What happened:</strong> A typo crept in — redis==5.0.1redis instead of redis==5.0.1.</p><p><strong>Fix:</strong> Corrected the requirements.txt file and pushed again.</p><h4>Challenge 6 — Pipeline YAML Syntax Error</h4><p><strong>Error:</strong></p><pre>yaml line 160: mapping values are not allowed here</pre><p><strong>What happened:</strong> An extra - was added to a step:</p><pre>yaml<br><br>- - name: Scan API image   # Wrong<br>      - name: Scan API image     # Correct</pre><p><strong>Fix:</strong> Found and removed the extra dash.</p><h3>Lessons Learned</h3><h4>1. Never hardcode configuration values</h4><p>Use environment variables. What works on your laptop will break in Docker if you hardcode localhost.</p><h4>2. Always use multi-stage Docker builds</h4><p>Build tools don’t belong in production images. Multi-stage builds keep images small and secure.</p><h4>3. Never run containers as root</h4><p>Always create a non-root user. If someone hacks your container, root access means they control everything.</p><h4>4. Pin your dependency versions</h4><p>redis==5.0.1 is safe. redis is a time bomb — version 8 might break everything you built for version 5.</p><h4>5. Test locally before pushing</h4><p>Pushing broken code to GitHub wastes pipeline minutes and time. Always run docker compose up --build locally first.</p><h4>6. Read error messages carefully</h4><p>Every error message tells you exactly what went wrong. Instead of panicking, read it word by word.</p><h4>7. One command at a time in terminal</h4><p>Pasting multiple commands together causes them to merge. Run them one by one and verify each output.</p><h4>8. Never commit .env file</h4><p>Your secrets belong in environment variables and GitHub Secrets — never in your repository.</p><h3>Conclusion</h3><p>When I started this task, the words “Docker,” “CI/CD,” and “microservices” felt intimidating. Now they’re part of how I think about software.</p><p>Here’s what I actually built:</p><p>A containerized application that runs the same way on any machine</p><ul><li>An automated pipeline that tests, scans, and deploys code without human intervention</li><li>A live server accessible to anyone on the internet</li><li>Documentation of every bug found and fixed</li></ul><p>The score? <strong>79/100 on the first attempt</strong> — with a working application, passing pipeline, and live deployment.</p><p>But the score isn’t the most important thing. The most important thing is that I now understand how professional DevOps engineers build and ship software. Every concept I learned here — Docker, CI/CD, reverse proxies, environment variables, security scanning — is used daily at companies like Google, Netflix, and Amazon.</p><p>If you’re a beginner reading this: don’t be intimidated by the terminal. Don’t be discouraged by error messages. Every error is a lesson in disguise. Keep building, keep breaking things, keep fixing them.</p><p>The best way to learn DevOps is to do DevOps.</p><p><em>The full source code is available at: </em><a href="https://github.com/AdebisiOluwatimileyin/hng14-stage2-devops"><em>github.com/AdebisiOluwatimileyin/hng14-stage2-devops</em></a></p><p><em>Live deployment: </em><a href="http://54.174.111.132/"><em>http://54.174.111.132</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c28d895a6fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Zero to Deployed: How I Built and Shipped My First REST API on AWS (HNG Stage 1)]]></title>
            <link>https://medium.com/@adebisidaniel124/from-zero-to-deployed-how-i-built-and-shipped-my-first-rest-api-on-aws-hng-stage-1-64e494bc896b?source=rss-0bc105825941------2</link>
            <guid isPermaLink="false">https://medium.com/p/64e494bc896b</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Adebisi Oluwatimileyin]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 15:21:53 GMT</pubDate>
            <atom:updated>2026-04-25T15:21:53.658Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YdSlEC6m1-rzVn2MiEIC2g.jpeg" /></figure><h3>Introduction</h3><p>If you’re reading this, chances are you’re either starting your DevOps journey or curious about what it takes to deploy a real application to the cloud. I was exactly where you are just days ago — excited, a bit nervous, and wondering if I could actually pull this off.</p><p>I recently completed <strong>HNG Stage 1</strong>, which challenged me to build a REST API from scratch and deploy it live on AWS. No hand-holding, no pre-built templates — just me, my terminal, and a task that would test everything I thought I knew about DevOps.</p><p>In this article, I’ll walk you through my entire journey: the tools I used, the steps I took, the errors I faced (yes, there were plenty), and most importantly, what I learned. Whether you’re a beginner or someone looking to understand the basics of API deployment, this guide is for you.</p><p><strong>What you’ll learn:</strong></p><ul><li>How to build a simple REST API with Node.js</li><li>How to deploy it on AWS EC2</li><li>How to configure Nginx as a reverse proxy</li><li>How to keep your app running with systemd</li><li>Real challenges and how to solve them</li></ul><p>Let’s dive in!</p><h3>Project Overview</h3><p><strong>The Task:</strong> Build a REST API with three specific endpoints and deploy it publicly on a cloud server.</p><p><strong>Requirements:</strong></p><ol><li><strong>GET /</strong> → Return {&quot;message&quot;: &quot;API is running&quot;}</li><li><strong>GET /health</strong> → Return {&quot;message&quot;: &quot;healthy&quot;}</li><li><strong>GET /me</strong> → Return my name, email, and GitHub profile</li></ol><p><strong>Additional Rules:</strong></p><ul><li>All responses must be JSON (not HTML or plain text)</li><li>All endpoints must return HTTP status 200</li><li>Responses must be under 500ms</li><li>The app must run on a non-public port with Nginx proxying traffic</li><li>The service must stay running even after I close my terminal</li><li>Push everything to a public GitHub repository</li></ul><p>Sounds simple, right? Well, the devil is in the details — and in production, details matter.</p><p>## Tools &amp; Technologies Used</p><p>Here’s everything I used and why:</p><p>| Tool | Purpose | Why It Matters |<br>| — — — | — — — — -| — — — — — — — — |<br>| Node.js | JavaScript runtime | Powers the backend API |<br>| Express | Web framework | Makes building APIs much easier |<br>| AWS EC2 | Cloud server | Hosts the application 24/7 |<br>| Nginx | Reverse proxy | Routes public traffic to the app |<br>| systemd | Process manager | Keeps the app running automatically |<br>| Git &amp; GitHub | Version control | Stores and tracks code changes |<br>| SSH | Remote access | Connects to the EC2 server securely |</p><p>Don’t worry if some of these terms sound unfamiliar — I’ll explain them as we go!</p><h3>Step-by-Step Implementation</h3><h4>Step 1: SSH Into My EC2 Server</h4><p>I already had an EC2 instance running from Stage 0, so I connected to it:</p><pre>ssh -i my-key.pem ubuntu@34.204.92.209</pre><p><strong>What this does:</strong> Securely logs me into my remote server using my private key.</p><h4>Step 2: Install Node.js</h4><p>AWS EC2 instances don’t come with Node.js by default, so I installed it:</p><p>bash</p><pre>curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -<br>sudo apt-get install -y nodejs</pre><p>Then verified it worked:</p><pre>node -v<br>npm -v</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*K-f5_h88vaJLNGxC9atzTQ.png" /><figcaption><strong>Output:</strong>v20.20.2<br>10.8.2</figcaption></figure><p>✅ Node.js installed successfully!</p><h4>Step 3: Create the API Project</h4><p>I created a folder for my API and initialized it:</p><pre>mkdir ~/hng-stage1 &amp;&amp; cd ~/hng-stage1<br>npm init -y</pre><p>This created a package.json file that tracks my project dependencies.</p><p>Then I installed Express:</p><pre>npm install express</pre><h4>Step 4: Write the API Code</h4><p>I created the main file:</p><pre>nano index.js</pre><p>And wrote this code:</p><pre>const express = require(&#39;express&#39;);<br>const app = express();<br>const PORT = 3000;</pre><pre>app.get(&#39;/&#39;, (req, res) =&gt; {<br>  res.status(200).json({ message: &quot;API is running&quot; });<br>});</pre><pre>app.get(&#39;/health&#39;, (req, res) =&gt; {<br>  res.status(200).json({ message: &quot;healthy&quot; });<br>});</pre><pre>app.get(&#39;/me&#39;, (req, res) =&gt; {<br>  res.status(200).json({<br>    name: &quot;Adebisi Daniel Oluwatimileyin&quot;,<br>    email: &quot;adebisidaniel124@gmail.com&quot;,<br>    github: &quot;https://github.com/AdebisiOluwatimileyin&quot;<br>  });<br>});</pre><pre>app.listen(PORT, () =&gt; {<br>  console.log(`Server running on port ${PORT}`);<br>});</pre><p><strong>What this code does:</strong></p><ul><li>Creates three routes (endpoints)</li><li>Each returns JSON with HTTP status 200</li><li>The server listens on port 3000</li></ul><h4>Step 5: Test It Locally</h4><p>I started the app temporarily:</p><pre>node index.js</pre><pre>In a second terminal window, I tested each endpoint:</pre><pre>curl http://localhost:3000/<br>curl http://localhost:3000/health<br>curl http://localhost:3000/me</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*cMZvqhZ0LUHCtmFJva2Wow.png" /><figcaption>All three returned the expected JSON! ✅</figcaption></figure><p>But there was a problem: if I closed my terminal, the app would stop. That’s where systemd comes in.</p><h4>Step 6: Set Up systemd (Keep the App Running Forever)</h4><p>I created a systemd service file:</p><pre>sudo nano /etc/systemd/system/hng-stage1.service</pre><p>And pasted this configuration:</p><pre>[Unit]<br>Description=HNG Stage1 API<br>After=network.target</pre><pre>[Service]<br>Type=simple<br>User=ubuntu<br>WorkingDirectory=/home/ubuntu/hng-stage1<br>ExecStart=/usr/bin/node /home/ubuntu/hng-stage1/index.js<br>Restart=on-failure<br>RestartSec=5<br>StandardOutput=syslog<br>StandardError=syslog<br>SyslogIdentifier=hng-stage1</pre><pre>[Install]<br>WantedBy=multi-user.target</pre><p><strong>What this does:</strong></p><ul><li>Tells the system to run my app automatically</li><li>Restarts it if it crashes</li><li>Starts it on server reboot</li></ul><p>Then I enabled and started it:</p><pre>sudo systemctl daemon-reload<br>sudo systemctl enable hng-stage1<br>sudo systemctl start hng-stage1<br>sudo systemctl status hng-stage1</pre><p><strong>Output:</strong></p><pre>● hng-stage1.service - HNG Stage1 API<br>   Active: active (running)</pre><p>✅ My app now runs 24/7!</p><h4>Step 7: Configure Nginx as a Reverse Proxy</h4><p>My app runs on port 3000, but the task requires public access on port 80. Nginx handles this.</p><p>I created an Nginx config:</p><pre>sudo nano /etc/nginx/sites-available/hng-stage1</pre><p>And added:</p><pre>server {<br>    listen 80;<br>    server_name _;<br><br>   location / {<br>        proxy_pass http://localhost:3000;<br>        proxy_http_version 1.1;<br>        proxy_set_header Upgrade $http_upgrade;<br>        proxy_set_header Connection &#39;upgrade&#39;;<br>        proxy_set_header Host $host;<br>        proxy_cache_bypass $http_upgrade;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    }<br>}</pre><p><strong>What this does:</strong></p><ul><li>Listens on port 80 (public)</li><li>Forwards all traffic to localhost:3000 (my app)</li></ul><p>Then I enabled it:</p><pre>sudo ln -s /etc/nginx/sites-available/hng-stage1 /etc/nginx/sites-enabled/<br>sudo rm -f /etc/nginx/sites-enabled/default<br>sudo nginx -t<br>sudo systemctl reload nginx</pre><h4>Step 8: Open Port 80 on AWS</h4><p>I went to the AWS Console → EC2 → Security Groups and added:</p><ul><li><strong>Type:</strong> HTTP</li><li><strong>Port:</strong> 80</li><li><strong>Source:</strong> 0.0.0.0/0 (Anywhere)</li></ul><h4>Step 9: Test the Live API</h4><p>From my local machine:</p><pre>curl http://34.204.92.209/<br>curl http://34.204.92.209/health<br>curl http://34.204.92.209/me</pre><p>All three worked perfectly! 🎉</p><h4>Step 10: Push to GitHub</h4><p>I initialized git and pushed my code:</p><pre>cd ~/hng-stage1<br>git init<br>echo &quot;node_modules/&quot; &gt; .gitignore<br>git add .<br>git commit -m &quot;Initial commit: HNG Stage1 Personal API&quot;<br>git remote add origin https://github.com/AdebisiOluwatimileyin/hng-stage1.git<br>git branch -M main<br>git push -u origin main</pre><p><strong>GitHub Repo:</strong> <a href="https://github.com/AdebisiOluwatimileyin/hng-stage1">https://github.com/AdebisiOluwatimileyin/hng-stage1</a></p><h3>Challenges I Faced</h3><h4>Challenge 1: Git Authentication Errors</h4><p>When I first tried to push to GitHub, I got:</p><pre>fatal: Authentication failed</pre><p><strong>Why:</strong> GitHub no longer accepts passwords — you need a Personal Access Token (PAT).</p><p><strong>Solution:</strong> I generated a PAT from GitHub Settings → Developer Settings → Personal Access Tokens, and used it as my password.</p><h4>Challenge 2: Nginx Configuration Conflicts</h4><p>After creating my Nginx config, I got:</p><pre>nginx: [emerg] conflicting server name</pre><p><strong>Why:</strong> The default Nginx config was conflicting with mine.</p><p><strong>Solution:</strong> I removed the default config:</p><pre>sudo rm /etc/nginx/sites-enabled/default<br>sudo systemctl reload nginx</pre><h4>Challenge 3: App Stopped After Closing Terminal</h4><p>Initially, I was running node index.js directly, which stopped when I logged out.</p><p><strong>Solution:</strong> systemd! It manages the process in the background and restarts it automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/315/1*XoHR9OrxvGlXpZbX_GrSAg.png" /><figcaption>When I submitted i got 9.0/10</figcaption></figure><h3>lessons Learned</h3><ol><li><strong>Production is different from localhost</strong> — What works on your machine might not work in the cloud without proper configuration.</li><li><strong>Process managers are essential</strong> — Never run production apps directly in your terminal. Use systemd, PM2, or similar tools.</li><li><strong>Nginx is your friend</strong> — It’s not just a web server; it’s a powerful reverse proxy that protects and routes your apps.</li><li><strong>Documentation matters</strong> — I spent time writing a clear README because future-me (and others) will appreciate it.</li><li><strong>Errors are teachers</strong> — Every error I encountered taught me something new about how systems work.</li></ol><h3>Conclusion</h3><p>Building and deploying my first API taught me more in a few days than months of tutorials ever could. The HNG internship doesn’t just give you tasks — it throws you into real-world scenarios where you have to figure things out.</p><p>If you’re starting your DevOps journey, here’s my advice:</p><ul><li><strong>Don’t be afraid to break things</strong> — You’ll learn faster from fixing errors than from following perfect tutorials</li><li><strong>Read error messages carefully</strong> — They usually tell you exactly what’s wrong</li><li><strong>Document everything</strong> — Your future self will thank you</li><li><strong>Ask for help when stuck</strong></li></ul><p><strong>Next up:</strong> Stage 2, where things get even more interesting with Docker, CI/CD pipelines, and multi-service applications. Stay tuned! 🚀</p><p>👉 <a href="http://34.204.92.209/me">http://34.204.92.209/me</a></p><p><strong>Check out the code:</strong> 👉 <a href="https://github.com/AdebisiOluwatimileyin/hng-stage1">https://github.com/AdebisiOluwatimileyin/hng-stage1</a></p><p><strong>Connect with me:</strong> 📧 <a href="/service/mailto:adebisidaniel124@gmail.com">adebisidaniel124@gmail</a>.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64e494bc896b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Set Up a Secure Linux Web Server from Scratch — HNG DevOps Stage 0]]></title>
            <link>https://medium.com/@adebisidaniel124/how-i-set-up-a-secure-linux-web-server-from-scratch-hng-devops-stage-0-3077ce6e1432?source=rss-0bc105825941------2</link>
            <guid isPermaLink="false">https://medium.com/p/3077ce6e1432</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Adebisi Oluwatimileyin]]></dc:creator>
            <pubDate>Sat, 25 Apr 2026 13:43:48 GMT</pubDate>
            <atom:updated>2026-04-25T15:05:28.037Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shwkQMzZ333ZpvNNH7yzNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Z4Ri2gauY9-Mo9Y0-gy4A.png" /></figure><p>A complete beginner’s walkthrough of provisioning an AWS EC2 server, hardening it with SSH and UFW, configuring Nginx, and securing it with a free SSL certificate</p><h3>Introduction</h3><p>A few days ago I had never touched a cloud server in my life.</p><p>I knew what a server was — sort of. I imagined it as a big computer sitting in a room somewhere. But actually renting one, connecting to it through a terminal, configuring it from scratch, and making it serve a live website to the entire internet? That felt like something only experienced engineers could do.</p><p>Then came HNG Stage 0.</p><p>This article is the complete, honest documentation of how I did it — every command, every mistake, every error message, and every fix. I’m going to explain everything the way I wish someone had explained it to me when I started.</p><p>If you’re new to DevOps and feeling intimidated by words like “SSH,” “firewall,” “Nginx,” or “SSL certificate” — this article is for you.</p><p><strong>By the end of this article, you will understand:</strong></p><ul><li>What a cloud server is and how to provision one</li><li>How to secure a Linux server from scratch</li><li>How to configure Nginx to serve a website and an API</li><li>How to get a free SSL certificate</li><li>How to pass a real automated security checker</li></ul><h3>What Is HNG Stage 0?</h3><p>HNG (Hot Globals) is a competitive internship program for developers across Africa. Stage 0 is the very first task — the entry point.</p><p>The DevOps Stage 0 task required me to provision a Linux server and configure it to meet specific security and functionality requirements. A bot called <strong>Thanos</strong> would SSH into my server, run automated checks on everything, and score me out of 10.</p><p>No Docker. No automation tools. Just a bare Linux server and my hands.</p><h3>Project Overview</h3><p>The goal was to have a fully secured, SSL-enabled web server that passed all of Thanos’s checks.</p><p>Here’s exactly what was required:</p><p><strong>Server Security:</strong></p><ul><li>Create a non-root user called hngdevops with sudo privileges</li><li>Configure passwordless sudo for hngdevops for /usr/sbin/sshd and /usr/sbin/ufw</li><li>Disable root SSH login</li><li>Disable password-based SSH authentication — key-based only</li><li>Configure UFW firewall to allow only ports 22, 80, and 443</li></ul><p><strong>Nginx Configuration:</strong></p><ul><li>Serve a static HTML page at / containing my HNG username as visible text</li><li>Serve a JSON response at /api with this exact format:</li></ul><pre>{<br>  &quot;message&quot;: &quot;HNGI14 Stage 0&quot;,<br>  &quot;track&quot;: &quot;DevOps&quot;,<br>  &quot;username&quot;: &quot;iamgracefund&quot;<br>}</pre><p><strong>SSL:</strong></p><ul><li>Valid Let’s Encrypt certificate (self-signed certificates fail the bot)</li><li>HTTP must redirect to HTTPS with a 301 (not 302)</li></ul><p>Tools and Technologies Used</p><p>| Tool | What It Does |<br>| — — — | — — — — — — -|<br>| AWS EC2 | The cloud server I rented from Amazon |<br>| Ubuntu 24.04 LTS | The operating system on the server |<br>| SSH | Securely connects my laptop to the server remotely |<br>| UFW | Ubuntu’s built-in firewall tool |<br>| Nginx | Web server that serves pages and APIs |<br>| Let’s Encrypt | Free SSL certificate authority |<br>| Certbot | Tool that gets and installs SSL certificates automatically |<br>| DuckDNS | Free domain name service |<br>| Windows Terminal | The terminal I used on my Windows machine |</p><p><strong>How they all connect:</strong></p><pre>Internet → Nginx (port 80/443) → Static HTML at /<br>                               → JSON API at /api<br>SSH → hngdevops user → server management<br>UFW → blocks everything except ports 22, 80, 443</pre><h3>Step-by-Step Implementation</h3><h4>Step 1 — Provision the AWS EC2 Server</h4><p><strong>What is AWS EC2?</strong> EC2 (Elastic Compute Cloud) is Amazon’s cloud server rental service. You rent a virtual computer running in Amazon’s data center and access it from anywhere in the world.</p><p><strong>What I did:</strong></p><ol><li>Created an AWS account</li><li>Went to EC2 → Launch Instance</li><li>Selected <strong>Ubuntu 24.04 LTS</strong></li><li>Chose <strong>t3.micro</strong> (cheapest option, enough for this task)</li><li>Created a key pair called Mywebserverkeypair and downloaded the .pem file</li><li>Added inbound rules for ports 22, 80, and 443 in the Security Group</li><li>Launched the instance and copied the public IP: 34.204.92.209</li></ol><p><strong>Connecting from Windows:</strong></p><pre>ssh -i &quot;C:\Users\Administrator\Downloads\Mywebserverkeypair.pem&quot; ubuntu@34.204.92.209</pre><p><strong>Breaking it down:</strong></p><ul><li>ssh — start a secure remote connection</li><li>-i — specify the identity file (private key)</li><li>&quot;C:\Users\...\Mywebserverkeypair.pem&quot; — path to your private key</li><li>ubuntu@34.204.92.209 — connect as user ubuntu on this IP</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*zGuoL4kEDPgZvDCrPQV14Q.png" /></figure><p><strong>What is a </strong><strong>.pem file?</strong> Think of it like a physical key to your server. Only the person with this file can SSH in. Keep it safe — if you lose it, you can&#39;t get back in.</p><h4>Step 2 — Create the hngdevops User</h4><p><strong>Why not just use root?</strong> The root user is the all-powerful admin that can do anything — including accidentally destroy everything. Best practice is to create a normal user with limited admin powers through sudo. This limits the blast radius if something goes wrong.</p><pre>sudo adduser hngdevops</pre><p>When prompted — set a password, then press Enter through all the other prompts (Full Name, Room Number, etc.) and type Y to confirm.</p><pre>sudo usermod -aG sudo hngdevops</pre><p><strong>Breaking it down:</strong></p><ul><li>usermod — modify a user account</li><li>-aG — append to a group</li><li>sudo — the admin group</li><li>hngdevops — the user to modify</li></ul><h4>Step 3 — Configure Passwordless Sudo</h4><p>The task required hngdevops to run two specific commands without being asked for a password. The bot checks this.</p><pre>sudo bash -c &#39;echo &quot;hngdevops ALL=(root) NOPASSWD:/usr/sbin/sshd,/usr/sbin/ufw&quot; &gt; /etc/sudoers.d/hngdevops&#39;<br>sudo chmod 440 /etc/sudoers.d/hngdevops</pre><p><strong>Verify it was written correctly:</strong></p><pre>sudo cat /etc/sudoers.d/hngdevops</pre><p>Expected output:</p><pre>hngdevops ALL=(root) NOPASSWD:/usr/sbin/sshd,/usr/sbin/ufw</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*sGMkoRTIQIFCQMuw0YqeZg.png" /><figcaption><strong>What does this mean?</strong> hngdevops can run sudo sshd -T and sudo ufw status without being asked for a password. The bot verifies this by running exactly these commands.</figcaption></figure><h4>Step 4 — Copy SSH Key to hngdevops</h4><p>The AWS key was only on the ubuntu user. I needed to copy it to hngdevops so I could log in as the new user.</p><pre>sudo mkdir -p /home/hngdevops/.ssh<br>sudo cp /home/ubuntu/.ssh/authorized_keys /home/hngdevops/.ssh/authorized_keys<br>sudo chown -R hngdevops:hngdevops /home/hngdevops/.ssh<br>sudo chmod 700 /home/hngdevops/.ssh<br>sudo chmod 600 /home/hngdevops/.ssh/authorized_keys</pre><p><strong>⚠️ Critical test — do this before anything else:</strong></p><p>Open a <strong>second terminal window</strong> and run:</p><pre>ssh -i &quot;C:\Users\Administrator\Downloads\Mywebserverkeypair.pem&quot; hngdevops@34.204.92.209</pre><p>Your prompt should change to:</p><pre>hngdevops@ip-172-31-37-14:~$</pre><p><strong>Never proceed to SSH hardening until this works.</strong> If you lock yourself out with a bad config, you lose access completely.</p><h4>Step 5 — Harden SSH</h4><pre>sudo nano /etc/ssh/sshd_config</pre><p>Inside nano, use Ctrl+W to search for and change these three lines:</p><pre>PermitRootLogin no<br>PasswordAuthentication no<br>PubkeyAuthentication yes</pre><p><strong>Make sure there is no </strong><strong># at the start of these lines.</strong> A # means the line is commented out and ignored.</p><p>Save with Ctrl+X → Y → Enter.</p><p><strong>Test the config before restarting:</strong></p><pre>sudo sshd -t</pre><p>If it prints nothing — the config is valid. If it prints an error — fix it before continuing.</p><pre>sudo service ssh restart</pre><p><strong>What each setting does:</strong></p><ul><li>PermitRootLogin no — nobody can SSH in as root, ever</li><li>PasswordAuthentication no — passwords are completely disabled for SSH</li><li>PubkeyAuthentication yes — only SSH key pairs are accepted</li></ul><h4>Step 6 — Configure UFW Firewall</h4><p><strong>What is UFW?</strong> UFW (Uncomplicated Firewall) controls which internet traffic is allowed to reach your server. Imagine your server has thousands of “doors” (ports). UFW slams all of them shut except three.</p><pre>sudo ufw default deny incoming<br>sudo ufw default allow outgoing<br>sudo ufw allow 22<br>sudo ufw allow 80<br>sudo ufw allow 443<br>sudo ufw enable</pre><p>Type y when it asks to proceed.</p><p><strong>Verify:</strong></p><pre>sudo ufw status</pre><p>Expected output:</p><pre>Status: active</pre><pre>To          Action      From<br>--          ------      ----<br>22          ALLOW       Anywhere<br>80          ALLOW       Anywhere<br>443         ALLOW       Anywhere<br>22 (v6)     ALLOW       Anywhere (v6)<br>80 (v6)     ALLOW       Anywhere (v6)<br>443 (v6)    ALLOW       Anywhere (v6)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*OnVKrWer1F4fUnrjfTbCbA.png" /></figure><h4>Step 7 — Install Nginx</h4><p><strong>What is Nginx?</strong> Nginx (pronounced “engine-x”) is a web server. When someone visits your server, Nginx receives the request and decides what to send back. In this task, it serves our HTML page and our JSON API.</p><pre>sudo apt update<br>sudo apt install nginx -y<br>sudo systemctl enable nginx<br>sudo systemctl start nginx</pre><p><strong>Verify it’s running:</strong></p><pre>systemctl is-active nginx</pre><p>Should return: active</p><h4>Step 8 — Create the HTML Page</h4><pre>sudo nano /var/www/html/index.html</pre><p>Paste this — with your exact HNG username:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>  &lt;meta charset=&quot;UTF-8&quot;&gt;<br>  &lt;title&gt;HNG DevOps Stage 0&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>  &lt;h1&gt;iamgracefund&lt;/h1&gt;<br>  &lt;p&gt;HNG Internship — DevOps Track, Stage 0&lt;/p&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Save with Ctrl+X → Y → Enter.</p><p><strong>⚠️ Critical:</strong> The username must be <strong>visible rendered text</strong> — not in a comment (&lt;!-- --&gt;), not in a &lt;meta&gt; tag. The bot checks for it explicitly and hidden text fails.</p><h4>Step 9 — Configure Nginx</h4><pre>sudo nano /etc/nginx/sites-available/default</pre><p>Delete everything and paste this — with your domain and username:</p><p>nginx</p><pre>server {<br>    listen 80;<br>    server_name iamgracefund.duckdns.org; <br><br>location / {<br>        root /var/www/html;<br>        index index.html;<br><br>    }<br>location /api {<br>        add_header Content-Type application/json;<br>        return 200 &#39;{&quot;message&quot;:&quot;HNGI14 Stage 0&quot;,&quot;track&quot;:&quot;DevOps&quot;,&quot;username&quot;:&quot;iamgracefund&quot;}&#39;;<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*6JAlKSeumSrzMeobtWWu3w.png" /></figure><p>Save with Ctrl+X → Y → Enter.</p><p><strong>Test and reload:</strong></p><pre>sudo nginx -t<br>sudo systemctl reload nginx</pre><p><strong>Verify the API:</strong></p><pre>curl http://localhost/api</pre><p>Expected:</p><pre>{&quot;message&quot;:&quot;HNGI14 Stage 0&quot;,&quot;track&quot;:&quot;DevOps&quot;,&quot;username&quot;:&quot;iamgracefund&quot;}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*NfqtOZOpZEOA08kZ_RB7-g.png" /></figure><h4>Step 10 — Get a Free Domain from DuckDNS</h4><p><strong>Why do I need a domain?</strong> SSL certificates cannot be issued for bare IP addresses. You need a domain name. DuckDNS provides free subdomains in under 2 minutes.</p><p><strong>Steps:</strong></p><ol><li>Go to <a href="https://www.duckdns.org/">duckdns.org</a></li><li>Sign in with Google</li><li>In the subdomain box type: iamgracefund</li><li>Click <strong>Add Domain</strong></li><li>In the IP box type: 34.204.92.209</li><li>Click <strong>Update IP</strong></li></ol><p>My domain: iamgracefund.duckdns.org ✅</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7w_gyJQwNXj6wl51zxMHvQ.png" /></figure><p><strong>Update Nginx with the domain:</strong></p><pre>sudo nano /etc/nginx/sites-available/default</pre><p>Change server_name _; to server_name iamgracefund.duckdns.org;</p><pre>sudo nginx -t &amp;&amp; sudo systemctl reload nginx</pre><h4>Step 11 — Get SSL Certificate with Certbot</h4><p><strong>What is SSL and why does it matter?</strong> When you visit a site with https://, the S means the connection is encrypted. Nobody between you and the server can read the data. <strong>Let&#39;s Encrypt</strong> is a free service that issues these certificates. <strong>Certbot</strong> is the tool that gets and installs them automatically.</p><pre>sudo apt install certbot python3-certbot-nginx -y<br>sudo certbot --nginx -d iamgracefund.duckdns.org</pre><p><strong>Follow the prompts:</strong></p><ul><li>Enter your email address</li><li>Agree to terms — type Y</li><li>Newsletter — type N</li><li>When asked about redirect — <strong>choose 2 (Redirect)</strong></li></ul><p><strong>Verify the 301 redirect:</strong></p><pre>curl -I http://iamgracefund.duckdns.org</pre><p>Look for:</p><pre>HTTP/1.1 301 Moved Permanently<br>Location: https://iamgracefund.duckdns.org/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*zekIOvbnhDum8VZvdZ4J2w.png" /></figure><p><strong>Why 301 and not 302?</strong> 301 means permanently moved — browsers and search engines cache it. 302 means temporarily moved. The bot specifically checks for 301 and fails for 302.</p><h4>Step 12 — Add the HNG Checker’s Public Key</h4><p><strong>This was the step that caught almost everyone.</strong></p><p>The Thanos bot SSHs into your server to verify everything from the inside. For it to log in, it needs its own public SSH key added to your server. The key is posted in the #track-devops Slack channel.</p><pre>echo &quot;ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMY5tseRHC4RfDEZv72ggwi1RpYJZLJmZkcKt/zxcfaJ jameskefaslungu@gmail.com&quot; &gt;&gt; /home/hngdevops/.ssh/authorized_keys</pre><p><strong>Then fix ownership — this is critical:</strong></p><pre>sudo chown hngdevops:hngdevops /home/hngdevops/.ssh/authorized_keys</pre><p><strong>Verify both keys are there:</strong></p><pre>cat /home/hngdevops/.ssh/authorized_keys</pre><p>You should see two keys — your AWS key and the HNG checker key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*InxSzOc5q3SXfvrHRYDr2g.png" /></figure><h4>Step 13 — Final Verification</h4><p>Before submitting, I ran every check manually:</p><pre># UFW is active with correct ports<br>sudo ufw status<br><br># Nginx is running<br>systemctl is-active nginx<br><br># Root login is disabled<br>grep &quot;PermitRootLogin&quot; /etc/ssh/sshd_config<br><br># Password auth is disabled<br>grep &quot;PasswordAuthentication&quot; /etc/ssh/sshd_config<br><br># API returns correct JSON over HTTPS<br>curl https://iamgracefund.duckdns.org/api<br><br># HTTP redirects with 301<br>curl -I http://iamgracefund.duckdns.org<br><br># Sudoers working — no password prompt<br>sudo sshd -T<br>sudo ufw status</pre><p>Everything passed. ✅</p><h4>Step 14 — Submit</h4><p>Went to #track-devops on the HNG Slack and ran:</p><p>Submitted:</p><ul><li><strong>Domain:</strong> iamgracefund.duckdns.org</li><li><strong>Username:</strong> iamgracefund</li></ul><h3>Challenges and How I Solved Them</h3><h4>Challenge 1— sudo Commands Failing</h4><p><strong>Error:</strong></p><pre>usermod: Permission denied<br>usermod: cannot lock /etc/passwd</pre><p><strong>What caused it:</strong> I ran usermod without sudo. On AWS EC2, the ubuntu user is not root — every admin command needs sudo.</p><p><strong>Fix:</strong> Added sudo before every admin command.</p><h4>Challenge 2— Sudoers File Written to Wrong Path</h4><p><strong>Error:</strong></p><pre>chmod: cannot access &#39;/etc/sudoers.d/hngdevops&#39;: No such file or directory</pre><p><strong>What caused it:</strong> The command wrapped in the terminal and the file was written with a broken name.</p><p><strong>Fix:</strong> Used a different method to write the file:</p><pre>sudo bash -c &#39;echo &quot;hngdevops ALL=(root) NOPASSWD:/usr/sbin/sshd,/usr/sbin/ufw&quot;</pre><h4>Challenge 3— Certbot Authorization Failed</h4><p><strong>Error:</strong></p><pre>An unexpected error occurred: No such authorization</pre><p><strong>What caused it:</strong> Let’s Encrypt needs to reach port 80 on your server to verify domain ownership. The AWS Security Group was blocking port 80.</p><p><strong>Fix:</strong> Went to AWS Console → EC2 → Security Groups → Added inbound rules:</p><ul><li>HTTP (port 80) — Source: 0.0.0.0/0</li><li>HTTPS (port 443) — Source: 0.0.0.0/0</li></ul><h4>Challenge 4— Bot Can’t SSH In</h4><p><strong>Error from Thanos:</strong></p><pre>ssh_connect: 0/1 pts<br>Permission denied (publickey)</pre><p><strong>What caused it:</strong> The HNG checker’s public SSH key wasn’t added to my server.</p><p><strong>Fix:</strong> Found the key in #track-devops Slack channel and added it:</p><pre>echo &quot;ssh-ed25519 AAAA...key...&quot; &gt;&gt; /home/hngdevops/.ssh/authorized_keys</pre><h4>Challenge 5— Wrong File Ownership</h4><p><strong>Error from Thanos:</strong></p><pre>Permission denied (publickey)</pre><p>Even after adding the key, the bot still couldn’t log in.</p><p><strong>What caused it:</strong> The authorized_keys file was owned by root instead of hngdevops.</p><pre>ls -la /home/hngdevops/.ssh/<br># showed: -rw------- 1 hngdevops root  ← root ownership = problem</pre><p><strong>Fix:</strong></p><pre>sudo chown hngdevops:hngdevops /home/hngdevops/.ssh/authorized_keys</pre><h4>Challenge 6— Invalid Domain in Submission</h4><p><strong>Error from Thanos:</strong></p><pre>Invalid domain. Only alphanumeric characters, dots, and hyphens are allowed.</pre><p><strong>What caused it:</strong> I submitted https://iamgracefund.duckdns.org with the https:// prefix.</p><p><strong>Fix:</strong> Submitted just the bare domain: iamgracefund.duckdns.org</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DRcbRswFzR2Yp6sbA8nO_Q.png" /><figcaption>The Result: Score: 9.5/10.0 (95%)<br>Passed: 11/11<br>Added to Stage 1 channels! 🚀</figcaption></figure><p>All 11 checks passed successfully:</p><p>| Check | Result |<br>| — — — | — — — — |<br>| http_redirect | ✅ 1/1 pts |<br>| https_root | ✅ 1.5/1.5 pts |<br>| https_api | ✅ 1.5/1.5 pts |<br>| ssl_cert | ✅ 1/1 pts |<br>| ssh_connect | ✅ 1/1 pts |<br>| ssh_user_exists | ✅ 0.5/0.5 pts |<br>| ssh_user_sudo | ✅ 0.5/0.5 pts |<br>| ssh_root_login_disabled | ✅ 1/1 pts |<br>| ssh_password_auth_disabled | ✅ 1/1 pts |<br>| ufw_ports | ✅ 0.5/0.5 pts |<br>| nginx_active | ✅ 0.5/0.5 pts |</p><h3>Lessons Learned</h3><p><strong>1. </strong><strong>sudo is not optional on AWS EC2</strong> Every admin command needs sudo. Forgetting it gives you Permission denied and wastes time.</p><p><strong>2. Always test SSH before locking it down</strong> Open a second terminal and confirm you can log in with your key before disabling password auth. If you lock yourself out, you lose access completely.</p><p><strong>3. AWS Security Groups are a separate firewall</strong> UFW lives on your server. AWS Security Groups live at the network level — before traffic even reaches your server. Both need to allow the ports you need.</p><p><strong>4. The HNG checker key is not optional</strong> Without adding the bot’s public SSH key, all SSH checks fail silently. I had to go and check the Slack channel for the key.</p><p><strong>5. File ownership matters as much as permissions</strong> Even with the right key added, wrong file ownership causes Permission denied. Always run chown after copying files.</p><p><strong>6. Username casing is exact</strong> Your HNG username in the JSON and HTML must match your registered username byte for byte. One wrong capital letter and the bot silently rejects you.</p><p><strong>7. A 301 is not a 302</strong> HTTP redirect codes matter. The bot specifically checks for 301. Using 302 fails you silently.</p><p><strong>8. Read error messages carefully</strong> Every error message tells you exactly what went wrong. Don’t panic — read it slowly, word by word.</p><p><strong>9. One command at a time</strong> Pasting multiple commands together causes them to merge and fail. Run them one by one.</p><h3>Conclusion</h3><p>I went from never touching a cloud server to a 9.5/10 score on a real DevOps security task.</p><p>Here’s what I actually built:</p><ul><li>✅ A secured Ubuntu server on AWS EC2</li><li>✅ A non-root user with specific sudo permissions</li><li>✅ SSH hardened — no root login, no passwords, key-only</li><li>✅ UFW firewall with only 3 ports open</li><li>✅ Nginx serving a static page and a JSON API</li><li>✅ Valid Let’s Encrypt SSL certificate</li><li>✅ Proper 301 HTTP to HTTPS redirect</li><li>✅ 9.5/10 on the automated Thanos checker</li></ul><p>Along the way, I also helped two other people in my cohort fix their server issues. That felt better than the score.</p><p>If you’re a beginner reading this — the terminal is not as scary as it looks. Every error is just the computer telling you what it needs. Read it, fix it, move on.</p><p>You don’t need to know everything before you start. You just need to start.</p><p><em>Live server: </em><a href="https://iamgracefund.duckdns.org/"><em>https://iamgracefund.duckdns.org</em></a></p><p><em>Written as part of the HNG Internship DevOps Track — Stage 0</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3077ce6e1432" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience Building MY First Website With AWS Free Tier In Just One Week]]></title>
            <link>https://medium.com/@adebisidaniel124/my-experience-building-my-first-website-with-aws-free-tier-in-just-one-week-98955bb35758?source=rss-0bc105825941------2</link>
            <guid isPermaLink="false">https://medium.com/p/98955bb35758</guid>
            <dc:creator><![CDATA[Adebisi Oluwatimileyin]]></dc:creator>
            <pubDate>Mon, 23 Mar 2026 00:26:34 GMT</pubDate>
            <atom:updated>2026-03-23T21:17:14.759Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TClTYfz480EMKNY6dcARBQ.png" /></figure><h3><strong>My Exprience Building MY First Website With AWS Free Tier In Just One Week</strong></h3><p>In just one week, I went from having no experience with AWS to successfully launching a live, interactive portfolio website. Along the way, I gained hands-on experience with core services like S3, CloudFront, and Amplify to host and deliver my site globally, and even built a serverless contact form using Lambda. It was an exciting and practical introduction to cloud engineering.</p><p><strong>My Experience Building MY First Website With AWS Free Tier In Just One Week.</strong></p><p>Just a week ago, the world of Amazon Web Services (AWS) felt overwhelming and filled with unfamiliar acronyms and complex services. Today, I’ve successfully deployed a live, interactive portfolio website running on a secure, globally distributed, and production-ready cloud infrastructure. The sense of achievement is truly rewarding.</p><p>This project goes beyond building a website. It’s been an intensive, hands-on introduction to modern cloud engineering. If someone had told me a week ago that I’d be working with CDNs and serverless functions, I wouldn’t have imagined it. Yet, here I am.</p><p>Here’s a closer look at what I built and the key lessons I picked up along the way.</p><p><strong>Before we get into the details, here it is:</strong> <a href="https://main.d1iq7xbxev8sk5.amplifyapp.com/">https://main.d1iq7xbxev8sk5.amplifyapp.com/</a></p><p><strong>The link to the challenge:</strong> <a href="https://builder.aws.com/content/31C2WxIDSQive7q2Dv5xNFCmYJj/aws-builder-challenge-2-build-a-website-on-the-cloud">https://builder.aws.com/content/31C2WxIDSQive7q2Dv5xNFCmYJj/aws-builder-challenge-2-build-a-website-on-the-cloud</a></p><p><strong>My Repo: </strong><a href="https://github.com/AdebisiOluwatimileyin/my-builder-challenge-website">https://github.com/AdebisiOluwatimileyin/my-builder-challenge-website</a></p><p>This is more than just a static webpage — it represents the result of hands-on experience with core AWS services. It not only highlights my personal profile but also demonstrates my ability to design, build, and deploy a reliable and scalable web application.</p><p><strong>Day 1🔐:Laying a Secure Foundation</strong></p><p><strong>What I Did:</strong> I began by properly setting up my AWS account — not just creating it, but securing it from the start. I enabled Multi-Factor Authentication (MFA) on the root account, created a separate admin IAM user following the principle of least privilege, and configured budget alerts to monitor spending.</p><p><strong>Why It Matters:</strong> Security is essential in cloud environments. An unprotected account can lead to serious risks. MFA provides an extra layer of protection, while using an IAM user instead of the root account reduces the impact of potential issues. Budget alerts act as a safeguard, helping me stay within the AWS Free Tier and avoid unexpected charges. This step is a critical foundation for anyone working in the cloud.</p><h3>Day 2 📁: Creating Secure Cloud Storage with S3</h3><p><strong>What I Did:</strong> I dove into Amazon S3 (Simple Storage Service), the backbone of static website hosting on AWS. I created a “bucket” (think of it as a top-level folder) to hold all my website files. A key learning: <strong>S3 buckets are private by default</strong>. I uploaded my initial website files to this secure cloud storage.</p><p><strong>Why It Matters:</strong> Understanding S3’s security model is crucial. The default privacy setting is a core AWS security best practice — nothing is exposed to the internet unless you explicitly allow it. This prevents accidental data leaks and forces you to think intentionally about access.</p><h3>Day 3 🌐: Building and Uploading the Website</h3><p><strong>What I Did:</strong> The challenge came with a pre-built website template. Instead of building everything from scratch, my focus was on understanding, customizing, and deploying it. I went through the HTML and CSS structure, tailored the content to reflect my own information, and uploaded the full project files to my S3 bucket.</p><p><strong>Why It Matters:</strong> This experience was highly practical. In real-world situations, you often work with existing code rather than starting from zero. It helped me learn how to navigate project structures, manage assets, and understand how local files connect to cloud storage.</p><h3>Day 4 🌍: Going Global with CloudFront</h3><p><strong>What I Did:</strong> After uploading my site to an S3 bucket, I needed a better way to make it publicly accessible. I used Amazon CloudFront, AWS’s Content Delivery Network (CDN), to create a distribution that serves content directly from my private S3 bucket. This provided my website with a fast, globally accessible URL.</p><p><strong>Why It Matters:</strong> This step made a huge difference. CloudFront improves performance by caching content at edge locations around the world, ensuring faster load times for users. It also strengthens security by keeping the S3 bucket private — users interact only with CloudFront, which acts as a secure and efficient gateway. This separation is a key principle in modern cloud architecture.</p><h3>Day 5 🚀: Professionalizing with Git and AWS Amplify</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4I5Nrf893BTy5Ewypwuqcg.png" /></figure><p><strong>What I Did:</strong> Manually uploading files to S3 wasn’t a scalable approach, so I upgraded my workflow. I initialized a Git repository for the project, pushed it to GitHub, and then connected the repository to AWS Amplify. Amplify automatically detected the code, built the project, and set up a continuous deployment pipeline.</p><p><strong>Why It Matters:</strong> This transformation elevated the project from a simple setup to a professional workflow. Now, every time I push updates to the main branch on GitHub, Amplify automatically rebuilds and redeploys the site within seconds. It’s a clear example of DevOps in practice. Driven by automation, speed, and reliability.</p><p>Day 6 📧: Adding Interactivity with Serverless</p><p><strong>What I Did:</strong> While a static portfolio is useful, I wanted something more interactive, so I added a “Contact Me” form. To handle submissions, I created an AWS Lambda function (serverless code that runs only when triggered) and integrated Amazon SNS (Simple Notification Service) to send me an email whenever someone fills out the form.</p><p><strong>Why It Matters:</strong> This was the highlight of the entire project. I built a full stack feature without managing any servers. The frontend (HTML and JavaScript) collects user input, triggers the Lambda function (backend processing), and then uses SNS (messaging service) to send a notification. It clearly shows how different AWS services can work together to create scalable, efficient, and cost effective applications.</p><p><strong>Conclusion: A Week of Transformation</strong></p><p>Reflecting on this past week, the progress is incredible. In just seven days, I went from being an AWS beginner to someone who has:</p><ul><li>Secured an AWS account</li><li>Stored data safely in S3</li><li>Built a front-end with HTML and CSS</li><li>Distributed it globally using a CDN</li><li>Automated deployments with CI/CD</li><li>Created serverless backend logic</li><li>Integrated multiple services into a fully functional application</li></ul><p>This portfolio isn’t just a showcase of my skills, it’s proof in action. Working with S3, CloudFront, Amplify, Lambda, and SNS has made the cloud much less intimidating and given me the confidence to take on even more ambitious projects. And the best part? This is just the start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98955bb35758" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>