mission-control/src
Mark Liu 720872a391
security: reject known-insecure default passwords during admin seeding (#123)
The admin seeding function previously fell back to password 'admin' when
AUTH_PASS was unset, and accepted any value from .env.example including
the documented default 'change-me-on-first-login'. This meant a user who
copied .env.example without changing the password (or forgot to set
AUTH_PASS entirely) would have an instance running with publicly known
credentials.

The seeding function now:
- Skips seeding entirely if AUTH_PASS is not set (instead of defaulting
  to 'admin')
- Checks AUTH_PASS against a blocklist of known insecure values
  (admin, password, change-me-on-first-login, changeme, testpass123)
- Logs a clear warning explaining what to do in both cases

Existing instances that already have users in the database are not
affected — the seeding function only runs when the users table is empty.

Signed-off-by: Mark Liu <mark@prove.com.au>
2026-03-04 08:03:11 +07:00
..
app feat: phase 1 workspace isolation across auth and core APIs (#112) 2026-03-04 00:27:47 +07:00
components feat: phase 1 workspace isolation across auth and core APIs (#112) 2026-03-04 00:27:47 +07:00
lib security: reject known-insecure default passwords during admin seeding (#123) 2026-03-04 08:03:11 +07:00
store feat: phase 1 workspace isolation across auth and core APIs (#112) 2026-03-04 00:27:47 +07:00
test feat: initial open-source release 2026-02-23 02:00:44 +07:00
types feat: initial open-source release 2026-02-23 02:00:44 +07:00
index.ts feat: initial open-source release 2026-02-23 02:00:44 +07:00
live-feed.tsx feat: initial open-source release 2026-02-23 02:00:44 +07:00
nav-rail.tsx feat: initial open-source release 2026-02-23 02:00:44 +07:00
page.tsx feat: initial open-source release 2026-02-23 02:00:44 +07:00
proxy.ts feat: add Update Available banner with GitHub release check (#94) 2026-03-03 17:17:15 +07:00