lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Use a single RSA keypair for all users and communities

Open Nutomic opened this issue 3 months ago • 2 comments

Requirements

  • [X] Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • [X] Did you check to see if this issue already exists?
  • [X] Is this only a feature request? Do not put multiple feature requests in one issue.
  • [X] Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • [X] Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

Lemmy currently creates and stores a separate RSA keypair for each user and each community. These keys are used to sign activities which are sent between instances. Now Soapbox had the idea to get rid of all these separate keys, and only use a single keypair for the entire instance.

This makes a lot of sense because all these keys take a lot of space, and are really not necessary. Like Soapbox, we could simply use the same keypair for every user and every community.

Nutomic avatar Mar 13 '24 13:03 Nutomic

So this would be moved to local_site then correct?

dessalines avatar Mar 14 '24 14:03 dessalines

We already have a keypair for the instance actor which is stored in site table. So we can use that same keypair for all users and communities.

Nutomic avatar Mar 15 '24 09:03 Nutomic