<?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 Muneeb Islam on Medium]]></title>
        <description><![CDATA[Stories by Muneeb Islam on Medium]]></description>
        <link>https://medium.com/@muneebislam?source=rss-f3583e9b4020------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_ZgUsEOm4Icu2418fEJarQ.png</url>
            <title>Stories by Muneeb Islam on Medium</title>
            <link>https://medium.com/@muneebislam?source=rss-f3583e9b4020------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 01:44:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muneebislam/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[ CI/CD & Deployment Security for Node.js, React & Next.js]]></title>
            <link>https://medium.com/@muneebislam/ci-cd-deployment-security-for-node-js-react-next-js-9403be701bf4?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/9403be701bf4</guid>
            <category><![CDATA[logs]]></category>
            <category><![CDATA[auth]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[gafrana]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 09:32:36 GMT</pubDate>
            <atom:updated>2026-02-18T09:32:36.550Z</atom:updated>
            <content:encoded><![CDATA[<h3>With GitHub, Jenkins &amp; Grafana Monitoring</h3><p>Supply-chain attacks are real.<br>Secrets leak.<br>Production gets broken by accidental pushes.</p><p>If you’re building SaaS apps with <strong>Node.js, React, or Next.js</strong>, your CI/CD pipeline must be secure — not just automated.</p><p>In this guide, I’ll show you:</p><ul><li>How to build a secure CI/CD pipeline</li><li>How to protect secrets</li><li>How to restrict deployments</li><li>How to add monitoring with Grafana alerts</li></ul><h3>🚀 What We Are Building</h3><p><strong>Stack Example:</strong></p><ul><li>Backend → Node.js (Express)</li><li>Frontend → React or Next.js</li><li>CI → GitHub Actions or Jenkins</li><li>Deployment → VPS / AWS / Docker</li><li>Monitoring → Prometheus + Grafana</li></ul><h3>🧠 Why CI/CD Security Matters</h3><p>Most developers focus on automation. Few focus on security.</p><p>Common mistakes:</p><p>❌ Secrets printed in CI logs<br>❌ Deploy keys with full repo access<br>❌ Direct push to production<br>❌ No artifact verification<br>❌ No monitoring after deployment</p><p>These mistakes make your app vulnerable to:</p><ul><li>Supply-chain attacks</li><li>Insider mistakes</li><li>Dependency hijacking</li><li>Production outages</li></ul><h3>🏗 Step 1: Secure Repository Setup</h3><h3>✅ Branch Strategy</h3><ul><li>main → production</li><li>dev → development</li><li>Feature branches → PR only</li></ul><h3>✅ Protect Production Branch</h3><p>Enable:</p><ul><li>Require pull request before merge</li><li>Require code review</li><li>Require CI checks to pass</li></ul><p>Never allow direct push to main.</p><h3>🔐 Step 2: Secrets Management (VERY IMPORTANT)</h3><p>Never store secrets in:</p><ul><li>.env inside repo</li><li>Hardcoded files</li><li>CI logs</li></ul><h3>✅ Use Encrypted Secrets</h3><h4>In GitHub:</h4><p>Settings → Secrets → Actions → Add Secret</p><p>Example:</p><pre>DB_URL<br>JWT_SECRET<br>AWS_ACCESS_KEY</pre><p>Use in workflow:</p><pre>env:<br>  DB_URL: ${{ secrets.DB_URL }}</pre><h3>🔄 Step 3: CI Pipeline for Node.js</h3><p>Example GitHub Action:</p><pre>name: Node CI</pre><pre>on:<br>  push:<br>    branches: [dev]</pre><pre>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    <br>    steps:<br>      - uses: actions/checkout@v3<br>      <br>      - name: Install Dependencies<br>        run: npm ci<br>        <br>      - name: Run Tests<br>        run: npm test<br>        <br>      - name: Build<br>        run: npm run build</pre><h3>Why npm ci instead of npm install?</h3><p>Because:</p><ul><li>It installs exact versions from package-lock.json</li><li>Prevents dependency tampering</li><li>Reduces supply-chain risk</li></ul><h3>⚛️ CI for React / Next.js</h3><p>For Next.js:</p><pre>- name: Build Next App<br>  run: npm run build</pre><p>If using static export:</p><pre>npm run build<br>npm run export</pre><p>For React:</p><pre>npm run build</pre><p>Artifacts should be stored securely before deployment.</p><h3>🔒 Step 4: Checksum / Integrity Verification</h3><p>Before deploying:</p><p>Generate checksum:</p><pre>sha256sum build.zip</pre><p>Store hash in CI.</p><p>On server:</p><pre>sha256sum build.zip</pre><p>Compare both.</p><p>If different → DO NOT DEPLOY.</p><p>This prevents:</p><ul><li>Modified artifacts</li><li>Man-in-the-middle attack</li><li>Corrupted uploads</li></ul><h3>🔑 Step 5: Restricted Deploy Keys</h3><p>Never give full SSH access.</p><p>Instead:</p><ul><li>Create dedicated deploy user</li><li>Disable root login</li><li>Restrict SSH key to deployment only</li></ul><p>Example:</p><pre>adduser deploy</pre><p>Give only folder access:</p><pre>/var/www/app</pre><p>In GitHub → Add <strong>Deploy Key</strong><br>Read-only or limited permission only.</p><h3>🚦 Step 6: Manual Approval for Production</h3><p>Even if CI passes — do NOT auto deploy to prod.</p><p>In GitHub:</p><p>Use <strong>Environments</strong></p><pre>production → Require manual approval</pre><p>In Jenkins:</p><ul><li>Add “Input Step” before production deploy</li></ul><p>This prevents:</p><ul><li>Accidental pushes</li><li>Midnight production disasters 😅</li></ul><h3>🐳 Step 7: Docker-Based Deployment (Recommended)</h3><p>Instead of deploying raw files:</p><p>Use Docker.</p><p>Example Dockerfile for Node:</p><pre>FROM node:18-alpine</pre><pre>WORKDIR /app<br>COPY package*.json ./<br>RUN npm ci --only=production</pre><pre>COPY . .</pre><pre>CMD [&quot;node&quot;, &quot;server.js&quot;]</pre><p>Benefits:</p><ul><li>Same environment everywhere</li><li>Dependency isolation</li><li>Safer rollbacks</li></ul><h3>📊 Step 8: Monitoring with Grafana + Alerts</h3><p>Deployment without monitoring = Blind deployment.</p><p>Use:</p><ul><li>Prometheus → Collect metrics</li><li>Grafana → Visualize</li><li>Alertmanager → Send alerts</li></ul><h3>Example Alerts</h3><p>Alert if:</p><ul><li>CPU &gt; 80%</li><li>Memory spike</li><li>Error rate &gt; 5%</li><li>App down for 1 minute</li></ul><p>Grafana Alert Example:</p><pre>IF error_rate &gt; 5%<br>FOR 2 minutes<br>THEN send Slack alert</pre><p>Now you know immediately if something breaks after deployment.</p><h3>🔔 Jenkins + Grafana Integration</h3><p>If using Jenkins:</p><ul><li>Send build metrics to Prometheus</li><li>Track:</li><li>Build failures</li><li>Deployment frequency</li><li>Lead time</li></ul><p>You can monitor:</p><ul><li>How often deployments fail</li><li>Which branch causes issues</li><li>Mean time to recovery (MTTR)</li></ul><p>This is DevOps maturity level thinking.</p><h3>🛡 Final Secure CI/CD Architecture</h3><pre>Developer → PR → CI (Test + Build)<br>          ↓<br>   Manual Approval<br>          ↓<br>    Secure Deploy User<br>          ↓<br>      Docker Deploy<br>          ↓<br> Prometheus → Grafana Alerts</pre><h3>⚠️ Common Security Mistakes to Avoid</h3><p>❌ Storing secrets in repo<br>❌ Printing secrets in logs<br>❌ Using npm install in production<br>❌ Allowing direct push to main<br>❌ No rollback strategy<br>❌ No monitoring</p><h3>🧠 Pro Tips (Advanced)</h3><ul><li>Enable Dependabot for dependency scanning</li><li>Use npm audit in CI</li><li>Use Snyk or GitHub Security scanning</li><li>Rotate secrets regularly</li><li>Enable 2FA on GitHub</li><li>Sign commits</li></ul><h3>🎯 Conclusion</h3><p>CI/CD is not just about automation.</p><p>It’s about:</p><ul><li>🔐 Security</li><li>🚦 Control</li><li>📊 Observability</li><li>🚀 Reliability</li></ul><p>If you’re building serious SaaS products with Node, React, or Next.js — secure CI/CD is non-negotiable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9403be701bf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Logging, Monitoring & Alerts: The Things That Save You at 3 AM]]></title>
            <link>https://medium.com/@muneebislam/logging-monitoring-alerts-the-things-that-save-you-at-3-am-b83faee8a11c?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/b83faee8a11c</guid>
            <category><![CDATA[security-alert]]></category>
            <category><![CDATA[logging-on-ubuntu]]></category>
            <category><![CDATA[aws-digitalocean]]></category>
            <category><![CDATA[server-monitoring-tool]]></category>
            <category><![CDATA[uptime-monitoring]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Mon, 09 Feb 2026 07:37:21 GMT</pubDate>
            <atom:updated>2026-02-09T07:37:21.092Z</atom:updated>
            <content:encoded><![CDATA[<p>Most security guides talk about <strong>firewalls, HTTPS, and passwords</strong>.<br>But real incidents are discovered because of <strong>logs, metrics, and alerts</strong>.</p><p>If you can’t <strong>see</strong> what’s happening on your server, you’re already late.</p><p>This article explains <strong>how to implement logging, monitoring, and alerts</strong> on an <strong>Ubuntu server (AWS or DigitalOcean)</strong> running <strong>Node.js, Next.js/React, and MongoDB</strong> — in a way that actually works in production.</p><h3>Why Logging &amp; Monitoring Matter</h3><p>When something goes wrong, you usually ask:</p><ul><li>Who logged in?</li><li>From where?</li><li>What changed?</li><li>When did it start?</li><li>Why didn’t we notice earlier?</li></ul><p>Without logs and monitoring, <strong>you guess</strong>.<br>With them, <strong>you investigate</strong>.</p><h3>1️⃣ Centralized Logs (App + Server + Security)</h3><h3>What “centralized” actually means</h3><p>It does <strong>not</strong> mean “one huge file”.</p><p>It means:</p><ul><li>Logs are <strong>enabled</strong></li><li>Stored in <strong>known locations</strong></li><li>Easy to search</li><li>Not lost on server restart</li></ul><h3>Logs you must collect</h3><p>On a real production server:</p><p>ComponentLogsNode.js APIApp logsNginxAccess + error logsSSH/AuthLogin attemptsMongoDBDB activitySMTPEmail sending failures</p><h3>Node.js logging (do this properly)</h3><p>Never rely on console.log() in production.</p><p>Use <strong>PM2</strong>:</p><pre>npm install -g pm2<br>pm2 start app.js --name api<br>pm2 save</pre><p>PM2 automatically:</p><ul><li>Captures stdout &amp; errors</li><li>Rotates logs</li><li>Restarts crashed apps</li></ul><p>Logs live here:</p><pre>~/.pm2/logs/</pre><h3>Nginx logs (don’t disable these)</h3><p>Default locations:</p><pre>/var/log/nginx/access.log<br>/var/log/nginx/error.log</pre><p>They tell you:</p><ul><li>Which IP hit which endpoint</li><li>Status codes (401, 403, 500)</li><li>Bot &amp; attack patterns</li></ul><h3>MongoDB logs</h3><p>Usually found at:</p><pre>/var/log/mongodb/mongod.log</pre><p>Critical for:</p><ul><li>Slow queries</li><li>DB crashes</li><li>Disk space issues</li></ul><h3>2️⃣ Access &amp; Error Logs: Your Early Warning System</h3><p>Error logs answer:</p><blockquote><em>“Why did this break?”</em></blockquote><p>Access logs answer:</p><blockquote><em>“Who caused it?”</em></blockquote><p>Things to watch:</p><ul><li>Repeated failed requests</li><li>Unusual user agents</li><li>One IP spamming endpoints</li><li>Sudden request spikes</li></ul><p>Example:</p><pre>sudo tail -f /var/log/nginx/access.log</pre><h3>3️⃣ Login &amp; Admin Activity Logs</h3><h3>Server-level (SSH)</h3><p>Ubuntu logs all SSH activity here:</p><pre>/var/log/auth.log</pre><p>You’ll see:</p><ul><li>Successful logins</li><li>Failed attempts</li><li>IP addresses</li><li>Usernames</li></ul><p>This is <strong>non-negotiable</strong> for security audits.</p><h3>App-level (Admin panel)</h3><p>This part is often ignored — and that’s dangerous.</p><p>Log <strong>every sensitive action</strong>:</p><ul><li>Admin login</li><li>Role changes</li><li>Data deletion</li><li>Config updates</li></ul><p>Example:</p><pre>{<br>  action: &quot;ADMIN_DELETE_USER&quot;,<br>  adminId,<br>  targetUserId,<br>  ip,<br>  time<br>}</pre><p>Never allow admins to disable this logging.</p><h3>4️⃣ Server Monitoring (CPU, RAM, Disk)</h3><h3>DigitalOcean</h3><p>Enable built-in monitoring or install the agent:</p><pre>sudo apt install do-agent</pre><p>You’ll see:</p><ul><li>CPU usage</li><li>Memory</li><li>Disk space</li><li>Load average</li></ul><h3>AWS</h3><p>Install CloudWatch Agent:</p><pre>sudo apt install amazon-cloudwatch-agent</pre><p>Track:</p><ul><li>CPUUtilization</li><li>Memory usage</li><li>Disk I/O</li><li>Network traffic</li></ul><p>Monitoring tells you <strong>before</strong> things crash.</p><h3>5️⃣ Security Alerts (When Something Looks Wrong)</h3><h3>Fail2Ban (must-have)</h3><p>Protects against brute-force SSH attacks.</p><p>Install:</p><pre>sudo apt install fail2ban<br>sudo systemctl enable fail2ban</pre><p>What it does:</p><ul><li>Detects failed login attempts</li><li>Blocks attacker IPs automatically</li><li>Logs everything</li></ul><h3>Alerts you should enable</h3><ul><li>Too many failed logins</li><li>Sudden traffic spikes</li><li>High CPU or memory</li><li>Disk nearly full</li><li>Firewall blocks</li></ul><p>Alerts should go to:</p><ul><li>Email</li><li>Slack</li><li>PagerDuty (if serious)</li></ul><h3>6️⃣ Uptime Monitoring (Know Before Users Do)</h3><p>Your server can be <strong>down and still look fine</strong> to you.</p><p>Use external monitoring:</p><ul><li>UptimeRobot</li><li>Better Stack</li><li>Pingdom</li></ul><p>Monitor:</p><ul><li>Frontend URL</li><li>API health endpoint</li><li>Admin panel</li></ul><p>Example health check:</p><pre>GET /health → 200 OK</pre><p>Enable alerts for:</p><ul><li>Downtime</li><li>Timeouts</li><li>SSL expiry</li></ul><h3>Final Thoughts</h3><p>Security doesn’t fail suddenly.<br>It fails <strong>silently</strong>, until logs tell the story.</p><p>If you implement:</p><ul><li>Centralized logs</li><li>Server metrics</li><li>Security alerts</li><li>Uptime checks</li></ul><p>You move from <strong>reacting</strong> to <strong>preventing</strong>.</p><p>And yes — this is what real production systems look like.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b83faee8a11c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database Security: How Real Production Systems Protect User Data]]></title>
            <link>https://medium.com/@muneebislam/database-security-how-real-production-systems-protect-user-data-ecd9c14a1503?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecd9c14a1503</guid>
            <category><![CDATA[aws-best-practices]]></category>
            <category><![CDATA[database-security]]></category>
            <category><![CDATA[nodejs-backend-hardening]]></category>
            <category><![CDATA[production-devops]]></category>
            <category><![CDATA[mongodb-and-sql-security]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 06:27:24 GMT</pubDate>
            <atom:updated>2026-02-06T06:27:24.619Z</atom:updated>
            <content:encoded><![CDATA[<p>Your database is not just “another service.”<br>It <strong>is your business</strong>.</p><p>This article breaks down <strong>how databases are actually secured in production</strong>, using Ubuntu servers on <strong>AWS and DigitalOcean</strong>, running <strong>Node.js</strong>.</p><p>No theory. Just real-world practices.</p><h3>1. Your Database Should NOT Be Publicly Accessible</h3><p>If your database has a public IP, you’re already at risk.</p><p>Bots constantly scan the internet for open database ports:</p><ul><li>MongoDB → 27017</li><li>PostgreSQL → 5432</li><li>MySQL → 3306</li></ul><p>They don’t care who you are. They will find you.</p><h3>What NOT to do</h3><ul><li>Binding DB to 0.0.0.0</li><li>Opening DB ports in firewall or security groups</li><li>Relying only on a password</li></ul><p>Passwords alone are not protection.</p><h3>What production systems do instead</h3><p><strong>Best case (most common):</strong></p><ul><li>App + DB on the same Ubuntu server</li><li>DB bound to 127.0.0.1</li><li>No external access at all</li></ul><p>Now only your Node.js app can reach the database.</p><p><strong>Scaled setup:</strong></p><ul><li>Separate DB server</li><li>Private networking (AWS VPC / DigitalOcean VPC)</li><li>DB accepts traffic only from app’s private IP</li></ul><p>This alone blocks <strong>99% of automated attacks</strong>.</p><h3>2. Strong Database Passwords Are Mandatory (And Rarely Enough)</h3><p>Database passwords are often:</p><ul><li>Too short</li><li>Reused</li><li>Stored in GitHub repos (yes, really)</li></ul><h3>What “strong” actually means</h3><ul><li>20–30 characters</li><li>Random</li><li>Unique</li><li>Never reused anywhere else</li></ul><p>Example:</p><pre>hA9!f#2M8@QpLx$ZyK^B0</pre><h3>Where passwords should live</h3><ul><li>Environment variables on the server</li><li>AWS Secrets Manager</li><li>DigitalOcean App Platform secrets</li></ul><p><strong>Never</strong> in:</p><ul><li>GitHub</li><li>Frontend code</li><li>Shared Slack messages</li></ul><p>Passwords are your <strong>last line of defense</strong>, not your first.</p><h3>3. Least Privilege: Your App Should Not Be a Database Admin</h3><p>This is one of the most common and dangerous mistakes.</p><h3>The bad setup</h3><p>Your Node.js app connects using:</p><ul><li>root</li><li>admin</li><li>Full permissions</li></ul><p>If the app gets compromised, the attacker owns everything.</p><h3>The correct setup</h3><p>Create <strong>separate database users</strong>:</p><p><strong>Admin user</strong></p><ul><li>Schema changes</li><li>Backups</li><li>Maintenance</li></ul><p><strong>App user</strong></p><ul><li>Read/write only</li><li>One database</li><li>No admin privileges</li></ul><p>Now even if your app is hacked, the damage is limited.</p><p>Big companies don’t trust their own apps — and neither should you.</p><h3>4. Encrypt Database Traffic (Even on Private Networks)</h3><p>Many developers skip TLS because:</p><blockquote><em>“It’s inside a private network.”</em></blockquote><p>That’s a mistake.</p><h3>Why encryption matters</h3><ul><li>Internal traffic can still be inspected</li><li>Cloud hardware is shared</li><li>Compliance requires encryption</li></ul><h3>What to do</h3><ul><li>Enable TLS on your database</li><li>Force SSL connections from Node.js</li><li>Reject non-encrypted connections</li></ul><p>This protects:</p><ul><li>Credentials</li><li>User data</li><li>Internal tokens</li></ul><p>Encryption is cheap. Breaches are not.</p><h3>5. Backups Are Part of Security, Not Just Reliability</h3><p>If you lose your database today, can you restore it?</p><p>If the answer isn’t <strong>“yes, confidently”</strong>, you’re exposed.</p><h3>What can go wrong</h3><ul><li>Accidental deletes</li><li>Bad migrations</li><li>Ransomware</li><li>Disk failures</li><li>Insider mistakes</li></ul><h3>Proper backup strategy</h3><ul><li>Automated daily backups</li><li>Stored on a different server</li><li>Ideally in a different region</li><li>Versioned and timestamped</li></ul><h3>The mistake almost everyone makes</h3><p>They create backups…<br>but <strong>never test restoring them</strong>.</p><p>A backup you can’t restore is not a backup.</p><h3>6. Encrypt Your Backups (Because They Will Travel)</h3><p>Backups contain everything:</p><ul><li>User data</li><li>Emails</li><li>Password hashes</li><li>Private content</li></ul><p>If backups leak, encryption is the only thing protecting you.</p><h3>Best practices</h3><ul><li>Encrypt backups at rest (AES-256)</li><li>Use HTTPS for transfers</li><li>Restrict access with IAM / bucket policies</li><li>Log every download attempt</li></ul><p>Cloud storage is secure — but only if <strong>you configure it correctly</strong>.</p><h3>Final Thoughts</h3><p>Database security isn’t about one big feature.<br>It’s about <strong>layering simple decisions correctly</strong>.</p><p>If you remember only one thing, remember this:</p><blockquote><em>Your database should be invisible to the internet, boring to attackers, and recoverable on your worst day.</em></blockquote><p>That’s real security.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecd9c14a1503" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Teams Actually Stop Developers from Leaking Secrets (Without Trusting Them)]]></title>
            <link>https://medium.com/@muneebislam/how-teams-actually-stop-developers-from-leaking-secrets-without-trusting-them-b38c2e18e39c?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/b38c2e18e39c</guid>
            <category><![CDATA[startup-engineering]]></category>
            <category><![CDATA[application-security]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[devops-practice]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Wed, 04 Feb 2026 05:36:43 GMT</pubDate>
            <atom:updated>2026-02-04T05:36:43.221Z</atom:updated>
            <content:encoded><![CDATA[<p>Every engineering team eventually hits the same wall.</p><p>A developer pastes a Stripe key directly into a file.<br>Someone copies an email config from another client project.<br>Secrets end up in Git history.<br>Now everyone is stressed, rotating keys, asking, “Who pushed this?”</p><p>This problem is <strong>not about bad developers</strong>.<br>It’s about weak systems.</p><p>Good teams don’t rely on memory, warnings, or Slack messages.<br>They design workflows where <strong>mistakes are blocked automatically</strong>.</p><p>This article explains how professional teams <em>force</em> safe behavior using tooling — not trust — and shows concrete setups you can copy today.</p><h3>The Core Idea: Remove Choice</h3><p>If a developer <em>can</em> paste a secret into code, eventually someone will.</p><p>So the goal is simple:</p><blockquote><em>Make unsafe behavior impossible, not discouraged.</em></blockquote><p>That’s it.</p><p>Everything below follows from this idea.</p><h3>Rule #1: Code Must Never Contain Secrets</h3><p>No exceptions.<br>No “temporary”.<br>No “just for testing”.</p><p>If the code runs with a hardcoded value, the system is already broken.</p><h3>Bad</h3><pre>const stripe = require(&quot;stripe&quot;)(&quot;sk_live_...&quot;);</pre><h3>Good</h3><pre>const stripe = require(&quot;stripe&quot;)(process.env.STRIPE_SECRET_KEY);</pre><p>But rules written in a README don’t work.<br>Tools do.</p><h3>Enforcing the Rule with ESLint (Copy-Paste Ready)</h3><p>Linting is powerful because it runs:</p><ul><li>in the editor</li><li>before commits</li><li>in CI</li></ul><p>Which means the developer gets feedback <strong>immediately</strong>, not during a post-mortem.</p><h3>.eslintrc.js</h3><pre>module.exports = {<br>  env: {<br>    node: true,<br>    es2021: true,<br>  },</pre><pre>  rules: {<br>    &quot;no-restricted-syntax&quot;: [<br>      &quot;error&quot;,</pre><pre>      // Stripe keys<br>      {<br>        selector: &quot;Literal[value=/sk_live_|sk_test_/]&quot;,<br>        message: &quot;Do not hardcode Stripe keys. Use environment variables.&quot;<br>      },</pre><pre>      // AWS access keys<br>      {<br>        selector: &quot;Literal[value=/AKIA[0-9A-Z]{16}/]&quot;,<br>        message: &quot;AWS keys must never be committed.&quot;<br>      },</pre><pre>      // Google API keys<br>      {<br>        selector: &quot;Literal[value=/AIza[0-9A-Za-z-_]{35}/]&quot;,<br>        message: &quot;Google API keys must be loaded from env.&quot;<br>      },</pre><pre>      // Webhook secrets<br>      {<br>        selector: &quot;Literal[value=/whsec_/]&quot;,<br>        message: &quot;Webhook secrets cannot be hardcoded.&quot;<br>      },</pre><pre>      // Emails / domains copied from other projects<br>      {<br>        selector: &quot;Literal[value=/@.*\\.(com|net|org)/]&quot;,<br>        message: &quot;Hardcoded email/domain detected. Use env config.&quot;<br>      }<br>    ]<br>  }<br>};</pre><p>Now the behavior changes automatically:</p><ul><li>Paste a key → editor error</li><li>Try to commit → build fails</li><li>Try to merge → blocked</li></ul><p>No discussion required.</p><h3>Rule #2: Developers Don’t Decide Configuration</h3><p>Another common leak happens like this:</p><p>Someone copies email logic from another project:</p><pre>from: &quot;support@oldclient.com&quot;</pre><p>This isn’t a secret leak — it’s a <strong>client isolation failure</strong>.</p><p>The fix is structural.</p><h3>Centralize Configuration (The “Config Contract”)</h3><p>Allow environment variables in <strong>one file only</strong>.</p><p>Everywhere else consumes config — it never defines it.</p><h3>config/index.js</h3><pre>function required(name) {<br>  if (!process.env[name]) {<br>    throw new Error(`Missing environment variable: ${name}`);<br>  }<br>  return process.env[name];<br>}</pre><pre>module.exports = {<br>  appName: required(&quot;APP_NAME&quot;),<br>  mailFrom: required(&quot;MAIL_FROM&quot;),<br>  stripeKey: required(&quot;STRIPE_SECRET_KEY&quot;),<br>  awsBucket: required(&quot;AWS_BUCKET&quot;),<br>};</pre><p>Usage:</p><pre>const config = require(&quot;./config&quot;);</pre><pre>sendMail({<br>  from: config.mailFrom,<br>});</pre><p>What this does:</p><ul><li>Copy-pasting code no longer copies client data</li><li>Wrong config crashes at startup</li><li>Every environment is explicit</li></ul><p>This single pattern eliminates an entire class of mistakes.</p><h3>Rule #3: Stop Secrets Before They Reach Git</h3><p>Even with linting, someone will try to commit something unsafe.</p><p>That’s why teams use <strong>pre-commit hooks</strong>.</p><h3>Husky + Secret Scanning (Step by Step)</h3><h3>Install Husky</h3><pre>npm install --save-dev husky<br>npx husky install</pre><p>Add to package.json:</p><pre>{<br>  &quot;scripts&quot;: {<br>    &quot;prepare&quot;: &quot;husky install&quot;<br>  }<br>}</pre><h3>Install a Secret Scanner</h3><pre>npm install --save-dev detect-secrets</pre><h3>Add Pre-Commit Hook</h3><pre>npx husky add .husky/pre-commit &quot;npm run security-check&quot;</pre><h3>Add Script</h3><pre>{<br>  &quot;scripts&quot;: {<br>    &quot;security-check&quot;: &quot;eslint . &amp;&amp; detect-secrets scan .&quot;<br>  }<br>}</pre><p>Now the flow is brutal (in a good way):</p><ul><li>git commit</li><li>Scanner finds a key</li><li>Commit fails</li><li>Developer must fix it</li></ul><p>There is no “I forgot”.</p><h3>CI Rechecks Everything (Because Humans Bypass Local Rules)</h3><p>Local checks are great.<br>CI is final authority.</p><p>Example (GitHub Actions):</p><pre>name: Security Gate</pre><pre>on: [pull_request]</pre><pre>jobs:<br>  scan:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v4<br>      - run: npm install<br>      - run: npx eslint .<br>      - run: npx detect-secrets scan .</pre><p>If this fails:</p><ul><li>PR cannot be merged</li><li>No manual override</li><li>Policy enforced consistently</li></ul><h3>The Mindset Shift That Actually Works</h3><p>Teams that succeed don’t say:</p><blockquote><em>“Developers should remember not to do this.”</em></blockquote><p>They say:</p><blockquote><em>“The system should make this impossible.”</em></blockquote><p>That’s the difference.</p><h3>Final Takeaway</h3><p>If your safety depends on:</p><ul><li>memory</li><li>warnings</li><li>trust</li></ul><p>…it will fail.</p><p>If your safety depends on:</p><ul><li>lint rules</li><li>commit hooks</li><li>CI gates</li><li>startup validation</li></ul><p>…it scales.</p><p>And once this is in place, something interesting happens:<br>Developers stop worrying about secrets entirely — because the system has their back.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b38c2e18e39c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ultimate Guide to Securing Your Ubuntu Servers: Cloud Firewall, UFW, and Internal Network Hardening]]></title>
            <link>https://blog.devops.dev/ultimate-guide-to-securing-your-ubuntu-servers-cloud-firewall-ufw-and-internal-network-hardening-cf819f15cb48?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf819f15cb48</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ubuntu-20-04]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[server-security]]></category>
            <category><![CDATA[firewall]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Tue, 03 Feb 2026 05:50:27 GMT</pubDate>
            <atom:updated>2026-02-06T11:22:42.654Z</atom:updated>
            <content:encoded><![CDATA[<p>Securing your server is no longer optional — it’s critical, especially when hosting Node.js, React.js, Next.js, or PHP applications in production. In this guide, we’ll walk you through <strong>seven key security layers</strong>, combining <strong>cloud-level firewalls, OS-level firewalls, port restrictions, IP whitelisting, outbound traffic control, and private networking</strong> to build a robust defense-in-depth architecture.</p><h3>1. Cloud Firewall — The First Line of Defense</h3><p>Before traffic even reaches your server, a <strong>cloud firewall</strong> filters it. Think of it as the first checkpoint where only legitimate traffic is allowed.</p><h3>DigitalOcean Firewall</h3><ul><li>Navigate: <strong>Dashboard → Networking → Firewalls → Create</strong></li><li>Configure inbound rules:</li><li>ServicePortSourceSSH22Your public IP (/32)HTTP800.0.0.0/0HTTPS4430.0.0.0/0</li><li>Outbound rules typically allow all TCP, UDP, ICMP (needed for updates, DNS, API calls)</li><li>Attach the firewall to your droplets</li></ul><h3>AWS Security Groups</h3><ul><li>EC2 → Security Groups → Create / Attach</li><li>Inbound rules same as above</li><li>Outbound rules default to allow all</li><li>Security Groups are <strong>stateful</strong>, meaning response traffic is automatically allowed</li></ul><p><strong>Tip:</strong> Never open SSH (22) to the world (0.0.0.0/0), and avoid exposing development ports like 3000, 8000, or database ports.</p><h3>2. UFW / iptables — OS-Level Firewall</h3><p>Even if cloud firewalls fail, your server should protect itself. On Ubuntu, <strong>UFW (Uncomplicated Firewall)</strong> acts as a frontend to iptables, making OS-level firewall management simple and effective.</p><h3>Basic UFW Setup</h3><pre>sudo ufw default deny incoming<br>sudo ufw default allow outgoing<br>sudo ufw allow 22/tcp    # SSH<br>sudo ufw allow 80/tcp    # HTTP<br>sudo ufw allow 443/tcp   # HTTPS<br>sudo ufw allow 587/tcp   # SMTP Submission (if email server)<br>sudo ufw enable<br>sudo ufw status verbose</pre><p>This ensures only essential inbound traffic is allowed while outbound traffic remains open for legitimate connections.</p><h3>3. Allow Only Required Ports</h3><p>To minimize attack surfaces, only open the ports your server needs:</p><ul><li><strong>Essential ports:</strong> 22 (SSH), 80 (HTTP), 443 (HTTPS), 25/465/587 (SMTP for email), 53 (DNS), 123 (NTP)</li><li><strong>Do not open:</strong> 3000, 8000, 9000, 3306 (MySQL), 27017 (MongoDB), 6379 (Redis), 5432 (PostgreSQL)</li></ul><p><strong>Rule of thumb:</strong> If a service isn’t directly accessed by clients, keep its port closed.</p><h3>4. IP Whitelisting for Admin Panels</h3><p>Protect admin dashboards (/admin, /dashboard, /phpmyadmin) by <strong>allowing only trusted IPs</strong>:</p><h3>Nginx Example</h3><pre>location /admin {<br>    allow 103.xxx.xxx.xxx;<br>    deny all;<br>}</pre><h3>Apache Example</h3><pre>&lt;Directory &quot;/var/www/html/admin&quot;&gt;<br>    Require ip 103.xxx.xxx.xxx<br>&lt;/Directory&gt;</pre><p>This prevents bots and attackers from even reaching the login page.</p><h3>5. Extra Hardening — Basic Auth (Double Lock)</h3><p>Adding <strong>HTTP Basic Authentication</strong> at the server level creates a <strong>double lock</strong>:</p><ol><li>Basic Auth popup at the browser level</li><li>Application login credentials</li></ol><h3>Implementation</h3><ol><li>Install htpasswd tool:</li></ol><pre>sudo apt install apache2-utils</pre><p>2. Create credentials:</p><pre>sudo htpasswd -c /etc/nginx/.htpasswd adminuser</pre><p>3. Configure Nginx:</p><pre>location /admin {<br>    auth_basic &quot;Restricted Admin Area&quot;;<br>    auth_basic_user_file /etc/nginx/.htpasswd;</pre><pre>    allow 103.xxx.xxx.xxx;<br>    deny all;<br>}</pre><p>4. Reload Nginx:</p><pre>sudo nginx -t<br>sudo systemctl reload nginx</pre><p><strong>Result:</strong> Browser prompts for username and password before even loading the admin panel. Combined with IP whitelisting, it blocks almost all automated attacks.</p><h3>6. Block Unused Outbound Traffic</h3><p>Outbound traffic control prevents <strong>compromised services from calling random servers</strong>.</p><h3>UFW Outbound Restriction</h3><pre>sudo ufw default deny outgoing<br>sudo ufw allow out 80/tcp    # HTTP<br>sudo ufw allow out 443/tcp   # HTTPS<br>sudo ufw allow out 53/udp    # DNS<br>sudo ufw allow out 53/tcp<br>sudo ufw allow out 123/udp   # NTP<br>sudo ufw allow out 25/tcp    # SMTP<br>sudo ufw allow out 465/tcp   # SMTPS<br>sudo ufw allow out 587/tcp   # SMTP Submission</pre><p>This ensures that only essential traffic is allowed, preventing malware or compromised apps from communicating with external attackers.</p><h3>7. Separate Internal Services via Private Network</h3><p>Your <strong>database and internal services should never be publicly exposed</strong>.</p><h3>Implementation</h3><ul><li><strong>DigitalOcean:</strong> Use VPC, app connects via DB’s private IP</li><li><strong>AWS:</strong> Place DB in a private subnet; app EC2 in public subnet. Security Group allows DB access only from the app server’s SG</li></ul><p><strong>Benefits:</strong></p><ul><li>Brute-force attacks blocked</li><li>Database invisible to the Internet</li><li>Strong network-level isolation</li></ul><h3>Defense in Depth Recap</h3><ol><li>Cloud Firewall / Security Group → First line of defense</li><li>UFW / iptables → OS-level firewall</li><li>Only required ports → Reduce attack surface</li><li>IP whitelist + Basic Auth → Protect admin panels</li><li>Outbound restrictions → Contain malware</li><li>Private network for internal services → DB and internal services never exposed</li></ol><p>These layers work together to ensure your server is secure from the Internet and internal misconfigurations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf819f15cb48" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/ultimate-guide-to-securing-your-ubuntu-servers-cloud-firewall-ufw-and-internal-network-hardening-cf819f15cb48">Ultimate Guide to Securing Your Ubuntu Servers: Cloud Firewall, UFW, and Internal Network Hardening</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Essential Ubuntu Server Security Practices for Web Apps]]></title>
            <link>https://medium.com/@muneebislam/7-essential-ubuntu-server-security-practices-for-web-apps-9be5b2e618c1?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/9be5b2e618c1</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[web-app-security]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ssh]]></category>
            <category><![CDATA[server-security]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Mon, 02 Feb 2026 07:54:44 GMT</pubDate>
            <atom:updated>2026-02-02T07:54:44.687Z</atom:updated>
            <content:encoded><![CDATA[<p>Running production web apps (Node.js, Next.js, React, PHP) on Ubuntu servers comes with responsibility. Keeping your server secure is critical to prevent breaches, downtime, and data loss. In this blog, we’ll go through <strong>7 essential server hardening practices</strong>, explaining why each is important, and how to implement them step by step.</p><h3>1. Update Your OS Regularly</h3><p><strong>Task:</strong> Keep Ubuntu and all installed packages updated.</p><p><strong>Why it matters:</strong></p><ul><li>Patches security vulnerabilities in the OS and system libraries.</li><li>Protects apps like Nginx, Apache, Node.js, and PHP indirectly.</li><li>Improves stability and reliability.</li><li>Ensures compliance with audits or client requirements.</li></ul><p><strong>How to do it:</strong></p><pre>sudo apt update<br>sudo apt upgrade -y<br>sudo apt full-upgrade -y<br>sudo reboot   # if kernel updates were applied</pre><p><strong>Tip:</strong> Enable automatic security updates for continuous protection:</p><pre>sudo apt install unattended-upgrades<br>sudo dpkg-reconfigure unattended-upgrades</pre><blockquote><em>✅ One-line takeaway: Keep your OS up-to-date to patch known vulnerabilities and protect your server.</em></blockquote><h3>2. Disable Root Login</h3><p><strong>Task:</strong> Prevent direct root SSH login.</p><p><strong>Why it matters:</strong></p><ul><li>Reduces brute-force attacks (bots always try root).</li><li>Limits damage from accidental or malicious actions.</li><li>Improves auditing: each command is tied to a specific user.</li></ul><p><strong>How to do it:</strong></p><pre>sudo nano /etc/ssh/sshd_config<br># set the line:<br>PermitRootLogin no<br>sudo systemctl restart ssh</pre><p><strong>Tip:</strong> Always create a normal user with sudo access before disabling root login.</p><blockquote><em>✅ Takeaway: Disabling root login improves accountability and blocks direct attacks.</em></blockquote><h3>3. Use SSH Key-Based Authentication Only</h3><p><strong>Task:</strong> Allow SSH login only via private/public key pairs.</p><p><strong>Why it matters:</strong></p><ul><li>Passwords can be brute-forced; keys are much stronger.</li><li>Each user has their own key → easier to revoke or rotate.</li><li>Works with disabled root login and improves overall security.</li></ul><p><strong>How to do it:</strong></p><pre>ssh-keygen -t ed25519 -C &quot;your-email&quot;<br>ssh-copy-id user@server-ip<br># test login:<br>ssh user@server-ip<br># then disable password login<br>sudo nano /etc/ssh/sshd_config<br># set the lines:<br>PasswordAuthentication no<br>ChallengeResponseAuthentication no<br>PubkeyAuthentication yes<br>sudo systemctl restart ssh</pre><blockquote><em>✅ Takeaway: SSH keys are unguessable and eliminate password-based logins.</em></blockquote><h3>4. Change the Default SSH Port</h3><p><strong>Task:</strong> Move SSH from port 22 to a custom port.</p><p><strong>Why it matters:</strong></p><ul><li>Reduces brute-force login attempts.</li><li>Reduces noise in logs and server load.</li></ul><p><strong>How to do it:</strong></p><pre>sudo nano /etc/ssh/sshd_config<br># set new port<br>Port 2222<br>sudo ufw allow 2222/tcp<br>sudo systemctl restart ssh<br># optional: remove old port<br>sudo ufw delete allow 22/tcp</pre><blockquote><em>⚠️ Note: This is </em><strong><em>security by obscurity</em></strong><em> — it reduces attacks but doesn’t replace key-based auth.</em></blockquote><h3>5. Enable Fail2Ban</h3><p><strong>Task:</strong> Automatically block IPs after repeated failed logins.</p><p><strong>Why it matters:</strong></p><ul><li>Stops brute-force attacks on SSH and other services.</li><li>Reduces server load and log noise.</li><li>Works seamlessly with key-based auth and disabled root login.</li></ul><p><strong>How to do it:</strong></p><pre>sudo apt install fail2ban -y<br>sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local<br>sudo nano /etc/fail2ban/jail.local<br># enable SSH jail:<br>[sshd]<br>enabled = true<br>port = 22<br>maxretry = 5<br>bantime = 3600<br>sudo systemctl restart fail2ban<br>sudo fail2ban-client status sshd</pre><p><strong>Tip:</strong> Whitelist trusted IPs and update the port if you changed SSH from 22.</p><blockquote><em>✅ Takeaway: Fail2Ban blocks repeated login attempts automatically, strengthening security.</em></blockquote><h3>6. Limit Sudo Users</h3><p><strong>Task:</strong> Only give sudo privileges to users who truly need it.</p><p><strong>Why it matters:</strong></p><ul><li>Reduces risk of accidental or malicious system changes.</li><li>Improves logging and accountability.</li><li>Reduces attack surface if a non-admin account is compromised.</li></ul><p><strong>How to do it:</strong></p><pre># create regular users<br>sudo adduser username<br># give sudo to only trusted users<br>sudo usermod -aG sudo deploy<br>sudo usermod -aG sudo admin<br># verify<br>sudo -l</pre><p><strong>Optional:</strong> Restrict sudo to specific commands using /etc/sudoers with visudo.</p><blockquote><em>✅ Takeaway: Limit sudo access to reduce risk and improve accountability.</em></blockquote><h3>7. Separate Users per Service</h3><p><strong>Task:</strong> Run each service under its own OS user (e.g., Node, PHP, MailCub).</p><p><strong>Why it matters:</strong></p><ul><li>Isolates services — if one is compromised, others remain safe.</li><li>Prevents accidental file overwrites or deletion.</li><li>Makes logs easier to audit.</li></ul><p><strong>How to do it:</strong></p><pre>sudo adduser nodeuser<br>sudo adduser phpuser<br>sudo adduser mailcub</pre><pre>sudo mkdir -p /var/www/nodeapp<br>sudo chown -R nodeuser:nodeuser /var/www/nodeapp</pre><pre>sudo mkdir -p /var/www/phpapp<br>sudo chown -R phpuser:phpuser /var/www/phpapp</pre><pre>sudo mkdir -p /var/mailcub<br>sudo chown -R mailcub:mailcub /var/mailcub</pre><p><strong>Tip:</strong> Disable SSH login for these users if they don’t need it:</p><pre>sudo usermod -s /usr/sbin/nologin nodeuser<br>sudo usermod -s /usr/sbin/nologin phpuser</pre><blockquote><em>✅ Takeaway: Service-specific users isolate services, improving security and file management.</em></blockquote><h3>Conclusion</h3><p>By following these <strong>7 essential Ubuntu server hardening practices</strong>, you can dramatically reduce security risks for your web applications:</p><ol><li>Regular OS updates</li><li>Disable root login</li><li>Use SSH keys only</li><li>Change SSH port</li><li>Enable Fail2Ban</li><li>Limit sudo users</li><li>Separate users per service</li></ol><blockquote><em>🔐 Security is not a single step — it’s a combination of </em><strong><em>OS hardening, user management, and monitoring</em></strong><em>. Implementing these practices will make your Ubuntu server much safer while keeping your web apps running smoothly.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9be5b2e618c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built Mailcub After Seeing the Same Email Problems Again and Again]]></title>
            <link>https://medium.com/@muneebislam/i-built-mailcub-after-seeing-the-same-email-problems-again-and-again-90281a118ee4?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/90281a118ee4</guid>
            <category><![CDATA[business-email-list]]></category>
            <category><![CDATA[email-hosting]]></category>
            <category><![CDATA[email-deliverability]]></category>
            <category><![CDATA[saas-founder]]></category>
            <category><![CDATA[startup-journey]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Thu, 29 Jan 2026 10:05:16 GMT</pubDate>
            <atom:updated>2026-01-29T10:05:16.781Z</atom:updated>
            <content:encoded><![CDATA[<p>Email is supposed to be simple.</p><p>As a developer working with startups and businesses, I’ve seen how important email is — onboarding users, sending business proposals, marketing campaigns, meeting invitations.</p><p>Yet again and again, clients came back with the same concerns.</p><ul><li>“We sent the marketing email, but no one replied.”</li><li>“Our business invitation never reached inboxes.”</li><li>“We followed up multiple times… still no response.”</li><li>“Are emails even going out?”</li></ul><p>That raised an uncomfortable question:</p><p><strong>Is the problem really the message — or is email delivery broken?</strong></p><h3>When Businesses Start Losing Opportunities</h3><p>One client shared something that completely changed how I looked at email:</p><blockquote><em>“We thought companies were ignoring us. Later we found out they never received our emails.”</em></blockquote><p>That hit hard.</p><p>Not because of bad copy.<br> Not because of timing.<br> But because emails never landed in inboxes.</p><p>Businesses were losing opportunities silently.</p><h3>Clients Wanted Answers — Not Guesswork</h3><p>Many clients asked very reasonable questions:</p><ul><li>Did the email actually send?</li><li>Was it delivered or blocked?</li><li>Did it bounce?</li><li>Can we see logs?</li></ul><p>But most email services:</p><ul><li>Hide logs behind paid plans</li><li>Charge extra for basic visibility</li><li>Offer limited or inactive support</li><li>Give unclear delivery explanations</li></ul><p><strong>Why should transparency be a premium feature?</strong></p><h3>Sandbox Limits, Weak Support, and Confusion</h3><p>Another common issue was sandbox restrictions.</p><p>Even after verification, sending limits were unclear.<br> Moving out of sandbox felt slow and confusing.</p><p>Support replies were often delayed or generic.</p><p>When something went wrong, clients were left guessing.</p><p>That’s when I noticed a bigger gap.</p><h3>One Service for Transactional, Another for Email Hosting?</h3><p>Most platforms focus on <strong>only one thing</strong>:</p><ul><li>Either transactional email</li><li>Or email hosting</li></ul><p>But businesses don’t operate in silos.</p><p>Why should:</p><ul><li>Business emails use one provider</li><li>Transactional emails use another</li><li>DNS, reputation, and security be split?</li></ul><p>This fragmentation also created <strong>security risks</strong>.</p><p>Multiple services sending from the same domain meant:</p><ul><li>Harder domain control</li><li>Higher risk of misuse</li><li>Inconsistent reputation</li></ul><h3>The Idea That Became Mailcub</h3><p><a href="https://mailcub.com/">Mailcub</a> didn’t start as a startup idea.</p><p>It started with a simple question:</p><p><strong>What if email hosting and email delivery lived in one trusted system?</strong></p><p>One domain.<br> One reputation.<br> Clear logs.<br> Strong authentication.<br> Real support.</p><p>Not just transactional email.<br> Not just inbox hosting.</p><p><strong>Both — together.</strong></p><h3>Why Mailcub Is Built Differently</h3><p>Mailcub was designed around real client problems:</p><ul><li><a href="https://mailcub.com/products/email-hosting">Email hosting</a> +<a href="https://mailcub.com/products/transactional-email"> transactional delivery</a> in one platform</li><li>Clear <a href="https://mailcub.com/documentation-page/email-analytics--delivery-logs">email logs</a> without hidden costs</li><li>Easier exit from sandbox</li><li>Strong domain-level security</li><li>Fewer third-party dependencies</li></ul><p>One big advantage?<br> Your domain reputation isn’t split across multiple providers.</p><p>That alone improves deliverability.</p><h3>Final Thought</h3><p>If you’ve ever wondered:</p><ul><li>“Did my email actually go?”</li><li>“Why didn’t anyone respond?”</li><li>“Is email unreliable — or is my setup wrong?”</li></ul><p>You’re not alone.</p><p><a href="https://mailcub.com/">Mailcub</a> exists because too many businesses lose trust, time, and deals without knowing email delivery was the real issue.</p><p>Sometimes the best products don’t come from ideas — <br> they come from listening carefully to repeated problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90281a118ee4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your Emails Keep Going to Spam (and How to Fix It in Minutes)]]></title>
            <link>https://medium.com/@muneebislam/why-your-emails-keep-going-to-spam-and-how-to-fix-it-in-minutes-830db1eea912?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/830db1eea912</guid>
            <category><![CDATA[email-hosting-guide]]></category>
            <category><![CDATA[avoid-spam-folder]]></category>
            <category><![CDATA[spf-dkim-dmarc]]></category>
            <category><![CDATA[email-deliverability]]></category>
            <category><![CDATA[startup-email-tips]]></category>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Tue, 27 Jan 2026 12:38:53 GMT</pubDate>
            <atom:updated>2026-01-27T12:38:53.094Z</atom:updated>
            <content:encoded><![CDATA[<p>A simple guide to SPF, DKIM, and DMARC that actually works for small businesses and startups.</p><h3>Introduction</h3><p>Ever sent an important email and noticed it landed in the spam folder? Frustrating, right? You’re not alone. Many startups, small businesses, and even seasoned marketers struggle with email deliverability.</p><p>The good news: fixing this isn’t rocket science. Most issues boil down to three things: <strong>SPF, DKIM, and DMARC</strong>. If you get these right, your emails are far more likely to land in your recipient’s inbox.</p><h3>1. What Causes Emails to Go to Spam</h3><p>Before we fix it, let’s understand why it happens:</p><ul><li><strong>No proper authentication:</strong> Email servers can’t verify you are who you say you are.</li><li><strong>Poor sending reputation:</strong> Sending from free services (like Gmail or Yahoo) for business emails hurts trust.</li><li><strong>High spam complaints:</strong> If your recipients mark emails as spam, it affects future deliverability.</li><li><strong>Missing DNS records:</strong> SPF, DKIM, and DMARC aren’t set up properly.</li></ul><h3>2. SPF — The Sender Policy Framework</h3><p><strong>What it does:</strong> SPF tells email servers which servers are allowed to send emails for your domain.</p><p><strong>How to fix it:</strong></p><ol><li>Log in to your domain registrar (e.g., GoDaddy, Namecheap).</li><li>Add a TXT record with the SPF value provided by your email service.</li></ol><p>✅ <strong>Tip:</strong> Only allow trusted servers to send emails on your behalf.</p><h3>3. DKIM — DomainKeys Identified Mail</h3><p><strong>What it does:</strong> DKIM adds a digital signature to your emails so recipients know they haven’t been tampered with.</p><p><strong>How to fix it:</strong></p><ol><li>Generate a DKIM key in your email platform.</li><li>Add it as a TXT record in your DNS.</li></ol><p>This tells receiving servers: “Yes, this email really came from this domain.”</p><h3>4. DMARC — Domain-based Message Authentication, Reporting, and Conformance</h3><p><strong>What it does:</strong> DMARC lets you tell email servers what to do if SPF or DKIM fails.</p><p><strong>How to fix it:</strong></p><ol><li>Add a TXT record like this:</li></ol><pre>v=DMARC1; p=quarantine; rua=mailto:reports@yourdomain.com</pre><p>2. Adjust p=quarantine to p=reject once you’re confident.</p><p>DMARC also sends reports, so you know who’s sending emails from your domain.</p><h3>5. Bonus Tips</h3><ul><li>Use a <strong>dedicated sending domain</strong> for marketing or transactional emails.</li><li>Avoid buying email lists — high bounce rates = spam.</li><li>Monitor your <strong>sender reputation</strong> using tools like MXToolbox.</li></ul><h3>Conclusion</h3><p>Fixing SPF, DKIM, and DMARC is the single most effective step to improve deliverability. Once set up correctly, your emails will land in inboxes instead of spam folders.</p><blockquote><em>If you want a </em><strong><em>simpler way to manage email hosting and delivery</em></strong><em> without manually setting DNS records, check out </em><a href="https://mailcub.com/"><em>Mailcub</em></a><em> — it handles SPF, DKIM, and DMARC for you automatically.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=830db1eea912" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ubuntu Server Setup for Node.js]]></title>
            <link>https://medium.com/@muneebislam/ubuntu-server-setup-for-node-js-7a4b9beee1be?source=rss-f3583e9b4020------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a4b9beee1be</guid>
            <dc:creator><![CDATA[Muneeb Islam]]></dc:creator>
            <pubDate>Wed, 06 Nov 2024 09:45:29 GMT</pubDate>
            <atom:updated>2024-11-06T09:55:14.067Z</atom:updated>
            <content:encoded><![CDATA[<p>You&#39;ve deployed an Ubuntu server on AWS (or another cloud) and want to set up your Node.js app on it.</p><p><strong>Node.js</strong><br>You are installing Node.js with NVM (Node Version Manager). NVM lets you manage multiple versions of Node.js on the same machine, each in its environment, so you can switch versions without impacting the system.</p><p>Step 1: Download and Install NVM</p><pre>curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash</pre><p>Step 2: Load NVM (Add NVM to your environment)</p><pre>export NVM_DIR=&quot;$HOME/.nvm&quot;<br>[ -s &quot;$NVM_DIR/nvm.sh&quot; ] &amp;&amp; \. &quot;$NVM_DIR/nvm.sh</pre><blockquote>You can verify installation<br>command -v nvm</blockquote><p>Step 3: Install Node.js</p><p>To install the latest Node.js version</p><pre>nvm install node</pre><p>Or install a specific version</p><pre>nvm install v8.11.2</pre><blockquote>Verify Node.js Installation<br>node — version</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a4b9beee1be" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>