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
feat(objectql): reject aggregations over secret/password fields (#3171) (#3187)
aggregate() now refuses to reference a secret/password field (measure or groupBy). find/findOne mask credential fields so plaintext never leaves the engine, but aggregate had no equivalent guard — a GROUP BY / MIN / MAX / array_agg would surface the stored value, and post-hoc masking would corrupt group keys. The gate keys off a new unconditional collectCredentialFields collector (secret OR password, ignoring managedBy — aggregating a credential is never legitimate, even on a better-auth object). Fail-closed. Recorded as the follow-up in ADR-0100.
Closes#3171.
0 commit comments