I am trying to setup CSFLE in docker for our Dotnet application in such a way that it can run on both Windows and Mac (ARM64) machines, We are currently using the mongocryptd approach and do not mind moving over to the Automatic Encryption Shared Library approach as highlighted in another community post
The main problem is that dotnet’s Microsoft recommended images run on the Debian distribution of Linux, Debian 12 (Bookworm), to be specific, since we are on .NET 8.
Based on all the details that I could find, neither the mongocryptd nor the Automatic Encryption Shared Library supports Arm64 architecture on the Debian distribution. Please correct me if I am wrong, I used this as a reference
Just some extra context, our current Docker file is downloading the mongocryptd using the following:
RUN wget -qO - https://www.mongodb.org/static/pgp/server-7.0.asc | \
gpg --dearmor -o /usr/share/keyrings/mongodb-server-7.0.gpg
RUN echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.com/apt/debian bookworm/mongodb-enterprise/7.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
RUN apt-get update && apt-get install -y mongodb-enterprise-cryptd
The above does not work on the MacBook with the ARM64 processor, giving the following error when running in our Docker File
Unable to locate package mongodb-enterprise-cryptd
Please let me know if there is any context that is missing