Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailbox: Sending while peer is offline with a storage peer #26

Open
okdistribute opened this issue Apr 27, 2021 · 2 comments
Open

Mailbox: Sending while peer is offline with a storage peer #26

okdistribute opened this issue Apr 27, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed Mailbox

Comments

@okdistribute
Copy link
Collaborator

okdistribute commented Apr 27, 2021

We are using @localfirst/relay, it would be great to have the ability to use a storage peer that stores arbitrary automerge documents, given some documentId

@okdistribute okdistribute added enhancement New feature or request Mailbox labels Apr 27, 2021
@okdistribute okdistribute changed the title Sending while offline Sending while offline: Backend Apr 27, 2021
@okdistribute okdistribute changed the title Sending while offline: Backend Mailbox: Sending while offline with a journaled relay Apr 27, 2021
@okdistribute okdistribute added help wanted Extra attention is needed and removed stretch labels May 17, 2021
@okdistribute okdistribute changed the title Mailbox: Sending while offline with a journaled relay Mailbox: Sending while peer is offline with a storage peer May 17, 2021
@okdistribute
Copy link
Collaborator Author

okdistribute commented Jun 21, 2021

From @ept

for your purposes, I think the short-term options are:

  1. encrypt individual field values before putting them in the automerge doc (this works as long as it's ok for the keys and structure of the document to be unencrypted, and only the field values to be encrypted); or
  2. nest an encrypted automerge doc inside an unencrypted one. the inner document contains your regular unencrypted data; then you take the changes to the inner document, encrypt and base64-encode them, and then add those encrypted strings to a list of strings in the outer document. the outer document can then sync as usual. to decrypt the document, take all the strings in the outer doc, base64-decode and decrypt, and then apply the resulting changes to an empty doc

@okdistribute
Copy link
Collaborator Author

Also see: https://github.com/HerbCaudill/robopeer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed Mailbox
Projects
None yet
Development

No branches or pull requests

1 participant