I'm new in Couchbase and I couldn't find any source regarding my question.
I've intended to develop a mobile application using Cordova(Phonegap). And I've thought Couchbase as a database is a good solution. But I have a question regarding security.
If I use Couchbase Lite PhoneGap plugin, my server IP appears in my "Sync-Gateway-config.json" file. So, people can use REST API to reach all data that were served by their channels. Can't they?
For example a user gets own data by these codes ViewQuery.from('users', 'by_name').key("aUserName"); . If someone reads these codes and gets server address, desing and bucket name then he/she can get all user records.
How can I prevent this case?