]> cat aescling's git repositories - mastodon.git/commit
Add CLI task for rotating keys (#8466)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 26 Aug 2018 18:21:03 +0000 (20:21 +0200)
committerGitHub <noreply@github.com>
Sun, 26 Aug 2018 18:21:03 +0000 (20:21 +0200)
commitcabdbb7f9c1df8007749d07a2e186bb3ad35f62b
tree68e2ea8b16dc6fbf3d63f09b3301a0c4ad8edc39
parent8adf485c0fc553fafc6af70144c3f3954dac2307
Add CLI task for rotating keys (#8466)

* If an Update is signed with known key, skip re-following procedure

Because it means the remote actor did *not* lose their database

* Add CLI method for rotating keys

    bin/tootctl accounts rotate [USERNAME]

Generates a new RSA key per account and sends out an Update activity
signed with the old key.

* Key rotation: Space out Update fan-outs every 5 minutes per 1000 accounts

* Skip suspended accounts in key rotation
app/lib/activitypub/activity/update.rb
app/lib/activitypub/linked_data_signature.rb
app/lib/request.rb
app/services/activitypub/process_account_service.rb
app/workers/activitypub/delivery_worker.rb
app/workers/activitypub/update_distribution_worker.rb
lib/cli.rb
lib/mastodon/accounts_cli.rb [new file with mode: 0644]
lib/mastodon/emoji_cli.rb
lib/mastodon/media_cli.rb