-
Notifications
You must be signed in to change notification settings - Fork 63
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
X509 Auth issue for MongoDB Atlas with OTP 26 #226
Comments
I will take a look at it on the next weekend. |
If I use the example from the documentation then everything works as expected:
My config is:
|
Thanks for trying out. It's still not working for me with OTP-26. Even if I use your code snipped with my Atlas credentials. Same error like I described above. I notice that you are probably using a shared atlas cluster? But not sure if it makes any difference if using a shared vs a dedicated cluster. Oh, I didn't say that before. I'm using MongoDB v6. Cheers |
Did you check the firewall? Maybe you can give temporary access to a demo db and I can try it out. |
Yes, firewall is fine. With OTP-25 everything works. I currently don’t have a test db I can give you access to but will look at it when I‘m back at work. |
Besides that the ssl verification is somehow broken for me, I'm wondering why
doesn`t bring the previous behavior back. |
I guess, because you use the X509 auth mechanism which relies on verifying. |
Using the x509 auth mechanism using With OTP-26 it looks like these verify option does nothing or at least not the same like with OTP-25 |
Ok...I think, to get some progress it would be to get access to your database or cluster because my example is working. |
So I just got a log entry from MongoDB which may give some more insights...
Also tried it directly via
|
Maybe the subject name is not the right one. |
Is |
Ok, thx. I need your IP to give you access. To which e-mail I can send you the pem certificate? |
I sent you a message in the elixir forum. |
So, to fix my connection issue I needed to add It looks like that mongoDB atlas (on a dedicated cluster) currently doesn't support TLS 1.3. Thx @zookzook for your help with debugging and pointing me to the solution. |
I just wanted to quickly update to elixir 1.16 and OTP 26 but discovered some Auth issues I haven't seen before.
I use MongoDB Atlas with an X509 certificate which was generated by MongoDB itself.
And I use the currently latest version 1.2.1 of this library.
My config looks like this and is currently working without any problems in elixir 15 / OTP 25:
I tried the following elixir/erlang combinations:
The result is that only the combinations with
OTP 26
don't work.With
OPT 26
, regardless which query I try, I always get:With
OTP 25
and either elixir 15 or 16 I get the data results I expect.To be sure I also tried the proposed config from the readme and changed the ssl config part to:
with the same results as mentioned above. So this config didn't fix it.
I saw the OTP 26 adjusted some SSL related things but I cannot spot how and where this breaks stuff in the x509 authentication with MongoDB Atlas.
Did anyone of you have similar problems and/or ideas how to fix it?
Cheers
Frank
The text was updated successfully, but these errors were encountered: