Tap Forms – Organizer Database App for Mac, iPhone, and iPad › Forums › Using Tap Forms › TF5 & IOS Encryption Question
- This topic has 22 replies, 6 voices, and was last updated 8 years, 2 months ago by Sirius.
-
AuthorPosts
-
August 13, 2016 at 2:59 AM #18555
tonytParticipantHi
I am currently running an unencrypted database with a Mac, iPad and iPod. I am using Cloudant sync. I have my encryption key set to the same on all devices as per old iCloud sync requirements. If I now want to encrypt the database for added security how EXACTLY do I go about it and in what order? Will I need to enter my encryption key each time I use TF on any device?
Also, if my database is with Clouding in an unencrypted form, when I set encryption, will the database in the Cloud be encrypted via sync?
Cheers
Tony
August 14, 2016 at 4:44 AM #18593
tonytParticipantBump?
August 14, 2016 at 10:33 PM #18630
BrendanKeymasterThe encryption of the data on your local device has no bearing on the encryption on Cloudant’s servers. I never got a good answer from them about whether or not the data on their multi-tenant servers are encrypted or not. Support said yes, a sales guy said no. So I don’t know what’s up with that.
But in Tap Forms, if you encrypt your database, yes you’ll need to enter the key each time. You can turn on TouchID also.
August 14, 2016 at 10:34 PM #18631
BrendanKeymasteroh, and it doesn’t matter what order you do things in.
Make a backup of your .tapforms document before you encrypt just for safe keeping.
August 15, 2016 at 3:48 AM #18647
tonytParticipantSo if I do encrypt my database the data goes to Cloudant unencrypted?
August 18, 2016 at 2:18 PM #18791
Varun KParticipantYou are correct. I asked a similar question and the encryption you key set in TF5 is just for local encryption only.
August 18, 2016 at 3:00 PM #18792
SiriusParticipantThats not good news. All my data might be unencrypted on Cloudant! Is data encrypted for transmission to Cloudant?
August 18, 2016 at 9:10 PM #18804
BrendanKeymasterThe data is transmitted to Cloudant in an encrypted format of course using standard SSL (https) encrypted data connections. What happens to it after then is up to IBM. Remember, IBM is a huge company. They’ve been around as long as Apple and I’m sure that data security is of utmost importance to them.
I did contact Cloudant and asked them the question and this is what I was told:
Greg H @cloudant.com
Apr 25
Hey Brendan,Data on the multi tenant service is also encrypted.
But then I got a response from a general support query that said:
Cloudant Support support@cloudant.com
Apr 25
Hi Brendan,
On our Multi-tenant clusters data is not encrypted at rest. Encryption at rest is available on Dedicated clusters.Regards,
Josh Stonefield – Cloudant SupportSo I don’t really know what is true and what is not true.
August 20, 2016 at 1:02 AM #18855
Kelvin WilliamsParticipantI queried Cloudant in a Support Case and was told ‘Your account is on a shared cluster (multi tenant cluster) ‘porter’ and we do not provide Cloudant at-rest encryption on shared clusters.’. Data Encryption is important to me so I won’t be using Cloudant even though it was performant.
August 20, 2016 at 3:43 AM #18856
tonytParticipantSo, could TForms be made to encrypt its own data locally, initially on a master machine, and with all devices then able to decrypt and reencrypt before sync?
i.e. A fully encrypted safe data sync all within TapForms, using Cloudant merely to pass the data between devices.August 20, 2016 at 4:18 AM #18857
Kelvin WilliamsParticipantI do encrypt locally on all my devices and data is transmitted to Cloudant securely via SSL but Cloudant hold it in a local database that is not encrypted which is where I have a problem. It doesn’t just sync via Cloudant.
August 20, 2016 at 7:47 AM #18865
Ivan HermanParticipantWhat is sent in clear text and what is not (through SSL, but that is only for the transfer)? Ie, if the form names and field names are sent in cleartext, but the record data is sent encrypted (after all, the database is encrypted locally) then that should be fine. The real issue (for me) if the record data was not sent in encrypted format. (I must admit it would be difficult for me to see why that would be the case.)
I tried to have a look at the Cloudant dashboard where one can “look” into the databases but, well…, it is really not clear what one has to look at. It is using, afaik, MongoDB, i.e., the database is a bunch of JSON objects. I looked at some top level records, most of the values were clearly encoded/encrypted data, although I did find the names of my forms within the database in clear text form. But I could not find a way to reveal any real record data.
It would really be important to find information about the exact state of encryption on the Cloudant server. Again, if the records themselves are there in clear text, even if behind the Cloudant firewall, that is way too dangerous. If this is indeed the case, it is reason for me not to use TP at all and get my money back. (I could never get the nearby sync working, although the Cloudant sync works like charm). But if the records themselves are sent to IBM encrypted, then I do not see any danger.
August 21, 2016 at 10:47 AM #18919
tonytParticipantI REALLY THINK WE NEED A DEFINITIVE ANSWER ON THIS, OR AS ABOVE, A WAY FOR TAPFORMS TO SECURE OUR DATA ON ALL DEVICES AND IN THE CLOUD WITH FULL PROTECTION AS FAR AS POSSIBLE.
August 21, 2016 at 3:14 PM #18936
BrendanKeymasterTony, no need to shout :)
Tap Forms transmits the data using SSL, which is an encrypted communication channel. The data however, as was observed in a response above from Cloudant appears to not be encrypted on the actual Cloudant server. I don’t honestly know why this is the case since it’s not beyond their technology to encrypt the database.
It’s not a MongoDB database by the way, it’s a CouchDB database. Yes, all the documents are stored in JSON format.
With Nearby sync, the data is encrypted during transit also using an SSL connection and then of course since you can individually encrypt the local database, then your data will be most secured that way.
I’ll contact Cloudant to see if there’s any reason why they’re not encrypting their data at rest. As I mentioned before, I got 2 conflicting responses from them.
Remember you can also have multiple database documents in Tap Forms 5. Some that sync over Nearby and some that sync via Cloudant.
You can also easily move your private data to a new document by using the Export and Import Tap Forms Archive commands.
August 21, 2016 at 10:18 PM #18943
tonytParticipantApologies, I really didn’t notice caps lock on. I would never shout at anyone on this forum. Apologies again.
August 22, 2016 at 3:59 AM #18955
Ivan HermanParticipantThanks Brendan for clarifying this with IBM. It is obviously an important issue.
I must say I would be very surprised if IBM did not encrypt the data, or if the user would not have such an option somewhere. As you said in an earlier reply, IBM is an older company than, eg, Apple; one of the statements of Apple is that, afaik, the data is encrypted in such a way, that data on iCloud cannot be decrypted by them even if they wanted to. This day and age IBM should provide a similar option… Anyway.
If the response of IBM is negative, is it a major change in TF to encrypt the record content before sent to Cloudant? Ie, that only encrypted data would be stored on their servers? Or at least offer that as an option for a TF Form? After all, it is perfectly possible for a specific form that one would want to encrypt only 1-2 fields, not the whole thing (a bit like Bento does).
(I did not get the nearby sync working at all, although I followed, with a brand new database, what is in the description. I got, at first setup, a reply on some system error on both my iPhone and my iPad, and none of the sync works. Cloudant is my only option.)
August 22, 2016 at 4:11 AM #18956
tonytParticipantHi
Ivan has put it much more clearly, that is what I meant in one of my posts above.August 22, 2016 at 11:01 AM #18963
BrendanKeymasterI just sent this email off to the Canadian sales rep I had been communicating with over the past few months:
I’ve been getting questions from my customers about how secure their data is on IBM’s Cloudant servers.
Can you clarify or help me to understand what security precautions IBM has for all the customer data that’s stored on your servers?
I once asked Greg H about it and he told me the data was encrypted, but asking the same question of support@cloudant.com tells me that the data is NOT encrypted at rest. What is IBM doing to prevent anyone from getting access to all that data?
My customers have also sent messages to Cloudant Support and they’re being told that the multi-tenant servers do not encrypt their data.
In this day and age of needing high security on any cloud service, how can this be? I didn’t think that was possible for a big company like IBM to provide a cloud service that didn’t provide a secure place for their customer’s data to reside. Am I being misinformed here?
Is there a way for the user to enable encryption of their databases in their Cloudant dashboard?
The reply I’ve received so far was just a forward to another rep asking to confirm things.
Tap Forms already provides encryption on the local device storage. I’m going to ask Couchbase to see if there’s a way I can hook into the replication engine to see if I can pre-encrypt certain data before it’s sent to Cloudant and then unencrypted it on the other side. You would have to setup a sync password that’s identical on all devices in order for that to work of course. I don’t want to have to encrypt the data twice on the local device though.
August 22, 2016 at 11:12 AM #18965
BrendanKeymasterOk, so it turns out that there is a way I can hook into the replication engine to perform a transformation on the data before it’s sent to the server and after it comes down from the server. I didn’t know about that before. But I found this in the Couchbase Lite headers:
/** Optional callback for transforming document bodies during replication; can be used to encrypt documents stored on the remote server, for example. **/
So I’m going to dig into that to see what I can get going. Be patient though since it might take a while for me to write the proper code to do this. Fortunately though Couchbase has an example unit test that does exactly this. But it will still take some time for me to work on it. But it’s looking good so far.
August 23, 2016 at 3:02 AM #18988
BrendanKeymasterFYI, I’ve managed to write an encryption routine which will encrypt the values stored in a record during the upload to Cloudant and decrypt them when downloading to the devices. So I’m making progress. I may not be able to encrypt the attachments though because the amount of memory required to do that might be too large for this specific technique, especially on the iOS devices.
August 23, 2016 at 5:35 AM #18990
Ivan HermanParticipantBrendan,
tastes/needs may differ but, at least as far as I am concerned, not to encrypt the attachment is an acceptable compromise.
Thanks
August 23, 2016 at 9:44 AM #18996
BrendanKeymasterSo here’s another concern I have about this.
What password do I use to encrypt the data? Right now for my testing I’m just using the “Sync Password” available on the Nearby Sync settings screen. I was thinking that I could put that button also on the Cloud Sync settings screen. It could be the same password used for Nearby sync. The Nearby sync password is used just for authentication of the connection between devices.
I was also thinking that I could just simply use the user’s Cloudant login password as the key for encrypting the data stored on the server. OR I could use the local encryption key used when encrypting the database.
The problem is with any of these approaches, if you were to change the key on the local device, you would have no choice but to delete the database on Cloudant and start over the sync again so that the data in Cloudant could be encrypted using the new key. But now I have to tell people somewhere that this is what has to happen. If they don’t do this, sync will not function anymore and I’ll get support requests asking why. It just complicates things.
But I did just receive a response from someone at Cloudant who said this:
We wont offer encryption for any of the old Multi-tenant clusters. However, in a couple of weeks we will be offering a couple of new multi-tenant plans that will include encryption at rest as a default.
I don’t have any of the details, but they said they’d let me know when they could. It would be great if I didn’t have to worry about this because it opens up a whole new avenue for hurt and confusion. But I want to do what’s best for the customer of course, so that’s why I’ve been working on this.
August 23, 2016 at 12:18 PM #19004
SiriusParticipantEncryption provided by Cloundant sounds great. Hope there is an option to create your own encryption key instead of using one from Cloudant.
-
AuthorPosts
You must be logged in to reply to this topic.