Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for client cert and multiple host connection string for mongo adapter #687

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aneojgurhem
Copy link
Contributor

@aneojgurhem aneojgurhem commented Apr 4, 2024

Support for multiple client certificates. Clients we use supports it. May be used for certificate rotation.

Environment variable to set up client certificates:

MongoDB__ClientCertificateFiles__0=/path/to/pem/file0
MongoDB__ClientCertificateFiles__1=/path/to/pem/file1

Beware that client certificate files should be mounted in the container at the location given by the environment variables.

Support for multiple hosts has been added. The follonwing code shows how to specify multiple hosts:

MongoDB__Hosts__0=mongo0:27017
MongoDB__Hosts__1=mongo1:27017

Beware that MongoDB__Host and MongoDB__Port were removed in this PR.

MongoDB__Host=mongo
MongoDB__Port=27017

is now equivalent to

MongoDB__Hosts__0=mongo:27017

Finally, a variable to change mongo connection scheme has been introduced. It takes two values:

MongoDB__Scheme=MongoDB
MongoDB__Scheme=MongoDBPlusSrv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant