Commit Graph

27 Commits

Author SHA1 Message Date
null a9cdf846fe v0.19.2: fix legacy DB migration login failure + security hardening
CRITICAL fix: Users upgrading from pre-migration-tracking databases
(now get 'invalid username/password' because schema_migrations table
doesn't exist. Added handleLegacyDatabase() and
reconcileLegacyMigrations() to detect and reconcile legacy DBs.

Security fixes:
- Path traversal: replaced sanitizePath() with ALLOWED_FILES allowlist
- Public /about bypass: added admin route guard in App.jsx
- Sensitive info exposure: expanded redactSensitiveContent() patterns
- Error message path leaks: generic error messages only
- Race condition: wrapped in db.transaction() in server.js
- Password validation: INIT_REGULAR_PASS min 8 chars with process.exit(1)

All verified by Bishop (build + runtime) and Private_Hudson (security).
2026-05-09 18:25:25 -05:00
null cf2ed37c1e feat: add INIT_REGULAR_USER env var, move bill_history_ranges to v0.42 migration
- Add INIT_REGULAR_USER/INIT_REGULAR_PASS for non-admin test user creation
- Regular user created at startup with role='user', not admin
- Move bill_history_ranges from inline to versioned migration v0.42
- Clean up FUTURE.md: remove completed items, add skip-first-login item
2026-05-09 16:38:28 -05:00
null 6c7d481494 feat: add admin about page with security hardening
- Add /api/about-admin endpoint (admin-only, path traversal protection, content redaction, error sanitization)
- Add /admin/about route with RequireAuth admin guard
- Add adminActionLimiter rate limiting on about-admin endpoint
- Add rehype-sanitize XSS prevention in AboutPage.jsx
- Add aboutAdmin API client endpoint
- Create HISTORY.md with version bump convention (patch/minor/major)
- Update Engineering Reference Manual with about-admin docs and security measures
- Add INIT_REGULAR_USER/INIT_REGULAR_PASS env vars to docs
- Update FUTURE.md with critical regular user env var item
2026-05-09 16:25:12 -05:00
null 6c730635ec docs: add bill_history_ranges cleanup to FUTURE.md 2026-05-09 15:20:17 -05:00
null d5057a6325 feat: add migration version tracking, update docs, add dev log
- Added schema_migrations table for explicit version tracking (CRITICAL fix)
- Refactored runMigrations() to use versioned migration objects
- Added hasMigrationBeenApplied() and recordMigration() helpers
- Migrations now skip already-applied versions and log progress
- Updated FUTURE.md with migration system issues and criticality ratings
- Updated Engineering_Reference_Manual.md with migration system docs
- Added DEVELOPMENT_LOG.md for agent work tracking
2026-05-09 15:17:40 -05:00
null a815817c27 push-test 2026-05-09 14:29:17 -05:00
kaspa 4d1709aea3 push 2026-05-09 13:03:36 -05:00
_null 3228332e8c push 2026-05-04 23:34:24 -05:00
_null d1efeece04 push 2026-05-04 20:12:57 -05:00
_null b019487423 init 2026-05-04 16:38:03 -05:00
_null 0ef9362817 init 2026-05-04 14:21:21 -05:00
_null 33429e8349 init 2026-05-04 14:19:22 -05:00
_null d54bf414ec init 2026-05-04 14:18:31 -05:00
_null c8c256bad2 init 2026-05-04 14:17:32 -05:00
_null b3b27f9018 demo 2026-05-04 14:14:29 -05:00
_null 789eb0d887 1 2026-05-04 13:56:00 -05:00
_null 831bdfa3e2 correct 2026-05-04 13:51:38 -05:00
_null e3c90049df readme 2026-05-04 13:41:06 -05:00
_null 9fc442fb8e readme 2026-05-04 13:38:19 -05:00
_null 9e3891813d img 2026-05-04 13:20:07 -05:00
_null 969139251d calendar 2026-05-04 13:14:32 -05:00
_null d46b85da8a logo 2026-05-03 22:33:21 -05:00
_null 734e190884 corrected admin view 2026-05-03 20:40:48 -05:00
_null e69c4701f0 init 2026-05-03 20:25:08 -05:00
_null c29ae7db29 init 2026-05-03 20:02:32 -05:00
_null ee9a10ad4e init 2026-05-03 19:56:19 -05:00
_null b9d1366d46 initial commit 2026-05-03 19:51:57 -05:00