Open Questions [TEAM_WHY_NEEDED] & Tech Debt
Use this board during engineering/product reviews to record the historical “Why?” behind non-obvious rules and track cleanup priorities.
Open [TEAM_WHY_NEEDED] Questions
- Dormant
db.php(index.php:38,db.php:1-22): Why is the dormant MySQL PDO stubdb.phpstill required inindex.phpwhen all persistence uses Supabase REST API? Can it be safely deleted? - Nginx Front-Controller 404 Behavior (
index.php:4-31): Should unknown virtual routes reachingindex.phpreturn HTTP404instead of rendering the landing page with HTTP200? - TLS Termination & Cookie
SecureFlag (i18n.php:11,29): Behind Hostinger VPS Nginx TLS termination, isHTTPS=onpassed to PHP-FPM soPHPSESSIDandlangcookies receive theSecureattribute? - Incomplete i18n & Polish Leaks (
lang/pl.json:105,index.php:362-401,status.php:221-222): Why ispricing.most_populartruncated to"Najczęściej "inpl.json, and why are pricing feature bullets, Bento UI demo labels, contact AJAX JS fallbacks, and status maintenance timestamp labels hardcoded in Polish? - CSS/JS Cache Busting (
index.php:142,597-598et al.): Should?v=<?= time() ?>be replaced withfilemtime()to allow browser/CDN caching? - Placeholder Marketing Content (
index.php:173,358,377,395,425-429,lang/*.json:61-66): When will placeholder pricing ("..."), partner icons (Google/AWS/Stripe/Azure/Meta), and testimonials (Jan Kowalski/John Doe) be replaced with real production content? - Waitlist Welcome Email Branding (
includes/waitlist.php:279-282): Is the minimal inline<div>welcome email intentional for deliverability, or should it adopt theBRANDING_GUIDE.mdSection 5.5 HTML shell withlogo-white.png? - Contact Handler Silent Failures (
contact-handler.php:177-182): Shouldcontact-handler.phpreturn HTTP500/502and log errors when both Supabase insert and Google Chat webhook fail, rather than returning200 success: true? - Contact Turnstile Parity (
contact-handler.php:61-96): Shouldcontact-handler.phpenforce Turnstilehostname,action, and token max length likewl_turnstile_verify()? - Blog Mock Fallback on
200 [](includes/blog-repository.php:161-180): Why doesget_blog_post_by_slug()fall back to mock posts even when Supabase responds200 []? Should mock fallback be controlled by an explicit config flag? - Blog Markdown Support (
supabase/website_schema.sql:182,blog-post.php:252): Is a Markdown parser planned forblog_posts.content, or should schema/API docs be corrected to HTML-only? - Status Page Upstream Failure UX (
status.php:32-38,79-99): Shouldstatus.phpshow a degraded/unavailable banner (and HTTP503) when$fetchError === trueinstead of falsely displaying"All Systems Operational"? - Status Page 90-Day Incident History (
status.php:228-234): Shouldstatus.phpquery closed historical maintenance records instead of displaying a hardcoded “no incidents in 90 days” string? - Duplicate Legal Viewer Entrypoints (
docs.phpvs.documentation.php): Why do both exist? Shoulddocs.phpbe removed or301-redirected to/documentation, and should deep-linking (?doc=...) be added? - Legacy
deploy.sh& Embeddeddocs/Lifecycle (deploy.sh,docs/): Have the hardcoded FTP credentials indeploy.shbeen rotated/revoked sodeploy.shcan be removed? Will the repo-localdocs/Astro site be retired onceplanovi-docstakes over?
Verified Security Vulnerabilities, Bugs & Tech Debt Checklist
- [CRITICAL SECURITY] Hardcoded FTP Credentials in Git (
deploy.sh:4-6) + Web Exposure: Plaintext FTP host, username, and password are committed indeploy.sh, and.htaccess:12does not block HTTP access to.shfiles. Rotate credentials immediately, revoke FTP account, purge from repo/history, and deny.shin web server config. - [HIGH SECURITY] Stored-XSS Bypass in
sanitize_blog_html()(includes/security.php:72-79,104,123-129): Unwrapping disallowed tags hoists child nodes into$parentafter$childrenwas already snapshotted, skipping sanitization on nested malicious elements (e.g.,<svg><img src=x onerror=...></svg>).<script>/<style>text contents also leak into HTML instead of deleting the subtree. Fix by deleting<script>/<style>/<iframe>/<object>/<embed>subtrees outright and recursively sanitizing hoisted nodes (or using a battle-tested HTML purifier). - [HIGH BUG] Status Page False “All Systems Operational” on API Failure (
status.php:32-38,79-99): When Supabase fails ($fetchError = true),$modulesstays empty and$allOperationalevaluates totrue, showing a green operational banner with zero components. - [HIGH BUG] Contact Form Silent Lead Loss (
contact-handler.php:177-182): Returns HTTP200{"success": true}even when both Supabase insert and Google Chat webhook fail, with zero server error logging. - [MEDIUM BUG] Trailing-Slash PDF Viewer 404 (
documentation.php:131,docs.php:131): Relative iframe pathdocuments/${docsLang}/${select.value}#toolbar=0breaks with 404 when accessed at/documentation/or/docs/. - [MEDIUM BUG] Missing Mobile Login CTA (
components/navbar.php:51-63,css/style.css:280,328-329):.nav-login-desktophides at<= 768pxand no.menu-mobile-loginmarkup exists in#custom-menu. - [MEDIUM BUG] Firefox
ReferenceErrorin Blog Category Filter (blog.php:166):setCategory(cat)uses undeclared globalevent.target. - [MEDIUM BUG] Sitemap
<lastmod>Never Usesupdated_at(includes/blog-repository.php:31,sitemap.php:92,112):get_blog_posts()omitsupdated_atfromselect. - [MEDIUM BUG] Blog Post Mock Slug Leak (
includes/blog-repository.php:121,161-180): Hardcoded mock slugs remain reachable even when Supabase is live and returns200 []. - [MEDIUM BUG] Router vs. Slug Validator Regex Mismatch (
.htaccess:29,index.php:12,router.php:21,includes/security.php:172): Routers accept[a-zA-Z0-9_\-]+, whilevalidate_slug()rejects uppercase/underscores with 404. - [MEDIUM BUG] Blog Pagination & Category Truncation (
blog.php:10,16,includes/blog-repository.php:193,sitemap.php:55-56): Fixedlimit=24with no pagination UI;sitemap.phpandget_blog_categories()cap at50posts/language. - [LOW BUG / TECH DEBT]
.htaccessMissing/docsRewrite & Missing Security Headers on APIs:.htaccesslacks^docs/?$rewrite;sitemap.php,waitlist-handler.php, andwaitlist-qualify-handler.phpskipsend_security_headers();render_blog_media()hardcodestype="video/mp4"for.webm;lang/pl.json:105has truncated"Najczęściej ";assets/duplicates 8 brand-kit files fromassets/brand/;docs/src/content/docs/is missing all Blog/HTMX/website-schema documentation; empty.github/directory remains in repo;db.phpanddocs.phpare dead/duplicate files;js/script.js:5,37lack null guards on#theme-toggleand#bg-canvas.