Expected Behavior
Dapr sidecar logs show authentication errors because of Mongo state store component is not authorized when the MongoDB Atlas service is used.
Atlas connection URI format is mongodb+srv://<username>:<password>@cluster0.xxx.mongodb.net/myFirstDatabase?retryWrites=true&w=majority but none of the existing URI format will create it.
Workaround -
I have added username and password to "server" and database in params to make it work for now.
I expect on configuring the server, username, password in the component manifest file of mongo spec, the right URI is created matching the Atlas format.
Require a new URI format mongodb+srv://%s:%s@%s/%s%s
https://github.com/dapr/components-contrib/blob/master/state/mongodb/mongodb.go#L66
Expected Behavior
Dapr sidecar logs show authentication errors because of Mongo state store component is not authorized when the MongoDB Atlas service is used.
Atlas connection URI format is
mongodb+srv://<username>:<password>@cluster0.xxx.mongodb.net/myFirstDatabase?retryWrites=true&w=majoritybut none of the existing URI format will create it.Workaround -
I have added username and password to "server" and database in params to make it work for now.
I expect on configuring the server, username, password in the component manifest file of mongo spec, the right URI is created matching the Atlas format.
Require a new URI format
mongodb+srv://%s:%s@%s/%s%shttps://github.com/dapr/components-contrib/blob/master/state/mongodb/mongodb.go#L66