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

The compatibility for mongo 4.x #214

Open
HJianBo opened this issue May 23, 2020 · 3 comments
Open

The compatibility for mongo 4.x #214

HJianBo opened this issue May 23, 2020 · 3 comments

Comments

@HJianBo
Copy link
Member

HJianBo commented May 23, 2020

No description provided.

@p-mendes
Copy link

p-mendes commented Jul 15, 2020

Does this mean that MongoDB 4.x is not supported by this auth plugin? I have been trying without success to connect to a MongoDB Atlas instance, and I think all the setting are correct, so this might explain why.

Here are the connection setting I'm using (from a k8s deployment file):

  ## MONGODB AUTH PLUGIN
  EMQX_AUTH__MONGO__TYPE: rs
  EMQX_AUTH__MONGO__SERVER: xx1.gcp.mongodb.net:27017,xx2.gcp.mongodb.net:27017,xx3.gcp.mongodb.net:27017
  EMQX_AUTH__MONGO__RS_SET_NAME: Test0-shard-0
  EMQX_AUTH__MONGO__SSL: 'true'
  EMQX_AUTH__MONGO__AUTH_SOURCE: admin
  EMQX_AUTH__MONGO__LOGIN: xxx
  EMQX_AUTH__MONGO__PASSWORD: xxx
  EMQX_AUTH__MONGO__DATABASE: emqx
  EMQX_AUTH__MONGO__AUTH_QUERY__COLLECTION: creds
  EMQX_AUTH__MONGO__AUTH_QUERY__PASSWORD_FIELD: password
  EMQX_AUTH__MONGO__AUTH_QUERY__PASSWORD_HASH: salt,bcrypt
  EMQX_AUTH__MONGO__AUTH_QUERY__SELECTOR: username=%u
  EMQX_AUTH__MONGO__SUPER_QUERY: 'on'
  EMQX_AUTH__MONGO__SUPER_QUERY__COLLECTION: creds
  EMQX_AUTH__MONGO__SUPER_QUERY__SUPER_FIELD: isSuperuser
  EMQX_AUTH__MONGO__SUPER_QUERY__SELECTOR: username=%u
  EMQX_AUTH__MONGO__ACL_QUERY: 'on'
  EMQX_AUTH__MONGO__ACL_QUERY__COLLECTION: acl
  EMQX_AUTH__MONGO__ACL_QUERY__SELECTOR: username=%u

Any clues?

@HJianBo
Copy link
Member Author

HJianBo commented Jul 27, 2020

Hi @p-mendes In the recent days, We have tested on mongo 4. It passed. But we are not testing it on the MongoDB Atlas instance.

Could you send me more detailed logs after the emqx_auth_mongo loaded?

@andresgoag
Copy link

Hello ! can someone figure out how to connect to a MongoDB atlas cluster with the emqx_auth_mongo plugin? I set up my configuration file like the one above, but it's not working.

Thank you

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

3 participants