HTTP Interfaces

36 views
Skip to first unread message

Fabiano Silos

unread,
Sep 2, 2015, 8:24:42 PM9/2/15
to mongodb-user
Hello everybody!

Im trying to use HTTP Interfaces (http://docs.mongodb.org/ecosystem/tools/http-interfaces/) on a MongoDB 3.0.4 ReplicaSet and auth=true (using default authentication method: SCRAM-SHA-1) enabled in the config file.

When I try to access http://172.18.1.1:28017/ it asks me a username & password using Basic Authentication HTTP method. I inform a user and a password that is registred in admin database but after few retries I receive HTTP 401 return code with "not allowed" message.

Are there any clues to make it work?

Thanks 

Fabiano

Stephen Steneker

unread,
Sep 2, 2015, 11:01:42 PM9/2/15
to mongodb-user
On Thursday, 3 September 2015 10:24:42 UTC+10, Fabiano Silos wrote:
Im trying to use HTTP Interfaces (http://docs.mongodb.org/ecosystem/tools/http-interfaces/) on a MongoDB 3.0.4 ReplicaSet and auth=true (using default authentication method: SCRAM-SHA-1) enabled in the config file.

When I try to access http://172.18.1.1:28017/ it asks me a username & password using Basic Authentication HTTP method. I inform a user and a password that is registred in admin database but after few retries I receive HTTP 401 return code with "not allowed" message.

Hi Fabiano,

The MongoDB HTTP Status interface does not support any authentication (as at MongoDB 3.0) and is disabled by default to prevent potential data exposure: http://docs.mongodb.org/manual/core/security-interface/#http-status-interface.

What are you looking to use the HTTP interface for? There is a likely a more suitable solution. Common HTTP/REST interfaces are listed on the documentation page which you've already found (http://docs.mongodb.org/ecosystem/tools/http-interfaces/) . There's also a useful community directory of MongoDB Tools at http://mongodb-tools.com.

Regards,
Stephen
Reply all
Reply to author
Forward
0 new messages