Skip to content

Invite over Internet #1207

@RangerMauve

Description

@RangerMauve

Description

We need a way to add members to a project when they aren't on the same wifi network but have a means to send each other messages through whatsapp or email.

Some tradeoffs to consider:

  • must work even if both users are not online at the same time
  • must prevent evesdroppers from reading secrets
  • should allow the invited peer to exchange with an archive server after the invite process.

Proposed flow:

  • Invitee wants to join a project
  • They generate a keypair used for sealed box encryption
  • They make an "invite request link" with the public key, their device ID, and a name
  • They send the link to the invitor
  • The invitor clicks the link which opens the comapeo app to ask if they want to add this person and to choose a role to offer them.
  • On confirmation, the invitor makes an "invite response link" which contains project keys, archive server info, name, and description; all encrypted for the invitee's public key
  • The invitor adds the device id with the chosen role and exchanges with the archive server
  • The invitor sends the link to the invitee
  • The invitee clicks the link and opens the app to a page confirming the project join
  • They use the keys to init the project and perform an initial sync

Tasks

TODO pending initial review

  • [ ]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions