You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(security): close four P0 launch-readiness findings (#1586)
P0-1 plugin-auth: generateSecret() throws (fails boot) when OS_AUTH_SECRET is
unset and NODE_ENV==='production' instead of using a predictable
dev-secret-<ts> (session forgery). Dev/test fallback unchanged.
P0-2 plugin-security: permission-resolution catch now FAILS CLOSED — logs ERROR
and throws PermissionDeniedError rather than return next(), so a degraded
metadata service can't bypass RBAC/RLS. System ops still bypass.
P0-3 driver-sql: contains/$contains escapes LIKE metacharacters (% _ \) and
binds explicit ESCAPE '\' (SQLite needs it) so '%' matches literally, not
every row (filter bypass).
P0-4 driver-mongodb: field-operator translator rejects unknown $-operators
instead of passing them through, blocking $where/$function/$expr (server-side
JS execution / query-intent bypass).
Each finding was hand-verified against main first. +12 regression tests across
the four packages. docs/launch-readiness.md updated: P0-1..4 marked Verify ✅
(fixed), Sign-off left for the team.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments