Git Product home page Git Product logo

Comments (2)

cinnamon-bun avatar cinnamon-bun commented on July 23, 2024

Problem

The above protocol is safe against MitM, but once both peers know which workspaces they have in common they will start syncing them in plaintext with each other. At that point a MitM will observe the actual workspace address (and actual data).

An example attack is: "Hey everyone, use my cool pub https://totally-safe-pub.com. It definitely is not just a proxy that forwards your requests to an actual pub in order to learn the names of your workspaces!! Look it's https, very safe"

Solution

Right now when our peers talk, in general, they don't authenticate or know the identity of each other.

I think we need to do a secure key exchange like secret-handshake which identifies the peers to each other.

This means each peer needs to have a keypair.

For regular peers: I think it's ok for secret-handshake to re-use the same author keypair across multiple devices?

For pubs: we'll have to generate keypairs for them, and... trust on first use, or add them into the pub URL?

BTW, I don't want to start treating pubs as part of the human social graph like SSB does. Earthstar doesn't even have a social graph actually!

from earthstar.

cinnamon-bun avatar cinnamon-bun commented on July 23, 2024

Other solutions

Once we have these two...

  • #7 Invite Only Workspaces (limited people can write to a workspace)
  • #11 or #49 Encrypted Documents (limited people can decrypt/read)

...it won't matter as much if random people learn your workspace address.

In the long run that's probably a better and safer approach -- encrypt the actual data instead of just encrypting the transport using secret-handshake.

Also, to clarify: in the proposed algorithm, a MitM can only learn of the workspaces the two peers have in common, not the ones that are unique to one side.

from earthstar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.