kitsune-soc / kitsune

🦊 (fast) ActivityPub-federated microblogging
https://joinkitsune.org
Other
303 stars 19 forks source link

Create system actor #318

Open perillamint opened 1 year ago

perillamint commented 1 year ago

Pitch

Currently, Kitsune does not have any "system account". But in the future, the system actor is required to

Note that the system can have multiple actors for every "purpose".

perillamint commented 1 year ago

More questions to be addressed:

  1. In case of Mastodon Migration, how we should treat Mastodon's special (id: -99) service account?
    1. It can safely deleted after the migration by broadcasting delete object to every server we know.
    2. Do not create a default service account and reuse Mastodon's one.
  2. Unlike Mastodon, Kitsune stores actor's private key in the users table. It means, in the current schema, Kitsune is unable to have service accounts but treat them as real "user". Schema refactoring can give more clean implementation, but will need some work.
aumetra commented 1 year ago

A schema refactor was actually something I thought about for a while, especially in relation to #201, where we probably want the ActivityPub-specific things, like keypairs, stored away in separate tables.

If you have any ideas on a potential schema redesign, please let me know!