Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1194

MongoDB Rust driver causes Windows Security Alert on first usage

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 2.1.0
    • Component/s: None
    • Labels:

      Hey,

      as you know we have been developing the Prisma ORM MongoDB connector in the last few weeks and months and making good progress.

      One thing we noticed along the way, it that different to all our other connectors (PostgreSQL, MySQL, SQL Server etc.) on first usage of the MongoDB connector on Windows you will get a prompt to allow connections for the Windows Defender Firewall:


      "Allow" will then trigger a User Account Control window depending on if you are Administrator and how your system is configured. Any future usage and connection will be let through as the exception is stored.

      We tracked the problem here: https://github.com/prisma/prisma/issues/11463

      First we thought we were doing something weird, but then we got the idea that this could actually be caused by the MongoDB Rust driver itself. To confirm that we built a minimal Rust based CLI that just connects to a server and lists the databases: https://github.com/prisma/minimal-mongodb-binary (Compiled `.exe` attached to the issues you can use directly, supply a connection string with `--url`)

      Unfortunately that also triggers the Windows Security Alert:

      Although we do not expect Windows users to be that many, generally ~5% of Prisma CLI users, it would be nice if we could remove that small bump for these users.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            piotrowski@prisma.io Jan Piotrowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: