Implement localhost exception #4100
Labels
code/chore
Code maintenance improvements
not ready
Issues that are not ready to be worked on; PRs that should skip CI
Milestone
What should be done?
When new authentication is enabled,
admin.system.users
collection does not exist, and the client is connected from the localhost, bypass credentials checking instead of what #4075 did (falling back to old backend authentication).It is similar to https://www.mongodb.com/docs/manual/core/localhost-exception/
For testing, we probably should add a fixed user to MongoDB and FerretDB in the
envtool
and use MongoDB URI with those credentials in tests for the initial connection.We probably should also clean up the way we create and drop users in tests, including test setup. We also should remove or simplify
if IsMongo
/if !IsMongo
branches.Where?
See issue number in the codebase add by #4075.
Definition of Done
The text was updated successfully, but these errors were encountered: