Hi,
Just wondering if there is a common design pattern for the following with regards to firestore,
I have multiple users, with firestore rules to control what they can and cannot read. Is there a way I can encrypt sensitive data belonging to a user such that if the document was accidentally delivered to the wrong user, say due to a bad rule, the wrong user would not be able to read the values? Ideally, each user would have their own key, used to encrypt the their uploaded data, but with the key stored separately. I don't need/want end-to-end encryptions, in fact, the backend should have access to this store of keys. Just the idea being that as long as the key was not compromised, data uploaded by the user could not accidentally be leaked.