Skip to content

VehicleVault v3.9.0 — Production Release

Latest

Choose a tag to compare

@TeeCodeDev TeeCodeDev released this 20 Nov 09:20
· 2 commits to main since this release

🤖 Note: These release notes were generated by an AI assistant.

We are proud to announce VehicleVault v3.9.0! This minor release delivers a comprehensive Security Hardening pass across authentication, multi-user authorization, file handling, SSRF protection, and PWA caching, alongside modular i18n refactoring contributed by @B0bbyD0llar and Showcase PDF & UI refinements.


✨ What's New

🛡️ 1. Comprehensive Security Hardening

  • Authentication, 2FA, OIDC & Session Lifecycle:
    • Rejected pre-MFA 2FA temporary tokens (purpose: '2fa_login') in verifyAccessToken, and added database-backed token_version + role verification so logout, password changes, password resets, and role changes immediately invalidate active JWTs.
    • Required TOTP second-factor confirmation to disable 2FA or regenerate backup/recovery codes, and blocked vkv_ API keys from managing 2FA.
    • Added OIDC id_token JWS signature (JWKS), iss, aud, exp, and nonce verification, restricted email matching to email_verified === true, and enforced 2FA on OIDC logins.
    • Validated password-reset origins (PUBLIC_URL / safe host regex) and invalidated prior unused reset tokens on new requests or completion.
    • Replaced SQL LIKE prefix matching in reverse-proxy auth with exact prefix matching (SUBSTR/INSTR) to prevent wildcard matching.
  • Authorization & Tenant Isolation:
    • Enforced getVehicleAccess across all MaintenanceController mutating endpoints, FuelController.rescanReceipt, CalendarService.generateIcs (when vehicleId is specified), and HTTP MCP tools (get_vehicle_summary, log_fuel_entry, log_service_entry, check_maintenance_alerts).
    • Removed driver role cross-tenant bypasses in DocumentController, FuelController, and VignetteController, blocked viewer writes in FuelController.create, and required requireAdmin on POST /api/notifications/check.
  • Files, SSRF, Client & Deployment:
    • Sanitized receipt_path and invoice_path with schema checks and path.basename() in PdfService.generateDossier and MaintenanceController.attachInvoiceToRecord.
    • Hardened TelematicsService.validateSafeExternalUrl against loopback, IPv4-mapped IPv6 (including hex notation), DNS rebinding, and redirect: 'error'.
    • Added ZIP entry count (200), uncompressed size (25 MB), and row/column caps to TripImportService.readXlsx.
    • Escaped contact_email and serialized license_plate safely in ShowcaseZipService.
    • Excluded private /uploads/{receipts,invoices,documents}/ paths from the Service Worker cache and cleared Cache Storage on logout.
    • Restricted default CORS_ORIGIN=* to same-origin, scoped trust proxy to TRUST_PROXY_HEADERS, and removed hardcoded fallback JWT_SECRET placeholders from docker-compose.yml.

🌐 2. Modular i18n Refactoring (#12, #17, #18, #19, #20 by @B0bbyD0llar)

  • Migrated all remaining inline lang === 'nl' strings in Fuel, Importer, ReceiptScannerModal, Auth / Login / Register / Password Reset, and Settings (General / AI / Backup) into client/src/i18n/locales/{nl,en,de}/.
  • Upgraded the login page language switcher to dynamically list all available locales using Intl.DisplayNames.

📄 3. Showcase PDF & Navigation Improvements

  • Refined the Showcase PDF export layout with a compact header banner, warranty spotlight banner, structured maintenance history table, clean hairline spec dividers, and a scannable QR code linking to the live showcase page.
  • Fixed RDW import detection (herkomst), preserved multi-paragraph showcase descriptions, and added the missing Tires tab to the mobile bottom navigation bar.