Open evanp opened 2 months ago
I found this thread via !technology@hexbear.net and wanted to re-post my thoughts:
To get around a scenario where the server is compromised and keys get replaced by a bad actor, instances should act like a certificate authority in a SSL/TLS-like trust chain, so that each user could publish and revoke keys for different purposes. Then I might have separate keys for different groups or individual members, kind of like Google+ (remember that?) used to have “circles” and now FB has Friend List or X/Twitter has Circles.
This would create a different issue, though, of how a user should sync their keys between their different devices.
In @trymeouteh says: "Here is a simple way I would like to purpose implimenting E2EE messaging in ActivityPub.
Simply by using OpenPGP. Every single account on activitypub will have a new field that is not visible to the public which is the users Public PGP Key. The instance and other instances can request any users public PGP key with an API command. If the user does not have a PGP key (Meaning the instance software does not support PGP encryption) you will not be able to send encrypted messges.
The users private PGP key will be stored on the server but will be stored with encryption by using the users password. The site admin will be unable to read any users PGP key. The private key decryption will be done client side.
When a messge is being sent to a user, these are the steps under the hood.
https://github.com/w3c/activitypub/issues/449