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

      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.

        1. image-2022-04-05-15-44-04-924.png
          283 kB
          Jan Piotrowski
        2. minimal-mongodb-binary.exe
          8.28 MB
          Jan Piotrowski

            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: