I'd like to implement a RoR application that stores sensitive information in a database that is hosted by an untrusted third party. Essential functionality includes:
1) Database contents encrypted
2) Secure user session support under a RESTful paradigm
3) Database hosted by third party on the cheap.
4) Keys used to decrypt DB contents for client and server are protected from examination by third party web host admin.
I would use SSL for encrypted server-client communication. Can I implement a solution that keeps even me from being able to view stored user data, with the exception of data elements necessary to establish a RESTful user session? Can code that resides on the third party server be protected or obfuscated?
As a developer, is there a design implementation that allows me to honestly assure users that they are the only ones who can decrypt and view their data? I've got the feeling that the answer here is "no," but I thought I might ask others before admitting defeat.
Please comment on best practice (or your method) using RoR and RESTful architecture.
Thanks!