<?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[SAKSelector.Org]]></title><description><![CDATA[<p dir="auto">I am done playing with it for tonight- I think I am coming down with something and it's 4am.  Good time to stop if ever there was one.   <img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
<p dir="auto">SAKSelector: System Status &amp; Handover Briefing</p>
<ol>
<li>System Architecture &amp; Environment</li>
</ol>
<p dir="auto">-Domain &amp; DNS: <a href="https://sakselector.org" rel="nofollow ugc">https://sakselector.org</a> (SSL terminated via reverse proxy / Caddy / Traefik / Nginx on host).<br />
-Server Root: /opt/SAKSelector on host SAKSelector-Server.<br />
-Backend Framework: Python FastAPI serving static assets, UI templates, and catalog endpoints (/api/models, etc.).<br />
-Deployment Pipeline: /usr/local/bin/sakselector-deploy synchronizes local edits into the live runtime container and tests endpoint health.<br />
-Core Data Store: /opt/SAKSelector/app/models.json (contains all 436 Victorinox and Wenger models, tools mapping, layer counts, dimensions, photo hero links, and SAKWiki article URLs).<br />
-Frontend Stack: Vanilla JS (/opt/SAKSelector/static/app.js), CSS3 (/opt/SAKSelector/static/style.css), and Jinja2 templates (/opt/SAKSelector/app/templates/index.html and /opt/SAKSelector/templates/index.html).</p>
<ol start="2">
<li>Work Completed (Prior &amp; Current Sessions)<br />
Database &amp; Image Integrity<br />
-Catalog Normalization: Cleaned up catalog entries across 436 active models spanning both Victorinox and Wenger lines.<br />
-Hero Image Curation: Replaced non-knife images (blister packs, packaging backs, generic logo cards, and standalone accessories/sheaths) with verified knife hero images.<br />
-Offline SAKWiki Link Resolution:</li>
</ol>
<blockquote>
<blockquote>
<p dir="auto">Replaced live HTTP crawlers with an offline dictionary patch (/opt/SAKSelector/apply_offline_wiki_links.py) to prevent server rate limiting/TCP disconnects.<br />
Resolved major discrepancies with TikiWiki page naming conventions:Classic SD $\rightarrow$ ClassicFarmer / Farmer X $\rightarrow$ Victorinox+Farmer / Victorinox+Farmer+XWalker / Lumberjack $\rightarrow$ LumberjackMountaineer * and Mountaineer Lite $\rightarrow$ Victorinox+Mountaineer+and+Mountaineer+LiteHandled 84mm variations (Tinker 84mm, Camper 84mm, Climber 84mm) and consolidated Wenger Ranger series URLs.</p>
</blockquote>
</blockquote>
<p dir="auto">Performance &amp; Initial Load Optimization<br />
-6-Card Random Showcase:</p>
<blockquote>
<blockquote>
<p dir="auto">Updated app.js (lines ~245–255) so the default landing state (when no search query or filter is active) extracts and renders a random sample of 6 knives ([...models].sort(() =&gt; 0.5 - Math.random()).slice(0, 6)).<br />
Reduced initial DOM payload and image downloads by ~98%, improving mobile load performance.<br />
Preserved full dataset filtering: typing in the search bar or toggling tools/brands immediately expands the grid to show all matching results.</p>
</blockquote>
</blockquote>
<p dir="auto">Quick Info Modal</p>
<blockquote>
<blockquote>
<p dir="auto">Spec Header &amp; Pill Categorization: Verified spec block (Length, Weight, Width, Layers) displaying fallback -- when data points are absent.<br />
Color Schemes: Standardized badge colors across cards and modal (Blue = Main Layer, Gold = Back Tools, Green = Scale Tools).<br />
CTA Styling: Confirmed hover interaction for the "Explore Full History &amp; Variations on <a href="http://SAKWiki.com" rel="nofollow ugc">SAKWiki.com</a> <img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/2197.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--arrow_upper_right" style="height:1.4em;width:auto;vertical-align:middle" title="↗" alt="↗" />" link (idle dark navy $\rightarrow$ hover crimson red).Responsive</p>
</blockquote>
</blockquote>
<p dir="auto">Mobile Overhaul<br />
-Document Flow &amp; Viewport Fixes:</p>
<blockquote>
<blockquote>
<p dir="auto">Cleaned up fixed desktop flex dimensions (height: calc(100vh - 64px) and overflow-y: auto) that previously isolated the sidebar.<br />
Eliminated nested inner scrollbars, horizontal drift, and dead outer scrollbars on mobile viewports.<br />
Configured @media (max-width: 880px) stacking rules in style.css so the results grid flows naturally underneath the filter controls.</p>
</blockquote>
</blockquote>
<ol start="3">
<li>Outstanding Issues &amp; Active To-Do List<br />
-Phase 1: Mobile Usability &amp; Ergonomics (Immediate Next Steps)</li>
</ol>
<blockquote>
<blockquote>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />Collapsible Filter Drawer on Mobile:</div><p></p>
<blockquote>
<p dir="auto">Current behavior: On screens under 880px, users must scroll through the entire filter panel before seeing the knife cards or search results.<br />
Target solution: Keep the Search Bar pinned at the top on mobile. Wrap the remaining filters (Brand, Size, Required Tools, Layer slider) in an expandable &lt;details&gt; element or an accordion drawer labeled</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">-Filters &amp; Options (Tap to Expand).</p>
<blockquote>
<blockquote>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />Auto-Scroll on Search/Filter Selection:</div><p></p>
<blockquote>
<p dir="auto">On mobile, automatically scroll past the filter bar to the top of the #models-grid when a search is executed or a filter chip is toggled.</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">Phase 2: Catalog &amp; Image Audits</p>
<p dir="auto"></p><div class="plugin-markdown"><input type="checkbox" />Clipper Image Replacement:The 91mm Clipper currently shows image packaging for a 700th anniversary edition; update to a clean hero photo of the scissors-and-blade model.</div><br />
<div class="plugin-markdown"><input type="checkbox" />Wenger Junior Series Wiki Links:Map Wenger Junior EvoGrip 574 and related sub-codes to Junior+Series or Junior+03 on SAKWiki.</div><br />
<div class="plugin-markdown"><input type="checkbox" />Deep Link Verification:Run an offline regex check on models.json to verify that no remaining entries contain trailing underscores or unencoded special characters ({, }, *).</div><p></p>
<p dir="auto">Phase 3: UI &amp; Feature Enhancements<br />
</p><div class="plugin-markdown"><input type="checkbox" />Showcase Shuffle Button:Add a small <img src="https://multitool.ninja/assets/plugins/nodebb-plugin-emoji/emoji/android/1f3b2.png?v=b41cf6e2207" class="not-responsive emoji emoji-android emoji--game_die" style="height:1.4em;width:auto;vertical-align:middle" title="🎲" alt="🎲" /> Shuffle button next to the Featured 6 random models of 436 header to let visitors re-roll the 6 featured knives without refreshing the page.</div><br />
<div class="plugin-markdown"><input type="checkbox" />Free-Text Tool Search Refinement:Ensure the text input searches both the knife name and individual tool names (e.g., searching "scissors" or "saw" returns all models containing those tools in their layer lists).</div><br />
<div class="plugin-markdown"><input type="checkbox" />Modal Scroll Boundary Check:Add max-height: 85vh and overflow-y: auto to .modal-content to ensure ultra-thick knives (e.g., SwissChamp XLT / XXL) do not push the wiki CTA button below small mobile screens.</div><p></p>
]]></description><link>https://multitool.ninja/topic/95542/sakselectororg</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Nov 2026 00:29:42 GMT</lastBuildDate><atom:link href="https://multitool.ninja/topic/95542.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Oct 2026 07:14:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SAKSelector.Org on Wed, 28 Oct 2026 00:18:46 GMT]]></title><description><![CDATA[<h1>================================================================================<br />
SAKSELECTOR SECURITY, HARDENING &amp; ARCHITECTURE AUDIT LOG<br />
Date: October 27, 2026<br />
Host: SAKSelector-Server (Hetzner Cloud CX23)<br />
Domain: <a href="https://sakselector.org" rel="nofollow ugc">https://sakselector.org</a></h1>
<ol>
<li>EXECUTIVE SUMMARY</li>
</ol>
<hr />
<p dir="auto">SAKSelector runs a containerized FastAPI/Uvicorn backend supervised by systemd,<br />
reverse-proxied via native host Nginx with automated Let's Encrypt SSL. The audit<br />
identified an unnecessary exposed port in UFW, disabled SSH brute-force defense,<br />
missing web security headers, and an unthrottled API reverse proxy. All items have<br />
been resolved, tested, and verified.</p>
<ol start="2">
<li>REMEDIATION &amp; HARDENING ACTIONS TAKEN</li>
</ol>
<hr />
<p dir="auto">A. Firewall &amp; Network Perimeter (UFW):</p>
<ul>
<li>Finding: Port 8000/tcp was explicitly allowed from Anywhere (v4/v6) in UFW.</li>
<li>Action: Removed port 8000 rules. Docker binds to 127.0.0.1:8000 only.</li>
<li>Current State: Only ports 22 (SSH), 80 (HTTP), and 443 (HTTPS) are open.</li>
</ul>
<p dir="auto">B. SSH Brute-Force Defense (Fail2ban):</p>
<ul>
<li>Finding: Fail2ban was installed but inactive and disabled on boot.</li>
<li>Action: Enabled and started fail2ban.service targeting /var/log/auth.log.</li>
<li>Verification: Active and functioning; immediately trapped and banned active<br />
probing IPs (e.g., 2.57.122.150, 195.178.110.30).</li>
</ul>
<p dir="auto">C. Web Server &amp; Reverse Proxy (Nginx):</p>
<ul>
<li>Cleaned up conflicting legacy configuration symlink in /etc/nginx/sites-enabled/.</li>
<li>Added rate-limiting zone 'sak_limit' (10 req/s, burst 20, nodelay) to guard<br />
against aggressive scraping and DoS attempts on search/model endpoints.</li>
<li>Injected mandatory security headers:
<ul>
<li>X-Frame-Options: SAMEORIGIN</li>
<li>X-Content-Type-Options: nosniff</li>
<li>Referrer-Policy: strict-origin-when-cross-origin</li>
<li>Strict-Transport-Security: max-age=31536000; includeSubDomains</li>
</ul>
</li>
<li>Added X-Forwarded-Proto $scheme to ensure FastAPI handles HTTPS redirects cleanly.</li>
</ul>
<p dir="auto">D. Backend &amp; SAKWiki Integration:</p>
<ul>
<li>Supervised under systemd (/etc/systemd/system/sakselector.service).</li>
<li>Confirmed asynchronous non-blocking scraping using httpx.AsyncClient.</li>
<li>Verified 12.0s hard network timeout on external wiki calls to avoid worker hangs.</li>
<li>Confirmed 1-hour in-memory caching (CACHE_TTL = 3600) to protect SAKWiki.</li>
<li>Live query test on /sakwiki/model/SwissChamp returned HTTP 200 with full<br />
parsed tool/dimension metadata.</li>
</ul>
<ol start="3">
<li>CURRENT RUNNING CONFIGURATION</li>
</ol>
<hr />
<p dir="auto">Services:</p>
<ul>
<li>Nginx (Host): Reverse proxy &amp; SSL termination</li>
<li>Docker Container: sakselector-api (sakselector:latest) -&gt; 127.0.0.1:8000</li>
<li>Systemd Unit: sakselector.service (auto-restart enabled)</li>
<li>Fail2ban: Active (sshd jail monitoring)</li>
</ul>
<p dir="auto">Firewall (UFW Active):</p>
<ul>
<li>22/tcp   ALLOW IN Anywhere (v4/v6)</li>
<li>80/tcp   ALLOW IN Anywhere (v4/v6)</li>
<li>443/tcp  ALLOW IN Anywhere (v4/v6)</li>
</ul>
<ol start="4">
<li>VERIFICATION COMMANDS</li>
</ol>
<hr />
<p dir="auto">Check Fail2ban: fail2ban-client status sshd<br />
Check Nginx:    nginx -t &amp;&amp; systemctl status nginx<br />
Check App:      systemctl status sakselector.service<br />
Test Live API:  curl -s <a href="https://sakselector.org/sakwiki/model/SwissChamp" rel="nofollow ugc">https://sakselector.org/sakwiki/model/SwissChamp</a></p>
<h1>================================================================================<br />
END OF AUDIT LOG - SAKSELECTOR HARDENED &amp; OPERATIONAL</h1>
]]></description><link>https://multitool.ninja/post/2592284</link><guid isPermaLink="true">https://multitool.ninja/post/2592284</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Wed, 28 Oct 2026 00:18:46 GMT</pubDate></item><item><title><![CDATA[Reply to SAKSelector.Org on Tue, 20 Oct 2026 04:27:47 GMT]]></title><description><![CDATA[<p dir="auto">================================================================================<br />
<a href="http://SAKSELECTOR.ORG" rel="nofollow ugc">SAKSELECTOR.ORG</a> — DEPLOYMENT, REPAIR &amp; INFRASTRUCTURE CHANGELOG<br />
Date: October 20, 2026<br />
Environment: Ubuntu Server / Docker Containerized FastAPI<br />
Target Paths:</p>
<ul>
<li>App Directory:      /opt/SAKSelector</li>
<li>Source Code:         /opt/SAKSelector/app</li>
<li>Frontend Assets:     /opt/SAKSelector/static</li>
<li>Templates:           /opt/SAKSelector/templates</li>
<li>Deploy Utility:      /usr/local/bin/sakselector-deploy</li>
<li>Python Environment:  /opt/SAKSelector/venv<br />
================================================================================</li>
</ul>
<h2>[1] EXECUTIVE OVERVIEW</h2>
<p dir="auto">Tonight's work addressed critical data ingestion, scraping, asset loading, and<br />
UI presentation bugs on <a href="http://sakselector.org" rel="nofollow ugc">sakselector.org</a>. The primary issues resolved:</p>
<ol>
<li>Quick Info modal hero images failing to pass or display.</li>
<li>SAKWiki cross-origin hotlinking/403 blocks causing broken images.</li>
<li>Scraper failures and 404/502 errors on Wenger models with non-standard<br />
or missing SAKWiki wiki page slugs.</li>
<li>Integration of reverse-filtering from modal chips back to the sidebar.</li>
<li>Generating network-consistent 1800x340 branding headers.</li>
</ol>
<h2>[2] PROBLEM BREAKDOWNS &amp; APPLIED FIXES</h2>
<p dir="auto">A. Quick Info Modal Parameter Loss &amp; Image Omission</p>
<ul>
<li>Problem:<br />
Clicking "Quick Info" on model cards did not show knife hero photos.</li>
<li>Root Causes:
<ul>
<li>static/app.js defined <code>async function openSpecModal(modelName, sizeMm, layers)</code><br />
which only accepted 3 parameters, silently dropping <code>imageUrl</code>.</li>
<li>The modal inner HTML builder omitted any image tag entirely, starting<br />
immediately with <code>&lt;div class="modal-specs-grid"&gt;</code>.</li>
</ul>
</li>
<li>Solution Applied:
<ul>
<li>Updated <code>openSpecModal(modelName, sizeMm, layers, imageUrl)</code> signature.</li>
<li>Updated the card button template to bind <code>data-image="${model.image || ''}"</code>.</li>
<li>Updated click event delegation to pass <code>btn.dataset.image</code> into <code>openSpecModal</code>.</li>
<li>Inserted <code>.modal-hero-wrapper</code> containing an <code>&lt;img&gt;</code> tag above <code>.modal-specs-grid</code><br />
with fallback styling to auto-hide if no image exists or if loading fails.</li>
</ul>
</li>
</ul>
<p dir="auto">B. SAKWiki Referrer / Hotlinking Block (Broken Image Icons)</p>
<ul>
<li>Problem:<br />
Catalog cards and modal windows showed broken image place-markers for valid<br />
SAKWiki images (e.g., Ensign, Traveller, RangerGrip 174, Wenger Junior S10).</li>
<li>Root Causes:
<ul>
<li>SAKWiki's server (TikiWiki / Apache) inspects incoming HTTP request headers.</li>
<li>When browsers loaded <code>https://sakselector.org</code>, external <code>&lt;img&gt;</code> requests<br />
sent <code>Referer: https://sakselector.org/</code>.</li>
<li>SAKWiki blocked cross-origin image requests with non-whitelisted referrers.</li>
</ul>
</li>
<li>Solution Applied:
<ul>
<li>Added <code>&lt;meta name="referrer" content="no-referrer"&gt;</code> to <code>templates/index.html</code>.</li>
<li>Explicitly added <code>referrerpolicy="no-referrer"</code> to:
<ul>
<li>Grid card images in <code>static/app.js</code></li>
<li>Quick Info modal hero images in <code>static/app.js</code></li>
</ul>
</li>
</ul>
</li>
</ul>
<p dir="auto">C. Scraper 404 / 502 Failures on Wenger Slugs</p>
<ul>
<li>Problem:<br />
Certain Wenger models (such as Wenger Deer, Wenger Tool Chest, Wenger Ranger 70)<br />
threw "Failed to load live specifications from SAKWiki" errors inside the modal.</li>
<li>Root Causes:
<ul>
<li>SAKWiki does not maintain a uniform naming convention for Wenger models.<br />
Some are listed without brand prefixes ("Deer"), some keep prefixes ("Wenger<br />
Ranger 51"), and others use composite sub-names ("Wenger Ranger 70 - Handyman").</li>
<li>The scraper only queried the exact <code>model.name</code> slug.</li>
</ul>
</li>
<li>Solution Applied:
<ul>
<li>Refactored <code>get_sakwiki_model()</code> inside <code>/opt/SAKSelector/app/sakwiki_integration.py</code><br />
to evaluate multiple prioritized candidates sequentially:
<ol>
<li>Explicit <code>wiki_url</code> lookups defined in <code>models.json</code> (skips guessing entirely).</li>
<li>Explicit alias dictionary entries in <code>SLUG_ALIASES</code>.</li>
<li>Exact requested page slug.</li>
<li>Prefix-stripped variations (e.g., stripping "Wenger " or "Victorinox ").</li>
<li>Prefix-prepended variations (e.g., adding "Wenger ").</li>
</ol>
</li>
<li>Added <code>Wenger Ranger 70</code> -&gt; <code>Wenger Ranger 70 - Handyman</code> mapping to <code>SLUG_ALIASES</code>.</li>
</ul>
</li>
</ul>
<h2>[3] CORE MODIFIED CODE ARTIFACTS</h2>
<p dir="auto">A. /opt/SAKSelector/app/sakwiki_integration.py</p>
<ul>
<li>Lookups now check local JSON metadata before firing HTTP requests:<pre><code class="language-python"># Checks models.json for an explicit wiki_url
try:
    import json
    from pathlib import Path
    m_file = Path(__file__).resolve().parent / "models.json"
    if m_file.exists():
        with open(m_file, "r", encoding="utf-8") as mf:
            for entry in json.load(mf):
                if entry.get("name", "").strip().lower() == page_slug.strip().lower():
                    wurl = entry.get("wiki_url", "")
                    if "page=" in wurl:
                        target_slug = wurl.split("page=")[-1].replace("+", " ")
                        if target_slug and target_slug not in candidates:
                            candidates.insert(0, target_slug)
                    break
except Exception:
    pass
</code></pre>
</li>
<li>Added candidate fallback loop to handle 404/stub responses gracefully.</li>
</ul>
<p dir="auto">B. /opt/SAKSelector/static/app.js</p>
<ul>
<li>Button template:<br />
<code>&lt;button class="btn-spec" data-name="${model.name}" data-size="${model.size_mm}" data-layers="${model.layers}" data-image="${model.image || ''}"&gt;</code></li>
<li>Image rendering in modal:<pre><code class="language-javascript">const imgHtml = imageUrl &amp;&amp; !imageUrl.includes('placeholder')
  ? `&lt;div class="modal-hero-wrapper"&gt;&lt;img src="${imageUrl}" alt="${modelName}" class="modal-hero-img" referrerpolicy="no-referrer" onerror="this.parentElement.style.display='none'" /&gt;&lt;/div&gt;`
  : '';
</code></pre>
</li>
<li>Event listener:<br />
<code>openSpecModal(btn.dataset.name, btn.dataset.size, btn.dataset.layers, btn.dataset.image);</code></li>
</ul>
<p dir="auto">C. /opt/SAKSelector/templates/index.html</p>
<ul>
<li>Added: <code>&lt;meta name="referrer" content="no-referrer"&gt;</code> inside <code>&lt;head&gt;</code>.</li>
<li>Asset cache strings incremented up to <code>?v=2.9</code>.</li>
</ul>
<h2>[4] DEPLOYMENT &amp; VERIFICATION PROCEDURES</h2>
<p dir="auto">A. Standard Deployment Command:<br />
Execute when frontend or backend files change:<br />
/usr/local/bin/sakselector-deploy</p>
<p dir="auto">B. Verifying Scraper Endpoints from Terminal:<br />
Run from any directory using the project's virtualenv and PYTHONPATH:<br />
PYTHONPATH=/opt/SAKSelector /opt/SAKSelector/venv/bin/python3 -c '<br />
import asyncio<br />
from app.sakwiki_integration import get_sakwiki_model</p>
<pre><code> async def test():
     res = await get_sakwiki_model("Wenger Ranger 70")
     print("Status: OK | Slug:", res.get("page_slug"))
     print("Image URL:", res.get("image"))
     print("Tool count:", len(res.get("tools", {}).get("all", &amp;#91;])))

 asyncio.run(test())
 '
</code></pre>
<p dir="auto">C. Checking Image HTTP Headers Directly:<br />
curl -s -I -H "User-Agent: Mozilla/5.0" "<a href="https://sakwiki.com/show_image.php?id=2793" rel="nofollow ugc">https://sakwiki.com/show_image.php?id=2793</a>"</p>
<h2>[5] PENDING / FUTURE MAINTENANCE CHECKLIST</h2>
<ol>
<li>
<p dir="auto">Edge-Case Slug Mapping:</p>
<ul>
<li>If community members report specific models displaying "Failed to load live<br />
specifications from SAKWiki", open <code>/opt/SAKSelector/app/models.json</code> and ensure<br />
the <code>wiki_url</code> field points to the exact SAKWiki article, OR map it directly in<br />
<code>SLUG_ALIASES</code> inside <code>/opt/SAKSelector/app/sakwiki_integration.py</code>.</li>
</ul>
</li>
<li>
<p dir="auto">Missing Images in SAKWiki Database:</p>
<ul>
<li>Models displaying without photos either lack a primary image on SAKWiki or have<br />
images uploaded under non-standard TikiWiki file galleries. If updated, ensure<br />
new IDs are not in <code>IGNORED_IMAGE_IDS</code>.</li>
</ul>
</li>
<li>
<p dir="auto">Client Browser Cache Invalidation:</p>
<ul>
<li>Always remember to bump the version query parameter (e.g., <code>?v=3.0</code>) in<br />
<code>/opt/SAKSelector/templates/index.html</code> whenever editing CSS or JS to ensure<br />
returning visitors pull fresh assets immediately.<br />
================================================================================</li>
</ul>
</li>
</ol>
<p dir="auto">Plus it's been launched today, October 20, 2026.</p>
<p dir="auto">Def</p>
]]></description><link>https://multitool.ninja/post/2591457</link><guid isPermaLink="true">https://multitool.ninja/post/2591457</guid><dc:creator><![CDATA[Grant Lamontagne]]></dc:creator><pubDate>Tue, 20 Oct 2026 04:27:47 GMT</pubDate></item></channel></rss>