Is there ReadOnly REST API key to a MongoLab database, or is it always ReadWrite
Asked Answered
B

1

7

In MongoLab you generate an API key and then anyone can access your database using REST API.

Usual case is to use the REST api directly from Ajax clients.

But this gives anyone complete write access to your database, which is security hole.

Is there a way to generate an API key which will give READ ONLY access to the database

Bernardinabernardine answered 28/6, 2012 at 17:45 Comment(0)
H
4

Currently, all API keys have read and write access to the databases associated with the user's account. If you need to expose a read-only API we recommend building your own with one of the many frameworks available like Express or Sinatra.

Historicity answered 29/6, 2012 at 4:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.