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

Auth not working in newer than 5.x MongoDB #151

Open
mmweivi opened this issue Nov 14, 2023 · 8 comments
Open

Auth not working in newer than 5.x MongoDB #151

mmweivi opened this issue Nov 14, 2023 · 8 comments

Comments

@mmweivi
Copy link

mmweivi commented Nov 14, 2023

I was using mongo:latest in Docker setup and auth did not work at all. Then I found this Reddit thread and I tested versions 3.6, 4.0, 5.0, 6.0 and 7.0 from which after 5.0 auth no longer worked.

Perhaps something has changed in 6.0 with auth. 5.0 is better than nothing, but it'd be very nice if latest could be supported.

@why-not-try-calmer
Copy link
Contributor

why-not-try-calmer commented Nov 14, 2023

Are you sure? Can you confirm or disconfirm if you look at https://github.com/why-not-try-calmer/mongodb/actions/runs/6828574764? nevermind the tests don't test auth

@zachary822
Copy link

It does work with HEAD, but hackage needs to be updated.

@why-not-try-calmer
Copy link
Contributor

Participants to this thread, would you like to PR a new test for auth specifically? I think it's a crucially missing piece.

@mmweivi
Copy link
Author

mmweivi commented Nov 16, 2023

Participants to this thread, would you like to PR a new test for auth specifically? I think it's a crucially missing piece.

I don't dare to promise anything right now, however, when I'm less busy I could give a helping hand.

@why-not-try-calmer
Copy link
Contributor

It does work with HEAD, but hackage needs to be updated.

That's actually very true! The latest published version is currently unable to login using auth against any Mongo6+ version.

@heades
Copy link

heades commented Aug 9, 2024

Should this be closed now? It looks like the Hackage was updated in Feb. 2024, or are there still issues with auth?

@why-not-try-calmer
Copy link
Contributor

Should this be closed now? It looks like the Hackage was updated in Feb. 2024, or are there still issues with auth?

I'll add a test for 'auth' and we'll see.

@jcmartin
Copy link

jcmartin commented Oct 3, 2024

This is unresolved. mongoDB 4.0 and later uses SHA-256 as the default. However, the version that is on HEAD will use SHA-1 if the version is 3 or higher.

https://www.mongodb.com/docs/drivers/go/v1.11/fundamentals/auth/

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

No branches or pull requests

5 participants