Repository navigation
Audit: Security Hardening, Accessibility, Privacy, FreeVerse Integration & UX Fixes - #3
Merged
Merged
Conversation
…ion & UX fixes - upgrade Next.js to 16.4.1 resolving critical CVEs (RCE, SSRF, cache poisoning) - enforce strict BETTER_AUTH_SECRET handling in production - implement rate limiting on progress, notes, reports, and search API endpoints - add entity existence validation (isValidEntity) and cap batch progress updates - build RRRTX FreeVerse assessment & verifiable credential integration with deep linking - add /skills catalog overview page and fix footer navigation - migrate external Google Fonts to locally hosted geist and @fontsource/instrument-serif - add security headers: CSP, HSTS, X-DNS-Prefetch-Control, X-Frame-Options, nosniff - overhaul /privacy and /terms with GDPR/CCPA/India DPDP compliance and self-service export/deletion - improve form accessibility, WCAG 2.1 visible focus states, and mobile menu keyboard controls - enhance custom 404 page with navigation cards and search - add test suites for security gates, rate limiting, and FreeVerse integration Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…f crashing build - prevents Next.js page collection failure on Vercel preview builds where BETTER_AUTH_SECRET is not yet injected - outputs clear security warnings when secret is missing or shorter than 32 characters Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request implements comprehensive security hardening, accessibility remediation, privacy & legal compliance, RRRTX FreeVerse verifiable credential integration, and UI/UX improvements across RRRTX LearnPath.
Detailed audit findings and verification logs are documented in
AUDIT_REPORT.md.Key Changes
Security & Dependency Hardening (P0 / P1):
16.4.1, resolving Critical CVEs (RCE innext/og, SSRF, and cache poisoning).BETTER_AUTH_SECRETin production environments (src/lib/auth.ts).src/lib/rate-limit.ts) across/api/progress,/api/notes,/api/reports,/api/admin/reports, and/api/search.isValidEntity()validation insrc/lib/content/index.tsto reject forged or non-existent entity IDs on write endpoints, and capped batch progress updates to 250 items.next.config.ts: Content Security Policy (CSP), HSTS (max-age=63072000; includeSubDomains; preload),X-DNS-Prefetch-Control,X-Frame-Options: SAMEORIGIN,X-Content-Type-Options: nosniff, and suppressedX-Powered-By.src/components/practice/runtimes.tswith script breakout prevention andevent.sourcewindow verification.RRRTX FreeVerse Integration (P1):
src/lib/freeverse.tsmapping skills to FreeVerse proctored assessments (Python Core Developer, Full-Stack Web Engineering, Applied AI & LLM Systems, Agentic AI Architect, Cybersecurity Practitioner).skill,project,roadmap,return_url) on skill pages, learning workspace evidence panels, project view, the dashboard, and the skills catalog.Accessibility, Layout & UX Remediation (P2):
/skillscatalog overview page (src/app/skills/page.tsx) with domain filtering and parent roadmap references; fixed broken footer link.geistand@fontsource/instrument-seriffonts, eliminating third-party CDN tracking and enabling offline builds.src/app/not-found.tsx) with an embedded search box and direct navigation cards to popular destinations.Escapekey handling and `aria-controls="mobile-nav"" to the mobile navigation menu.<label>elements, loading states, and disabled double-submit states to sign-in and report forms.focus-visible:ring-2 focus-visible:ring-primary).overflow-x: clip;to body to prevent accidental mobile horizontal scroll.Privacy & Legal Compliance (P2 / P3):
/privacyand/termswith explicit data retention rules, strictly necessary cookie disclosures, GDPR/CCPA/India DPDP Act compliance, defensive security acceptable use, and independent educational disclaimers./api/me/export) and immediate account deletion (/api/me/delete) insrc/app/profile/ui.tsx.© 2026 RRRTX Labs) and updatedsitemap.xmlwith missing pages.Verification & Automated Gates
npm testpassed 10/10 test files (54/54 tests), including new tests for security gates, rate limiting, and FreeVerse integration.npm run content:validatepassed with zero schema or dangling reference errors.npm run lintpassed with 0 errors and 0 warnings.npm run typecheckpassed with 0 errors (tsc --noEmit).npm run buildsuccessfully generated all 341 pages.