<?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"><channel><title><![CDATA[TLProject Lab]]></title><description><![CDATA[TLProject Lab]]></description><link>https://tlprojectlab.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b0bbd567e6afaba909ccee4/d55568e2-5421-45db-a1b1-79147b474589.png</url><title>TLProject Lab</title><link>https://tlprojectlab.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:00:33 GMT</lastBuildDate><atom:link href="https://tlprojectlab.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[We Built a 20-Point Deterministic Scanner for Google Merchant Center Misrepresentation Suspensions (Zero AI Guessing)]]></title><description><![CDATA[How a pure-HTTP Cloudflare Worker audits Storebot-Google crawl rules, 4 mandatory shopping policies, and Product JSON-LD vs. live Shopify/WooCommerce catal]]></description><link>https://tlprojectlab.hashnode.dev/we-built-a-20-point-deterministic-scanner-for-google-merchant-center-misrepresentation-suspensions-zero-ai-guessing</link><guid isPermaLink="true">https://tlprojectlab.hashnode.dev/we-built-a-20-point-deterministic-scanner-for-google-merchant-center-misrepresentation-suspensions-zero-ai-guessing</guid><category><![CDATA[SEO for Developers]]></category><dc:creator><![CDATA[kinonotabi]]></dc:creator><pubDate>Tue, 01 Dec 2026 12:05:12 GMT</pubDate><content:encoded><![CDATA[<p>When Google Merchant Center (GMC) suspends an e-commerce store for <strong>Misrepresentation</strong>, it rarely tells you which exact page, header, or structured-data field failed. Worse, Google limits how many review appeals you can submit before imposing multi-week cooldowns.</p>
<p>Many merchants and agencies try pasting their homepage URL into an LLM and asking what is wrong. That approach fails for two reasons: LLMs do not inspect live <code>robots.txt</code> precedence for <code>Storebot-Google</code>, and they cannot cross-verify server-rendered <code>Product</code> JSON-LD against a live Shopify or WooCommerce catalog API. You get confident prose while real P0 blockers remain untouched.</p>
<p>To make pre-appeal diagnostics fast and reproducible, we built a <strong>20-point deterministic GMC compliance engine</strong> (<code>src/gmc-audit.js</code>) in pure ESM JavaScript on Cloudflare Workers. It uses zero headless browser instances, zero LLM guessing, and zero PII retention—finishing full storefront audits in roughly <strong>1 to 3 seconds</strong>.</p>
<h2>The 4-Pillar, 100-Point Deterministic Scoring Model</h2>
<p>Every audit evaluates exactly <strong>20 weighted checks</strong> distributed across <strong>4 pillars</strong> totaling <strong>100 points</strong>: <strong>12</strong> <code>P0</code> <strong>checks (68 points)</strong>, <strong>4</strong> <code>P1</code> <strong>checks (19 points)</strong>, and <strong>4</strong> <code>P2</code> <strong>checks (13 points)</strong>.</p>
<table>
<thead>
<tr>
<th align="left">Pillar</th>
<th align="left">Weight</th>
<th align="left">Checks</th>
<th align="left">What the Engine Verifies Deterministically</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><strong>Identity &amp; Contact Transparency</strong> (<code>identity_transparency</code>)</td>
<td align="left">25 pts</td>
<td align="left">5</td>
<td align="left">HTTPS HTTP 200 (6, P0), zero placeholder/password-lock copy (5, P0), &gt;= 2 of 4 public contact channels (7, P0), physical street/<code>PostalAddress</code> signal (4, P1), custom brand domain vs. staging subdomains (3, P2)</td>
</tr>
<tr>
<td align="left"><strong>Mandatory Shopping Policies</strong> (<code>mandatory_policies</code>)</td>
<td align="left">30 pts</td>
<td align="left">5</td>
<td align="left">Refund Policy HTTP 200 &gt;= 60 words (7, P0), explicit 1–365 day return window &amp; payout method (6, P0), Shipping Policy &gt;= 40 words with handling/transit timelines or rates (6, P0), Privacy &amp; Terms &gt;= 60 words each (6, P1), 4/4 homepage footer link visibility (5, P1)</td>
</tr>
<tr>
<td align="left"><strong>Feed &amp;</strong> <a href="http://Schema.org"><strong>Schema.org</strong></a> <strong>Consistency</strong> (<code>feed_schema_consistency</code>)</td>
<td align="left">25 pts</td>
<td align="left">5</td>
<td align="left"><code>Product</code> + <code>Offer</code> JSON-LD present (6, P0), valid positive <code>Offer.price</code> &amp; 3-letter ISO 4217 <code>priceCurrency</code> (5, P0), JSON-LD vs. live catalog price/currency match (6, P0), <code>Offer.availability</code> vs. live stock match (4, P1), Brand/SKU/GTIN/MPN signals (4, P2)</td>
</tr>
<tr>
<td align="left"><strong>Crawl &amp; Checkout Hygiene</strong> (<code>crawl_and_checkout_hygiene</code>)</td>
<td align="left">20 pts</td>
<td align="left">5</td>
<td align="left"><code>Googlebot</code> &amp; <code>Googlebot-Image</code> + zero <code>noindex</code> (5, P0), <code>Storebot-Google</code> access including <code>/cart</code> &amp; <code>/checkout</code> (5, P0), zero miracle cure / get-rich / fake-scarcity patterns (4, P0), zero broken policy links or <code>#</code> dead anchors (3, P2), 9 recognized payment gateway signals + HSTS vs. wire/crypto-only restrictions (3, P2)</td>
</tr>
</tbody></table>
<p>Scoring is transparent: <code>PASS = 1.0x</code>, <code>WARN = 0.5x</code>, and <code>FAIL = 0.0x</code> of each check's weight, mapping to grades <code>A</code> (<code>&gt;= 90</code>), <code>B</code> (<code>&gt;= 80</code>), <code>C</code> (<code>&gt;= 70</code>), <code>D</code> (<code>&gt;= 55</code>), and <code>F</code> (<code>&lt; 55</code>).</p>
<p>Because a single critical violation can sink an appeal even on an 85-point storefront, <code>computeSuspensionRisk()</code> classifies risk independently of raw averages:</p>
<pre><code class="language-js">if (score &lt; 50 || p0Failures &gt;= 3) return 'CRITICAL';
if (score &lt; 72 || p0Failures &gt;= 1 || totalFailures &gt;= 4) return 'HIGH';
if (score &lt; 88 || totalFailures &gt;= 1 || hasP0Warn) return 'MODERATE';
return 'LOW';
</code></pre>
<p>Every <code>FAIL</code> and <code>WARN</code> item is automatically sorted into a <code>prioritizedFixes</code> appeal checklist ordered by severity (<code>P0</code> -&gt; <code>P3</code>) and failure state.</p>
<h2>Catching the #1 Silent Trigger: JSON-LD vs. Live Catalog Parity</h2>
<p>Broken theme templates and client-side IP currency switchers are among the most common technical causes of GMC disapprovals. A store submits USD prices in its Merchant Center feed, a JavaScript geo-switcher mutates visible DOM prices after load, or a Liquid/PHP template hardcodes <code>https://schema.org/InStock</code> even when every variant is sold out.</p>
<p>Our scanner tests this directly without requiring private API keys:</p>
<ol>
<li><strong>Live Public Catalog Sampling</strong>: For Shopify stores, the engine probes <code>/products.json?limit=10</code> (falling back to <code>/collections/all/products.json?limit=10</code>). For WooCommerce stores, it queries the public Store API at <code>/wp-json/wc/store/v1/products?per_page=10</code> and normalizes integer prices via <code>10 ** currency_minor_unit</code>. It prioritizes an in-stock item with a positive price.</li>
<li><strong>Deep JSON-LD Walking</strong>: The engine fetches that exact live product detail page and recursively traverses every <code>&lt;script type="application/ld+json"&gt;</code> block—handling <code>@graph</code>, <code>Product</code>, <code>ProductGroup</code>, <code>hasVariant</code>, <code>Offer</code>, <code>AggregateOffer</code>, and <code>priceSpecification</code>.</li>
<li><strong>Strict Price, Currency &amp; Stock Cross-Check</strong>: It verifies that at least one JSON-LD <code>Offer.price</code> matches a live catalog variant price within a <code>0.05</code> decimal tolerance, that <code>priceCurrency</code> matches the storefront's ISO 4217 code, and that normalized <code>Offer.availability</code> (<code>InStock</code>/<code>PreOrder</code>/<code>BackOrder</code> vs. <code>OutOfStock</code>/<code>SoldOut</code>/<code>Discontinued</code>) matches live <code>variant.available</code> or <code>is_in_stock</code>.</li>
</ol>
<h2>RFC 9309 <code>Storebot-Google</code> &amp; Soft-Redirect Policy Detection</h2>
<p>Standard SEO crawlers only inspect <code>User-agent: *</code> or <code>Googlebot</code>. Google Shopping relies on two additional user agents: <code>Googlebot-Image</code> (to fetch product thumbnails under <code>/cdn/shop/products/</code> and <code>/wp-content/uploads/</code>) and <code>Storebot-Google</code> (to verify landing pages, cart totals, and checkout shipping fees).</p>
<p><code>parseGmcRobotsTxt()</code> implements RFC 9309 longest-prefix matching where a specific user-agent block overrides wildcard <code>*</code> rules. Crucially, if a storefront defines an explicit <code>User-agent: Storebot-Google</code> block that disallows <code>/cart</code> or <code>/checkout</code>, the engine immediately flags a <code>P0</code> failure on <code>gmc_robots_allows_storebot</code>.</p>
<p>For the <strong>4 mandatory shopping policies</strong> (Refund, Shipping, Privacy, Terms), the engine first extracts anchor links directly from homepage HTML so it knows whether customers can discover them in the global footer. It then probes each policy (with platform fallback slugs like <code>/policies/refund-policy</code> or <code>/refund_returns</code>) while stripping navigation chrome via <code>&lt;main&gt;</code>, <code>&lt;article&gt;</code>, or <code>.shopify-policy__body</code>. Any broken URL that silently HTTP-302 redirects back to the homepage is rejected as a soft 404 rather than counted as a valid policy.</p>
<p>On the Refund Policy specifically, <code>evaluateRefundPolicyText()</code> parses explicit return windows (<code>1–365</code> days or explicit final-sale wording) alongside refund payout terms (<code>original payment method</code>, <code>store credit</code>, <code>restocking fee</code>). On the Shipping Policy, <code>evaluateShippingPolicyText()</code> checks for explicit handling/transit day ranges or shipping rate disclosures.</p>
<h2>Zero-PII Architecture &amp; 1–3 Second Edge Concurrency</h2>
<p>Building a public compliance scanner carries two security obligations: <strong>zero personal data leakage</strong> and <strong>strict SSRF protection</strong>.</p>
<p>First, GMC requires at least <strong>2 public contact channels</strong> (email, phone, physical address, or contact page), yet returning scraped emails or phone numbers in a public JSON API creates avoidable privacy liability. Our <code>detectContactSignalsFromHtml()</code> function returns strictly four booleans—<code>hasEmailSignal</code>, <code>hasPhoneSignal</code>, <code>hasAddressSignal</code>, and <code>hasContactForm</code>. Email validation discards <code>noreply</code> addresses, 12 placeholder/noise domains (<code>example.com</code>, <code>sentry.io</code>, <code>wixpress.com</code>), and 21 static asset extensions (<code>.png</code>, <code>.jpg</code>, <code>.svg</code>, <code>.woff2</code>) so retina image filenames like <code>badge@2x.png</code> never trigger false positives. Any site-supplied text echoed in titles or product names passes through <code>redactPiiText()</code>, and <code>safeFetchPage()</code> runs <code>assertPublicHostname()</code> both before the request and after redirects to block SSRF pivots to private networks.</p>
<p>Second, because the entire scan is pure HTTP without Chromium startup overhead, it runs in three tight phases:</p>
<ol>
<li>Fetch storefront homepage (<code>1</code> request).</li>
<li>Execute <strong>7 concurrent edge fetches</strong> via <code>Promise.all</code> (<code>robots.txt</code>, live catalog feed, 4 policies, and Contact page).</li>
<li>Fetch <strong>1 live product detail page</strong> for <a href="http://Schema.org">Schema.org</a> JSON-LD cross-verification.</li>
</ol>
<p>On Cloudflare Workers, that full 20-point pipeline typically completes in <strong>1–3 seconds</strong>.</p>
<h2>Run a Scan, Wire It Into MCP, or Monitor Continuously</h2>
<p>You can test any Shopify, WooCommerce, or custom storefront right now—or plug the exact same engine into your AI developer workflow:</p>
<ul>
<li><strong>Free Live GMC Compliance Scanner</strong> (instant 20-point score, P0–P3 appeal checklist &amp; native A4 PDF print layout): <a href="https://tlprojectlab.xyz/tools/gmc-compliance-checker/">https://tlprojectlab.xyz/tools/gmc-compliance-checker/</a></li>
<li><strong>Open-Source &amp; Remote MCP Server</strong> (exposes the <code>audit_gmc_compliance</code> tool for Claude, Cursor, and Windsurf): <a href="https://github.com/AzureSkyProject/tlproject-intel-mcp">https://github.com/AzureSkyProject/tlproject-intel-mcp</a></li>
<li><strong>StorePulse Continuous Storefront Monitor</strong> (track daily Shopify &amp; WooCommerce price shifts, variant stockouts, and theme/app changes inside Google Sheets): <a href="https://tlprojectlab.xyz/storepulse/">https://tlprojectlab.xyz/storepulse/</a></li>
<li><strong>All 5 Free E-Commerce &amp; Web Intel Tools</strong>: <a href="https://tlprojectlab.xyz/tools/">https://tlprojectlab.xyz/tools/</a></li>
</ul>
<p>Before clicking <strong>Request Review</strong> in Merchant Center again, verify every P0 check deterministically so you never burn an appeal attempt on a hidden <code>robots.txt</code> line or stale JSON-LD offer price.</p>
]]></content:encoded></item><item><title><![CDATA[Why Annual SOC 2 Audits Still Miss Infrastructure EOL & CISA KEV Exposure (And How We Built a Zero-CASA Tracker)]]></title><description><![CDATA[How deterministic lifecycle normalization, patch-aware CISA KEV cross-matching, and SHA-256 evidence logs close the SOC 2 CC7.1, ISO 27001 A.8.8, and CIS v]]></description><link>https://tlprojectlab.hashnode.dev/why-annual-soc-2-audits-still-miss-infrastructure-eol-cisa-kev-exposure-and-how-we-built-a-zero-casa-tracker</link><guid isPermaLink="true">https://tlprojectlab.hashnode.dev/why-annual-soc-2-audits-still-miss-infrastructure-eol-cisa-kev-exposure-and-how-we-built-a-zero-casa-tracker</guid><dc:creator><![CDATA[kinonotabi]]></dc:creator><pubDate>Tue, 01 Dec 2026 12:04:40 GMT</pubDate><content:encoded><![CDATA[<p>Most engineering teams running SOC 2 Type II or ISO 27001 assume their compliance automation platform will warn them before production infrastructure ages out of vendor support. In practice, it rarely does.</p>
<p>Platforms like Vanta and Drata are effective at checking MDM posture on employee laptops (disk encryption, screen lock, desktop OS updates) and auditing cloud IAM or security groups. What they do not maintain out of the box is a full-stack infrastructure End-of-Life (EOL) calendar covering Linux server branches, self-managed and RDS databases, Kubernetes control planes, firewalls, hypervisors, and language runtimes.</p>
<p>As a result, annual audits repeatedly uncover the same surprise weeks before evidence freeze: a production workload has been running an unsupported branch for months without vendor security patches.</p>
<p>Consider real upstream lifecycle dates across common stacks:</p>
<ul>
<li><strong>PostgreSQL 12</strong> reached EOL on <code>2024-11-21</code>, <strong>PostgreSQL 13</strong> on <code>2025-11-13</code>, and <strong>PostgreSQL 14</strong> on <code>2026-11-12</code>.</li>
<li><strong>Ubuntu 20.04 LTS (</strong><code>focal</code><strong>)</strong> ended standard security maintenance on <code>2025-05-31</code>.</li>
<li><strong>Node.js 18 LTS</strong> reached EOL on <code>2025-04-30</code>, followed by <strong>Node.js 20 LTS</strong> on <code>2026-04-30</code>.</li>
<li><strong>Fortinet FortiOS 7.0</strong> hit EOL on <code>2025-09-30</code>, and <strong>VMware ESXi 7.0</strong> hit EOL on <code>2025-10-02</code>.</li>
<li><strong>Python 3.9</strong> ended on <code>2025-10-31</code>, <strong>PHP 8.1</strong> on <code>2025-12-31</code>, and <strong>.NET 6.0 LTS</strong> on <code>2024-11-12</code>.</li>
</ul>
<p>Annual point-in-time reviews catch these transitions far too late to schedule upgrades or document formal risk exceptions. To close that gap for vCISOs, MSPs, and platform teams, we built <strong>LifecycleBeacon</strong>—a deterministic EOL and CISA KEV tracker running as both a Zero-CASA Google Sheets™ add-on and a standalone 24/7 Cloudflare Worker web console.</p>
<h2>What Auditors Check Across SOC 2, ISO 27001, and CIS v8</h2>
<p>Unsupported infrastructure maps directly to explicit controls across the three frameworks B2B engineering teams face most often:</p>
<table>
<thead>
<tr>
<th align="left">Framework Control</th>
<th align="left">Core Technical Requirement</th>
<th align="left">Where Annual Spreadsheets Break</th>
</tr>
</thead>
<tbody><tr>
<td align="left"><strong>SOC 2 CC7.1</strong></td>
<td align="left">Detect configuration and vulnerability exposures across production components</td>
<td align="left">Stale inventories miss silent EOL dates between annual evidence pulls</td>
</tr>
<tr>
<td align="left"><strong>ISO/IEC 27001:2022 Annex A 8.8</strong></td>
<td align="left">Manage technical vulnerabilities and prioritize actively exploited threats</td>
<td align="left">Raw CVE dumps bury actively exploited CISA KEV ransomware flaws</td>
</tr>
<tr>
<td align="left"><strong>CIS Controls v8 Safeguard 2.2</strong></td>
<td align="left">Ensure authorized software is currently vendor-supported (or formally mitigated)</td>
<td align="left">Ad-hoc notes lack compensating controls, approvers, and expiry dates</td>
</tr>
</tbody></table>
<p>Auditors do not expect zero technical debt overnight. They expect continuous visibility, timely triage of actively exploited flaws, and a verifiable trail of risk exceptions when an immediate upgrade is impractical.</p>
<h2>Deterministic Normalization Across 36 Core Infrastructure Products</h2>
<p>Real CMDB exports and Google Sheets registers rarely contain clean slugs. Operators write <code>Postgres 14.9</code>, <code>Ubuntu focal</code>, <code>Win Server 2012 R2</code>, <code>FortiGate 7.0</code>, or <code>OpenJDK 1.8u432</code>.</p>
<p>We engineered our evaluation engine (<code>eol-kev.js</code>) in pure ESM using native Web Crypto and Fetch APIs (zero npm runtime dependencies) on Cloudflare Workers:</p>
<ol>
<li><strong>Authoritative 36-Product Offline Baseline</strong>: The engine embeds <strong>36 core enterprise infrastructure products</strong> across <strong>10 categories</strong>—Languages &amp; Runtimes (7), Databases (5), Operating Systems (5), Containers &amp; Cloud (5, including EKS/GKE/AKS/Kubernetes/Docker), DevOps &amp; IaC (4), Web &amp; Proxy (3), Messaging &amp; Search (3), Network &amp; Firewalls (2: FortiOS, PAN-OS), Virtualization (ESXi), and Security/Crypto (OpenSSL). Together, this baseline encodes <strong>190 release cycles</strong> and <strong>129 fuzzy aliases</strong>.</li>
<li><strong>Product-Specific Cycle Extractors</strong>: Instead of a single <code>major.minor</code> regex, the normalizer runs 9 product strategies (<code>postgres</code>, <code>windows_server</code>, <code>ubuntu</code>, <code>debian</code>, <code>java</code>, <code>openssl</code>, <code>tomcat</code>, <code>major_only</code>, <code>major_minor</code>) plus Ubuntu/Debian codename maps (<code>focal</code> -&gt; <code>20.04</code>, <code>bookworm</code> -&gt; <code>12</code>). PostgreSQL <code>9.6.24</code> resolves to cycle <code>9.6</code>, while PostgreSQL <code>13.18</code> resolves to <code>13</code>.</li>
<li><strong>Live</strong> <code>endoflife.date</code> <strong>v1 Hydration + 6-Hour KV Cache</strong>: At runtime, the Worker fetches <code>https://endoflife.date/api/v1/products/&lt;slug&gt;</code> and caches parsed schedules in Cloudflare KV for 6 hours (<code>21,600s</code>). Custom software outside the 36-product core still resolves live against <code>endoflife.date</code>, while upstream failures fall back deterministically to the built-in catalog.</li>
</ol>
<p>Every asset resolves to one of <strong>6 deterministic lifecycle states</strong>: <code>CRITICAL_EOL_KEV</code> (<code>P0</code>), <code>EOL_UNSUPPORTED</code> (<code>P1</code>), <code>SUPPORTED_KEV_REVIEW</code> (<code>P2</code>, escalated to <code>P0</code> on new ransomware KEVs), <code>APPROACHING_EOL_90D</code> (<code>P1</code>), <code>APPROACHING_EOL_180D</code> (<code>P2</code>), or <code>COMPLIANT_SUPPORTED</code> (<code>P3</code> upon remediation).</p>
<h2>Patch-Aware CISA KEV Cross-Matching Without Alert Fatigue</h2>
<p>Matching CISA Known Exploited Vulnerabilities (KEV) strictly on vendor/product names floods DevOps channels with false positives. LifecycleBeacon merges the live CISA KEV JSON feed (cached in KV for 6 hours) with <strong>19 curated high-impact infrastructure KEV baselines</strong>—<strong>12</strong> carrying CISA's <code>knownRansomwareCampaignUse: "Known"</code> flag:</p>
<ul>
<li><strong>Fortinet FortiOS</strong>: <code>CVE-2024-21762</code>, <code>CVE-2023-27997</code>, and <code>CVE-2022-40684</code> (all confirmed ransomware)</li>
<li><strong>Palo Alto PAN-OS</strong>: <code>CVE-2024-3400</code> and <code>CVE-2024-0012</code> (confirmed ransomware)</li>
<li><strong>VMware ESXi</strong>: <code>CVE-2024-37085</code> and <code>CVE-2021-21974</code> (ESXiArgs ransomware)</li>
<li><strong>Linux Kernel / PHP / Jenkins / Windows Server</strong>: <code>CVE-2024-1086</code>, <code>CVE-2024-4577</code>, <code>CVE-2024-23897</code>, and <code>CVE-2020-1472</code></li>
</ul>
<p>Each curated entry maps <code>affectedCycles</code> and <code>fixedInPatchByCycle</code>. During evaluation, <code>matchKevVulnerabilities()</code> checks whether the user supplied an explicit patch build and compares via loose semver:</p>
<pre><code class="language-js">if (fixedPatch &amp;&amp; hasExplicitPatch &amp;&amp; compareSemverLoose(inputVersion, fixedPatch) &gt;= 0) {
  continue; // Verified patched version &gt;= fixedPatch — suppress false positive
}
</code></pre>
<p>If an engineer records <code>FortiOS 7.2.10</code> where <code>CVE-2024-21762</code> was fixed in <code>7.2.7</code>, the match is suppressed. If the asset runs an unpatched build, only reports a branch (<code>FortiOS 7.0</code>), or is already past EOL, the CVE surfaces in the exposure queue sorted with <code>Known</code> ransomware threats first.</p>
<h2>Tamper-Evident SHA-256 Evidence Logs &amp; Resync-Safe Risk Exceptions</h2>
<p>Auditors evaluating exported evidence always ask the same provenance question: <em>When was this verified, and how do we know the status was not manually edited?</em></p>
<p>Every asset evaluation computes a 64-character hexadecimal SHA-256 digest via native Web Crypto (<code>crypto.subtle.digest('SHA-256', ...)</code>) over a canonical JSON payload:</p>
<pre><code class="language-js">const canonicalHashPayload = JSON.stringify({
  assetKey: canonical.assetKey,
  productSlug: canonical.productSlug,
  detectedCycle: canonical.detectedCycle,
  inputVersion: canonical.inputVersion,
  eolDate,
  supportEndDate,
  daysUntilEol,
  lifecycleStatus,
  kevCves: kevMatches.map((k) =&gt; k.cveID),
  checkedDateUtc: checkedAt.slice(0, 10),
});
const evidenceSha256 = await computeSha256Hex(canonicalHashPayload);
</code></pre>
<p>That digest appends to an immutable <strong>Audit Evidence Log</strong> alongside the UTC timestamp, upstream vendor policy URL, and source mode (<code>live_api</code>, <code>kv_cache</code>, or <code>catalog_baseline</code>).</p>
<p>Equally critical is preserving <strong>Compensating Control</strong> records across automated refreshes. In our 5-tab workbook (<code>Asset Lifecycle Register</code>, <code>CISA KEV Exposure Queue</code>, <code>Risk Exceptions &amp; Controls</code>, <code>Refresh Roadmap &amp; Alerts</code>, and <code>Audit Evidence Log</code>), every resync keys exceptions by normalized <code>assetKey</code> (<code>&lt;host&gt;::&lt;slug&gt;@&lt;cycle&gt;</code>). Operator-authored <code>Compensating Control</code>, <code>Approved By</code>, and <code>Exception Expiry</code> columns persist intact instead of being wiped out.</p>
<p>For Vanta and Drata ingestion, the Worker exports a <strong>22-column RFC-4180 CSV</strong> with spreadsheet formula-injection neutralization—guarding untrusted leading <code>=</code>, <code>+</code>, <code>-</code>, or <code>@</code> strings while keeping legitimate negative countdowns like <code>-120</code> in <code>Days Until EOL</code> untouched—alongside zero-CDN, XSS-escaped printable HTML/Markdown Compliance Packets.</p>
<h2>Why Zero-CASA Google Sheets™ + 24/7 Cloudflare Cron?</h2>
<p>Security teams rely on spreadsheets for cross-functional review, but add-ons requesting broad Google Drive permissions trigger costly annual Google CASA Tier 2/3 verification and expand blast radius. LifecycleBeacon uses strictly <strong>4 narrow, non-restricted OAuth scopes</strong> (<code>spreadsheets</code>, <code>script.container.ui</code>, <code>script.external_request</code>, and <code>script.scriptapp</code>)—with zero Google Drive file enumeration. For headless monitoring, the same Worker pipeline runs on a 6-hour Cloudflare Cron (<code>0 */6 * * *</code>) with concurrency-6 batching, isolated <code>lifecyclebeacon:</code> KV storage, and Slack, Discord, or Teams <code>P0–P3</code> webhooks.</p>
<h2>Explore the Self-Serve Software &amp; Open MIT Dataset</h2>
<ul>
<li><strong>Free Live EOL &amp; CISA KEV Checker</strong> (instant stack check + Vanta/Drata CSV export): <a href="https://tlprojectlab.xyz/lifecyclebeacon/">https://tlprojectlab.xyz/lifecyclebeacon/</a></li>
<li><strong>Top 36 Enterprise Infrastructure EOL Directory</strong> (searchable lifecycle reference): <a href="https://tlprojectlab.xyz/lifecyclebeacon/directory/">https://tlprojectlab.xyz/lifecyclebeacon/directory/</a></li>
<li><strong>Standalone 24/7 Web Monitoring Console</strong> (workspaces, Cloud Cron, printable packets): <a href="https://tlprojectlab.xyz/lifecyclebeacon/app/">https://tlprojectlab.xyz/lifecyclebeacon/app/</a></li>
<li><strong>MIT Open EOL &amp; CISA KEV Dataset on GitHub</strong>: <a href="https://github.com/AzureSkyProject/infra-eol-and-cisa-kev-directory">https://github.com/AzureSkyProject/infra-eol-and-cisa-kev-directory</a></li>
</ul>
<p>If PostgreSQL 13, Ubuntu 20.04, Node.js 20, or FortiOS 7.0 is still ticking quietly in your stack, running a deterministic lifecycle check today beats scrambling during next quarter's SOC 2 fieldwork.</p>
]]></content:encoded></item><item><title><![CDATA[We Audited 30 Cloud & SaaS Status Pages: Why Teams Forfeit $500–$10,000+ in SLA Credits Every Quarter]]></title><description><![CDATA[Live audit of 30 cloud & SaaS status pages: overlapping outage math, SHA-256 SLA proof, and a free zero-signup SLA credit calculator.]]></description><link>https://tlprojectlab.hashnode.dev/we-audited-30-cloud-saas-status-pages-why-teams-forfeit-500-10-000-in-sla-credits-every-quarter</link><guid isPermaLink="true">https://tlprojectlab.hashnode.dev/we-audited-30-cloud-saas-status-pages-why-teams-forfeit-500-10-000-in-sla-credits-every-quarter</guid><category><![CDATA[web development services]]></category><dc:creator><![CDATA[kinonotabi]]></dc:creator><pubDate>Mon, 30 Nov 2026 14:09:44 GMT</pubDate><content:encoded><![CDATA[<p>If your company spends <code>$5,000–$50,000/month</code> across cloud infrastructure, payment processors, auth providers, and CI/CD platforms, there is a high probability you left recoverable <strong>SLA Service Credits</strong> on the table last quarter.</p>
<p>Not because vendors hide their outages—most publish machine-readable incident histories on public status pages—but because <strong>service credits are almost never refunded automatically</strong>.</p>
<p>Almost every enterprise SaaS SLA follows the same playbook:</p>
<ol>
<li>You must prove monthly uptime fell below your contractual threshold (typically <code>99.9%</code> or <code>99.95%</code>).</li>
<li>You must submit a formal credit claim with <strong>UTC timestamps, affected components, and outage durations</strong>.</li>
<li>You must file within a strict <strong>15-to-30-day claim window</strong> after the billing cycle ends—or the credit permanently expires.</li>
</ol>
<p>On a <code>$5,000/month</code> vendor contract with a <code>99.9%</code> SLA, a single <strong>45-minute P1 outage</strong> breaches the entire monthly error budget (<code>43.2 minutes</code>). Depending on the vendor's tier table, that unlocks a <code>10%–25%</code> service credit (<code>$500–$1,250</code>). Multiply that across 20–50 critical SaaS vendors and Finance / SRE teams routinely forfeit <code>$5,000–$25,000+</code> per year simply because nobody had time to audit 30 status pages before the deadline.</p>
<hr />
<h3>Real-World Example: Live 30-Day Audit Math</h3>
<p>To make this concrete, we ran a live status audit against <strong>GitHub (</strong><code>githubstatus.com</code><strong>)</strong> over a rolling 30-day window (<code>43,200 minutes</code>) using a standard <code>$2,500/month</code> spend and <code>99.9%</code> SLA target:</p>
<ul>
<li><strong>Feed Format Detected</strong>: Atlassian Statuspage v2 (<code>/api/v2/summary.json</code> + <code>/api/v2/incidents.json</code>)</li>
<li><strong>Public Incidents Logged (30d)</strong>: <code>31</code> incidents across Actions, Pull Requests, Git LFS, and Copilot components</li>
<li><strong>Merged Effective Outage Minutes</strong>: <code>1,208.81 minutes</code> (<code>841.61m</code> major/critical + weighted minor degradation)</li>
<li><strong>Effective 30-Day Uptime</strong>: <code>97.2018%</code> (status: <code>BREACHED</code> against <code>99.9%</code> target)</li>
<li><strong>Estimated Recoverable Credit</strong>: <code>25%</code> <strong>=</strong> <code>$625</code> (standard SLA credit schedule)</li>
<li><strong>Filing Window Countdown</strong>: <code>29 days remaining</code> before the claim window closes</li>
<li><strong>Cryptographic Proof</strong>: 64-character SHA-256 digest of the raw vendor status snapshot + UTC timestamp</li>
</ul>
<p>Most teams remember the big outage while firefighting Slack alerts—and then completely forget to file the credit ticket three weeks later when invoices arrive.</p>
<hr />
<h3>4 Engineering Traps When Automating SaaS SLA Credit Tracking</h3>
<p>When we set out to build an automated, zero-dependency SLA auditor on <strong>Cloudflare Workers</strong>, we ran into four subtle engineering pitfalls that break naive uptime scripts:</p>
<h4>1. Overlapping Incident Double-Counting</h4>
<p>During cascading incidents, a vendor frequently posts a <code>minor</code> degradation ticket at <code>14:00 UTC</code> and escalates or opens a separate <code>major</code> outage ticket from <code>14:15</code> to <code>15:00 UTC</code>. If you naively sum <code>durationMinutes</code> across every incident object, you over-report downtime and get your credit claim rejected immediately.</p>
<p>The right approach is interval union merging:</p>
<ul>
<li>Normalize every incident into <code>[startMs, endMs]</code> clamped to the 30-day (or calendar-month) window.</li>
<li>Sort intervals by <code>startMs</code> and merge overlapping spans separately for <code>major</code>/<code>critical</code> outages (100% weight) vs. <code>minor</code> partial degradations (configurable fractional weight), subtracting any overlap already accounted for by <code>major</code>/<code>critical</code> intervals.</li>
</ul>
<h4>2. Fragmented Public Status Feed Protocols Across 30+ Vendors</h4>
<p>There is no single status page standard across modern SaaS stacks:</p>
<ul>
<li><strong>Atlassian Statuspage v2</strong> (GitHub, Cloudflare, Datadog, Twilio, Atlassian, Vercel, Snowflake, Auth0, etc.): <code>/api/v2/summary.json</code> and <code>/api/v2/incidents.json</code>.</li>
<li><strong>Instatus / Custom JSON</strong> (Linear, Supabase, Render, Resend): custom summary JSON endpoints.</li>
<li><strong>Atom / RSS Feeds</strong> (AWS, Slack, GCP, Salesforce, Stripe status feeds): XML parsing with RFC 3339 / RFC 822 timestamp normalization.</li>
<li><strong>HTML Fallback</strong>: deterministic extraction when a vendor disables JSON APIs.</li>
</ul>
<p>Every outbound fetch also needs strict <strong>SSRF defense</strong>—blocking <code>localhost</code>, RFC 1918 private IPv4 ranges, link-local cloud metadata (<code>169.254.169.254</code>), raw IPv6 literals, and re-validating every HTTP redirect target.</p>
<h4>3. Scheduled Maintenance Exclusions</h4>
<p>Nearly all SaaS SLAs exclude pre-announced maintenance windows (<code>impact === "maintenance"</code> or scheduled maintenance objects). Your calculator must exclude maintenance by default while keeping it visible in the incident ledger so FinOps can audit unexpected overruns.</p>
<h4>4. Dispute-Proof Cryptographic Evidence (SHA-256)</h4>
<p>Status pages occasionally edit incident summaries or drop older resolved incidents after 30–90 days. Hashing every verified status snapshot with <code>crypto.subtle.digest('SHA-256', ...)</code> and appending <code>{ checkedAtUtc, statusUrl, feedFormat, httpStatus, sha256 }</code> into an immutable audit log gives procurement and legal teams timestamped evidence before filing a credit dispute.</p>
<hr />
<h3>Try It Free (Zero Signup, Zero Credit Card)</h3>
<p>We packaged this entire engine into <strong>SLABeacon</strong> so Ops, SRE, FinOps, and MSP teams can audit vendors in seconds—either directly in the browser or inside a 5-tab Google Sheets™ workbook:</p>
<ul>
<li><strong>Free Live Status &amp; SLA Credit Calculator (no login required)</strong>: <a href="https://tlprojectlab.xyz/slabeacon/">https://tlprojectlab.xyz/slabeacon/</a></li>
<li><strong>Top 30 Cloud &amp; SaaS Status Pages &amp; Standard SLA Targets Directory</strong>: <a href="https://tlprojectlab.xyz/slabeacon/directory/">https://tlprojectlab.xyz/slabeacon/directory/</a></li>
<li><strong>Standalone 24/7 Web Monitor Console (Cloud Cron + Slack/Discord/Teams Webhooks + Printable Credit Claim Packets)</strong>: <a href="https://tlprojectlab.xyz/slabeacon/app/">https://tlprojectlab.xyz/slabeacon/app/</a></li>
</ul>
<p>If you manage vendor SLAs for your engineering org or clients, I'd love to hear which SaaS vendors give you the hardest time when claiming credits—and which status feed formats we should add next!</p>
]]></content:encoded></item><item><title><![CDATA[Catching Silent SaaS AI-Training Policy Changes, Subprocessors & API Deprecations With SHA-256 Proof]]></title><description><![CDATA[Close the 70% compliance gap between annual SOC 2 audits with deterministic AI-training detection, subprocessor tracking, and SHA-256 logs.]]></description><link>https://tlprojectlab.hashnode.dev/catching-silent-saas-ai-training-policy-changes-subprocessors-api-deprecations-with-sha-256-proof</link><guid isPermaLink="true">https://tlprojectlab.hashnode.dev/catching-silent-saas-ai-training-policy-changes-subprocessors-api-deprecations-with-sha-256-proof</guid><category><![CDATA[SaaS application development services]]></category><dc:creator><![CDATA[kinonotabi]]></dc:creator><pubDate>Mon, 30 Nov 2026 14:08:10 GMT</pubDate><content:encoded><![CDATA[<p>Most B2B software companies now spend <code>$15,000–$40,000/year</code> on automated compliance platforms for SOC 2 or ISO 27001 readiness. Yet those platforms share a massive blind spot: <strong>what happens to your 30–100 SaaS vendors during the other 364 days between annual security questionnaires?</strong></p>
<p>We call this the <strong>70% continuous vendor compliance gap</strong>:</p>
<ul>
<li>A critical SaaS vendor quietly updates its Privacy Policy or Terms of Service to enable <strong>default opt-in AI model training</strong> on workspace content or telemetry.</li>
<li>A processor adds 3 new third-party <strong>subprocessors</strong> in new jurisdictions, triggering a 30-day objection window under <strong>GDPR Article 28</strong>—which nobody notices because the vendor only updated a webpage without emailing your DPO.</li>
<li>An upstream developer platform posts a quiet <strong>90-day API breaking change or sunset notice</strong> on its changelog before your engineering team schedules migration work.</li>
</ul>
<p>Checking 50 vendor legal pages manually every month doesn't scale—and generic webpage screenshot tools flood Slack with noisy false positives every time a footer copyright year or cookie banner CSS class changes.</p>
<hr />
<h3>Designing a Deterministic Vendor Compliance Monitor on Cloudflare Workers</h3>
<p>Instead of spinning up expensive headless browsers for every policy check, we built <strong>ClauseBeacon</strong> as a zero-dependency edge monitoring engine on <strong>Cloudflare Workers</strong> (<code>clausebeacon-api</code>) paired with a 5-tab compliance workbook and a 24/7 Cloud Cron web console.</p>
<p>Here is how the pipeline eliminates noise while preserving auditor-grade proof:</p>
<h4>1. Structured Policy &amp; Subprocessor Discovery</h4>
<p>Given a root vendor domain (for example, <code>stripe.com</code> or <code>linear.app</code>), the engine resolves curated official endpoints and common discovery paths across four distinct document categories:</p>
<ul>
<li>Privacy Policy &amp; Data Processing Addendum (DPA)</li>
<li>Terms of Service / AI Terms</li>
<li>Official Subprocessor Registry</li>
<li>Developer Changelog &amp; API Deprecation Notices</li>
</ul>
<p>For example, running a live audit on <strong>Stripe (</strong><code>stripe.com</code><strong>)</strong> completes in ~`2.4 seconds<code>, extracts </code>24<code>**structured subprocessors**, classifies AI-training posture as</code>LOW`, and generates a verifiable 64-character SHA-256 evidence hash.</p>
<h4>2. Deterministic AI-Training Clause Classification (Zero Hallucinations)</h4>
<p>Rather than relying purely on an LLM (which can hallucinate or flip risk labels between runs), our first pass runs deterministic clause pattern matching across normalized legal text:</p>
<ul>
<li>Distinguishes explicit <strong>customer-data opt-out / zero-training commitments</strong> (<code>LOW</code>) from <strong>broad product-improvement / ML training rights</strong> (<code>HIGH</code> / <code>CRITICAL</code>).</li>
<li>Separates marketing boilerplate and cookie banners from operative legal clauses before hashing.</li>
<li>Only invokes optional AI semantic diffing when an actual material hash delta occurs, producing a concise <strong>P0–P3 severity alert</strong> and a draft <strong>GDPR Article 28 vendor inquiry / objection notice</strong>.</li>
</ul>
<h4>3. Immutable SHA-256 Audit Evidence Ledger</h4>
<p>Every check—even when no change occurred—records <code>{ checkedAtUtc, vendorDomain, documentUrl, httpStatus, sha256, changeDetected }</code> in an append-only ledger. During SOC 2 Type II or GDPR audits, compliance leads can export a <strong>Printable SOC 2 &amp; GDPR Audit Evidence Packet</strong> proving continuous third-party monitoring throughout the audit period.</p>
<h4>4. Security-First Architecture (SSRF Hardening + Zero Restricted Google Scopes)</h4>
<p>Two architectural constraints kept infrastructure cost near zero while satisfying strict enterprise security teams:</p>
<ul>
<li><strong>Strict SSRF Guard</strong>: Every user-supplied domain, discovered legal link, redirect hop, and Slack/Discord/Microsoft Teams webhook URL is validated to block <code>localhost</code>, private IPv4/IPv6 ranges, and cloud metadata IPs.</li>
<li><strong>Zero-CASA Google Sheets™ Add-on + Standalone Web Console</strong>: Rather than requesting Google Drive or Gmail scopes, our Sheets integration uses strictly 4 Non-sensitive/Sensitive scopes (<code>0</code> Restricted scopes), and teams that prefer a browser-only workflow can run scheduled 6-hour/daily monitoring directly in the standalone Web Console backed by Cloudflare Cron (<code>0 */6 * * *</code>).</li>
</ul>
<hr />
<h3>Try the Free Live Audit &amp; Top 30 Directory</h3>
<p>Everything below is publicly accessible right now with <strong>zero signup and zero credit card required</strong>:</p>
<ul>
<li><strong>Free Live Vendor Policy &amp; AI-Training Auditor</strong>: <a href="https://tlprojectlab.xyz/clausebeacon/">https://tlprojectlab.xyz/clausebeacon/</a></li>
<li><strong>Top 30 B2B SaaS AI-Training &amp; Subprocessor Directory</strong> (OpenAI, Anthropic, Stripe, Slack, Notion, Linear, Vercel, Cloudflare, GitHub, Datadog, Supabase &amp; more): <a href="https://tlprojectlab.xyz/clausebeacon/directory/">https://tlprojectlab.xyz/clausebeacon/directory/</a></li>
<li><strong>Standalone 24/7 Web Compliance Monitor Console</strong> (Cloud Cron + Slack/Discord/Teams Webhooks + Printable Audit Evidence Packets): <a href="https://tlprojectlab.xyz/clausebeacon/app/">https://tlprojectlab.xyz/clausebeacon/app/</a></li>
</ul>
<p>How is your team currently tracking subprocessor updates and AI-training terms across your vendor stack? Curious to hear what edge cases or vendor registries you want covered next!</p>
]]></content:encoded></item><item><title><![CDATA[Building a Zero-Dependency MCP Server + 4 Free E-Commerce/SEO Web Tools Running at $0/Month on Cloudflare Workers]]></title><description><![CDATA[How I built a zero-dependency Node.js MCP server and 4 free Shopify, WooCommerce, and SEO web tools running at $0/month on Cloudflare Workers.]]></description><link>https://tlprojectlab.hashnode.dev/building-a-zero-dependency-mcp-server-4-free-e-commerce-seo-web-tools-running-at-0-month-on-cloudflare-workers</link><guid isPermaLink="true">https://tlprojectlab.hashnode.dev/building-a-zero-dependency-mcp-server-4-free-e-commerce-seo-web-tools-running-at-0-month-on-cloudflare-workers</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[cloudflare]]></category><dc:creator><![CDATA[kinonotabi]]></dc:creator><pubDate>Sun, 29 Nov 2026 06:07:27 GMT</pubDate><content:encoded><![CDATA[<p>Most web intelligence tools either spin up expensive headless browsers or force users to create an account and paste an API key before running a single lookup.</p>
<p>I wanted the opposite for <strong>TLProject Lab</strong>: one pure-JavaScript HTTP analysis codebase that powers <strong>4 free, no-signup browser tools</strong> (<a href="https://tlprojectlab.xyz/tools/">tlprojectlab.xyz/tools/</a>) <em>and</em> a <strong>zero-dependency Model Context Protocol (MCP) server</strong> (<a href="https://github.com/AzureSkyProject/tlproject-intel-mcp"><code>tlproject-intel-mcp</code></a>) for Claude Desktop, Cursor, Windsurf, and Cline — all running at <strong>$0/month fixed hosting cost</strong> on Cloudflare Workers and Cloudflare Pages.</p>
<p>Here is the exact architecture, security hardening, and stdio JSON-RPC design behind it, with runnable snippets directly from the repo.</p>
<hr />
<h2>1. The $0/Month Architecture</h2>
<p>Instead of running Playwright or Puppeteer clusters, every analyzer uses pure deterministic JavaScript over standard <code>fetch()</code>:</p>
<ul>
<li><strong>Shopify Store Intel</strong>: inspects response headers (<code>x-shopid</code>, <code>x-shopify-stage</code>), storefront HTML (<code>Shopify.theme</code>, 62 app &amp; ad pixel signatures), <code>/products.json</code> pricing &amp; stock distributions, and <code>/sitemap.xml</code> SKU estimates.</li>
<li><strong>WooCommerce Store Intel</strong>: detects WordPress/WooCommerce versions, active child/parent themes, 78 curated plugins plus raw <code>/wp-content/plugins/</code> slugs, and WooCommerce Store API multi-currency pricing.</li>
<li><strong>Website SEO &amp; Tech Audit</strong>: computes a deterministic 0–100 technical SEO score, extracts JSON-LD <code>@graph</code> schema types, audits 5 HTTP security headers, checks <code>/robots.txt</code> and <code>/sitemap.xml</code> in parallel, and matches 92 technology signatures across 8 categories.</li>
<li><strong>Chrome Web Store Analyzer</strong>: extracts exact user count, rating, version, Manifest V2/V3 &amp; permission flags, and related competitors.</li>
</ul>
<p>Because there is no browser binary and zero third-party runtime packages, the entire backend runs inside a single Cloudflare Worker (<code>tlp-intel-api</code>), while the 4 interactive frontend pages are plain static HTML/CSS/JS hosted on Cloudflare Pages:</p>
<pre><code class="language-text">Browser Users (tlprojectlab.xyz/tools/*) ──┐
                                           ├──&gt; Cloudflare Worker (/public/demo)
AI Agents (tlproject-intel-mcp via stdio) ─┤      ├─ Origin / Client Header Check
     │                                     │      ├─ Per-IP Rate Limit (15/hr)
     │ (Optional APIFY_TOKEN / ZYLA /      │      ├─ 30-Min Edge Cache (caches.default)
     │  RAPIDAPI_KEY env var)              │      └─ SSRF-Hardened Pure-HTTP Parsers
     ▼                                     │
Paid High-Volume Backends                  └──&gt; Paid Marketplace Gateways (/v1/*)
</code></pre>
<p>Typical cold-to-result latency is 1–3 seconds, and repeated lookups hit Cloudflare's edge cache in milliseconds.</p>
<hr />
<h2>2. SSRF Hardening on Edge Fetchers</h2>
<p>Any public URL inspection endpoint is an immediate SSRF target if you blindly pass user input to <code>fetch()</code>. A common mistake is validating only the initial URL — an attacker can still return a <code>302 Redirect</code> to <code>http://169.254.169.254/</code> or an internal host, or plant a private IP inside a <code>Sitemap:</code> line in <code>robots.txt</code>.</p>
<p>In our Worker parsers, every outbound URL goes through <code>assertPublicHostname()</code> <strong>before</strong> the request and <strong>again after</strong> redirects resolve:</p>
<pre><code class="language-javascript">export function assertPublicHostname(hostname) {
  const host = String(hostname || '').toLowerCase().trim();
  if (
    !host ||
    host === 'localhost' ||
    host.endsWith('.localhost') ||
    host.endsWith('.local') ||
    host.endsWith('.internal')
  ) {
    throw new Error('Private or local hostnames are not allowed');
  }
  if (host.includes(':') || host.startsWith('[')) {
    throw new Error('Raw IPv6 literal addresses are not allowed');
  }
  if (/^\d{1,3}(\.\d{1,3}){3}$/.test(host)) {
    const parts = host.split('.').map(Number);
    if (
      parts[0] === 0 ||
      parts[0] === 10 ||
      parts[0] === 127 ||
      (parts[0] === 169 &amp;&amp; parts[1] === 254) ||
      (parts[0] === 172 &amp;&amp; parts[1] &gt;= 16 &amp;&amp; parts[1] &lt;= 31) ||
      (parts[0] === 192 &amp;&amp; parts[1] === 168) ||
      (parts[0] === 100 &amp;&amp; parts[1] &gt;= 64 &amp;&amp; parts[1] &lt;= 127)
    ) {
      throw new Error('Private or reserved IPv4 addresses are not allowed');
    }
  }
  if (!host.includes('.')) {
    throw new Error('Invalid public domain name');
  }
}
</code></pre>
<p>And inside <code>fetchWithTimeout()</code>, we wrap <code>AbortController</code> timeouts with post-redirect verification:</p>
<pre><code class="language-javascript">async function fetchWithTimeout(url, timeoutMs, fetchImpl = fetch) {
  const checked = normalizeSiteUrl(url); // runs assertPublicHostname()
  const controller = new AbortController();
  const timer = setTimeout(() =&gt; controller.abort(), timeoutMs);
  try {
    const res = await fetchImpl(checked.url, {
      redirect: 'follow',
      signal: controller.signal,
    });

    // Post-redirect SSRF verification
    const finalUrl = res.url || checked.url;
    const finalParsed = new URL(finalUrl);
    assertPublicHostname(finalParsed.hostname);

    return { status: res.status, ok: res.ok, url: finalUrl, text: await res.text() };
  } finally {
    clearTimeout(timer);
  }
}
</code></pre>
<p>When <code>auditWebsite()</code> falls back to a <code>Sitemap:</code> directive parsed from a remote <code>robots.txt</code>, that candidate URL is also validated through <code>normalizeSiteUrl()</code> before fetching.</p>
<hr />
<h2>3. Origin-Locked Rate Limiting + 30-Minute Edge Caching</h2>
<p>Exposing a zero-signup <code>/public/demo</code> route means balancing frictionless UX against scraper abuse. Our Worker applies three lightweight layers without needing KV or Durable Objects billing:</p>
<ol>
<li><strong>Origin / Client gate</strong>: Only browser requests originating from <code>https://tlprojectlab.xyz</code> (checked via <code>Origin</code> or <code>Referer</code>) or MCP clients sending <code>X-TLP-Demo-Client: tlproject-intel-mcp</code> are accepted; arbitrary curl bots get HTTP <code>403</code>.</li>
<li><strong>Per-IP sliding window (</strong><code>15 requests/hour</code><strong>)</strong>: Keyed on <code>cf-connecting-ip</code> inside the isolate with automatic map pruning once the bucket map exceeds 2,000 keys so memory stays bounded. Hitting the limit returns HTTP <code>429</code> with <code>Retry-After</code> and structured upgrade links.</li>
<li><strong>30-minute edge cache (</strong><code>caches.default</code><strong>)</strong>: Normalized <code>(tool, target.toLowerCase())</code> cache keys are stored via <code>ctx.waitUntil(edgeCache.put(...))</code>, keeping compute minimal when multiple users inspect popular domains like <code>allbirds.com</code> or <code>stripe.com</code>.</li>
</ol>
<pre><code class="language-javascript">function isAllowedDemoRequest(request) {
  const mcpClient = (request.headers.get('x-tlp-demo-client') || '').trim().toLowerCase();
  if (mcpClient === 'tlproject-intel-mcp') return { ok: true, client: 'mcp-demo' };

  const origin = (request.headers.get('origin') || '').trim();
  const referer = (request.headers.get('referer') || '').trim();
  const allowedPattern =
    /^https:\/\/(www\.)?tlprojectlab\.xyz(\/|$)|^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?(\/|$)/i;

  if (allowedPattern.test(origin) || allowedPattern.test(referer)) {
    return { ok: true, client: 'web-demo' };
  }
  return { ok: false, client: null };
}
</code></pre>
<hr />
<h2>4. Zero-Dependency MCP Stdio Framing (JSON-RPC 2.0)</h2>
<p>For the MCP server (<code>tlproject-intel-mcp</code>), I deliberately avoided pulling in heavy SDK dependency trees. The entire stdio transport + MCP <code>2024-11-05</code> dispatcher fits in ~410 lines of standard Node.js 18+ ESM (<code>src/server.js</code>), installs instantly via <code>npx</code> or Docker (<code>ghcr.io</code>), and passes <code>node --test</code> with zero <code>devDependencies</code>.</p>
<p>Two subtle details matter a lot when implementing a stdio MCP server cleanly:</p>
<ol>
<li><strong>Never pollute</strong> <code>stdout</code>: Any stray <code>console.log()</code> breaks the host client's JSON-RPC parser. All debug logs (<code>TLP_DEBUG=1</code>) go strictly to <code>stderr</code>.</li>
<li><strong>Serialize outbound writes</strong>: Incoming chunks can contain multiple newline-delimited messages or split across UTF-8 boundaries. Buffering lines and chaining responses through a promise queue guarantees deterministic framing:</li>
</ol>
<pre><code class="language-javascript">export function startStdioServer(options = {}) {
  const stdin = options.stdin || process.stdin;
  const stdout = options.stdout || process.stdout;
  const stderr = options.stderr || process.stderr;
  const server = createMcpServer({ ...options, stderr });

  let buffer = '';
  let writeChain = Promise.resolve();

  function enqueueLine(line) {
    writeChain = writeChain
      .then(async () =&gt; {
        const response = await server.handleLine(line);
        if (response !== null &amp;&amp; response !== undefined) {
          stdout.write(`${JSON.stringify(response)}\n`);
        }
      })
      .catch((err) =&gt; {
        stderr.write(`[tlproject-intel-mcp] Internal dispatch error: ${err?.message || err}\n`);
      });
  }

  stdin.setEncoding('utf8');
  stdin.on('data', (chunk) =&gt; {
    buffer += chunk;
    let newlineIndex;
    while ((newlineIndex = buffer.indexOf('\n')) !== -1) {
      const line = buffer.slice(0, newlineIndex).replace(/\r$/, '');
      buffer = buffer.slice(newlineIndex + 1);
      if (line.trim()) enqueueLine(line);
    }
  });

  stdin.resume();
  return { server, flush: () =&gt; writeChain };
}
</code></pre>
<p>On top of the transport, <code>src/backends.js</code> implements a 4-tier auto-router so new users never hit an API-key wall on first run:</p>
<pre><code class="language-javascript">export function resolveBackend(env = process.env) {
  if (env?.APIFY_TOKEN?.trim()) return { backend: 'apify', explicit: false };
  if (env?.ZYLA_API_KEY?.trim()) return { backend: 'zyla', explicit: false };
  if (env?.RAPIDAPI_KEY?.trim()) return { backend: 'rapidapi', explicit: false };
  return { backend: 'demo', explicit: false }; // 15 free lookups/hour, zero config
}
</code></pre>
<p>Every exposed tool declares strict JSON Schemas (<code>additionalProperties: false</code>) and MCP safety annotations (<code>readOnlyHint: true</code>, <code>destructiveHint: false</code>, <code>idempotentHint: true</code>).</p>
<hr />
<h2>5. Try It Locally in 10 Seconds</h2>
<p>You can run the built-in offline JSON-RPC handshake self-test without touching the network:</p>
<pre><code class="language-bash">git clone https://github.com/AzureSkyProject/tlproject-intel-mcp.git
cd tlproject-intel-mcp
node src/cli.js --self-test
npm test
</code></pre>
<p>Or drop it straight into Claude Desktop (<code>claude_desktop_config.json</code>) or Cursor (<code>.cursor/mcp.json</code>) with zero API keys:</p>
<pre><code class="language-json">{
  "mcpServers": {
    "tlproject-intel": {
      "command": "npx",
      "args": ["-y", "github:AzureSkyProject/tlproject-intel-mcp"]
    }
  }
}
</code></pre>
<p>It is also published as a signed OCI container image on GitHub Container Registry (<code>ghcr.io/azureskyproject/tlproject-intel-mcp:1.0.1</code>) and listed in the <strong>Official MCP Registry</strong> (<code>io.github.AzureSkyProject/tlproject-intel-mcp</code>) via GitHub Actions OIDC (<code>mcp-publisher login github-oidc</code>), plus indexed with an <strong>A rating on Glama</strong>.</p>
<hr />
<h2>Honest Trade-Offs</h2>
<p>Pure-HTTP edge parsing isn't magic:</p>
<ul>
<li><strong>No client-side JS execution</strong>: If a site renders its entire DOM via a CSR React bundle with empty initial HTML, or sits behind an aggressive Cloudflare Turnstile/WAF challenge, headless browser scrapers will see more than an HTTP parser.</li>
<li><strong>In-isolate rate limits are per PoP</strong>: A lightweight in-memory <code>Map</code> per Worker isolate is simple and $0/month, though not globally atomic across Cloudflare data centers (for a public demo endpoint backed by a 30-minute edge cache, that trade-off is completely fine).</li>
</ul>
<p>If you want to poke at the live browser tools or inspect the source:</p>
<ul>
<li><strong>Free Web Tools Hub (no login)</strong>: <a href="https://tlprojectlab.xyz/tools/">https://tlprojectlab.xyz/tools/</a></li>
<li><strong>Open-Source MCP Server (MIT)</strong>: <a href="https://github.com/AzureSkyProject/tlproject-intel-mcp">https://github.com/AzureSkyProject/tlproject-intel-mcp</a></li>
<li><strong>Glama MCP Listing (Rated A)</strong>: <a href="https://glama.ai/mcp/servers/AzureSkyProject/tlproject-intel-mcp">https://glama.ai/mcp/servers/AzureSkyProject/tlproject-intel-mcp</a></li>
</ul>
<p>Let me know in the comments if you run into any missed tech fingerprints or edge cases on your own sites — happy to add signatures or discuss the zero-dependency MCP stdio implementation!</p>
]]></content:encoded></item></channel></rss>