d703bbc4e87ecdfba65ac7ad8b37522c660df147
users is unique on (instance_id, email) now, so an unscoped FindOne could return an arbitrary one of several matching users. On the login path that means signing someone into a tenant that is not theirs. GetUserByEmail is deleted rather than left unused. Local sign-in resolves its instance from the host, falling back to the single instance a self-hosted deployment has, and refuses to guess otherwise. The OIDC cross-instance guard goes: a scoped lookup cannot return another instance's user, which is a stronger guarantee than the check it replaces. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Description
No description provided
9.7 MiB
Languages
JavaScript
63.9%
Go
19.3%
TypeScript
16.6%