emqx / emqx-auth-mongo

EMQX Authentication/ACL with MongoDB
https://emqx.io/
Apache License 2.0
21 stars 25 forks source link

Is supported AWS documentDB? #201

Open alexdovbysh opened 4 years ago

alexdovbysh commented 4 years ago

Environment OS: Ubuntu 16.04 Erlang/OTP: EMQX: v3.2.3

Description

We tried configuring plugin for EC2 mongoDB instance and it works as expected. But in our production environment we using documentDB and with same configuration it doesn't work .

It always returns Cannot subscribe [<<"topic_name">>] for [<<"Not authorized">>]

If you can confirm that documentDB is supported we can provide more information if needed.

P.S. When we migrated to document DB we had some issue with 'eval' function that is deprecated and not available in documentDB may be you have some incompatibilities as well.

Thanks.

HJianBo commented 4 years ago

Hi, @alexdovbysh Thanks for your suggestion!

We will discuss it

wivwiv commented 4 years ago

The documentDB is compatible with MongoDB, which is available in theory. We are evaluating the availability of documentDB, which will be completed in 1-2 working days @alexdovbysh

alexdovbysh commented 4 years ago

Thank you for considering the fix.

If this will help, i suspect the problem might be:

Amazon DocumentDB does not support the admin or local database nor MongoDB system.* or startup_log collections respectively.

alexdovbysh commented 4 years ago

Sorry for bothering you again, but what is the status of the issue? Just to know if we can expect documentDb being supported or we should look to some other solution. Thanks

wivwiv commented 4 years ago

@alexdovbysh According to our test, the authentication of DocumentDB is not supported.

Please see if it can be supported at the source code. @turtleDeng