how to make secure calls from client to couchbase server?
Hi,
i have a client written in C# (for unity) which connects through the internet to a server.
currently, from the client i make calls for the server (and put bucket name and password there.. as well some read and store calls).
if anyone decode the client he now have access to my database.
what solution is there to this problem? i am sure that this is not a new issue and there is a simple answer, yet i was not able to find such answer.
Thanks
Thank for your response.
Maybe i was not clear, the client is something that i would distribute.
thus i cannot have the client and the server share the same ip or firewall.
from what i understand if i want to build a client (some application that would be distributed, like a phone app etc)using couchbase is not a good idea. instead i should build some web server will have connection to the couchbase server but the client itself would only have access to the webserver?
is that correct?
thank you for your help!
You are correct. Also, I have discussed the issue with others at Couchbase and we do plan on addressing this issue to make things easier on developers.
Thank you!
a short follow up question, how do i disconnect the client from the couchbase?
could not find explicit command, i did find a references that u can destroy the client and thus disconnect the connection, is that so? also if im using web service as a client, once the service method expired (after returning value) the method will expire and so will the connection to the couchbase server?
is that correct?
Thank you for your help, Truly appreciated!
I'm not a .NET expert, but there doesn't appear to be a function that needs to be called to close the connections and looks like when the object goes out of scope the connections are closed in the destructor.
Couchbase is supposed to accessed behind a firewall so we do not provide any encryption mechanism for requests at the moment. I recommend that you run your database and application behind that firewall and open up the necessary ports to access that application. In the future we will add support for encryption of requests/responses from Couchbase.