Simple server side database in Coronium

Is there a way to make a mongoDB collection only editable from server side?

Also, where are the scripts for functions like coronium.mongo:getObject() located? I’d like to be able to edit these if need be.

MongoDB auth can be configured however you like. Take a look at https://docs.mongodb.com/manual/core/authentication/ for setting up authentication. That page has a link that also describes setting of authorization. Although the Mongo database should only be exposed through the API so you should be able to restrict read and write from there.

The MongoDB module is located at /usr/local/coronium/lib/mod_mongo.lua. However I would strongly advise against editing those files directly as you will break your upgrade path going forward. If you want added functionality I would suggest using that module as a guide and creating your own.  That is what I did to add Redis functionality to my instance.

MongoDB auth can be configured however you like. Take a look at https://docs.mongodb.com/manual/core/authentication/ for setting up authentication. That page has a link that also describes setting of authorization. Although the Mongo database should only be exposed through the API so you should be able to restrict read and write from there.

The MongoDB module is located at /usr/local/coronium/lib/mod_mongo.lua. However I would strongly advise against editing those files directly as you will break your upgrade path going forward. If you want added functionality I would suggest using that module as a guide and creating your own.  That is what I did to add Redis functionality to my instance.