fireproof
fireproof copied to clipboard
key mismatch on connect
We need to decide on the best practice for what to do when a user connects to a cloud database for the first time but already has local data. The local data will have a different key from the cloud database, so it throws an error.
The current best option I can think of is to have the remote connect to a new database, and then copy the events from the local into the new database. But without proper API consideration this could end up unexpectedly sharing user data with a shared cloud instance.
defer to remote key should be the default option, but it should be document that security-concious apps should configure it otherwise