misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
9.94k stars 1.35k forks source link

Message Rewrite Facility (MRF) #13363

Open JainWasUsed opened 7 months ago

JainWasUsed commented 7 months ago

Summary

Message Rewrite Facility (MRF) (https://docs.akkoma.dev/stable/configuration/mrf/) と同じようなものを実装する。 管理者に、送受信されるメッセージを書き換えたり破棄したりできる「フレームワーク」や「環境」を提供する。 最近のスパムの波は、例えばAkkomaが既存のどのプラットフォームよりもそのようなものを処理できることを示している。 いくつか例を挙げよう:

RejectNewlyCreatedAccountNotesPolicy: 新規アカウントによる投稿を拒否する https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/activity_pub/mrf/reject_newly_created_account_note_policy.ex KeywordPolicy: キーワードに基づいて投稿を拒否する https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/activity_pub/mrf/keyword_policy.ex HellthreadPolicy: 言及の量に基づいて投稿を拒否する https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex

要するに、管理者に独自のルールを作らせればいいのだ。

--- English --- Implement a similiar Version of a Message Rewrite Facility (MRF) (https://docs.akkoma.dev/stable/configuration/mrf/) Give the Admins a "Framework" or an "Environment" which is able to rewrite or discard incoming or outgoing stuff. Recent Spam Waves showed that for example Akkoma can handle such stuff way better than any other existing Platform. Let me give you some examples:

RejectNewlyCreatedAccountNotesPolicy: Rejects posts from accounts when they are freshly created https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/activity_pub/mrf/reject_newly_created_account_note_policy.ex KeywordPolicy: Rejects posts based on keywords https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/activity_pub/mrf/keyword_policy.ex HellthreadPolicy: Rejects posts based on the amount of mentions https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex

The point is, let Admins implement their own rules...

Purpose

スパムに対抗し、あらゆる種類の攻撃に対抗し、誰もが恩恵を受けるような、よりきめ細かい設定を可能にする。

Fight against Spam, fight against all sort of attacks, allows more fine grained configuration which anyone would benefit from.

Do you want to implement this feature yourself?

perillamint commented 7 months ago

Hello!

I want to inform you that @aumetra is working on FEP for WASM MRF. (pre-draft spec is available at https://hackmd.io/@aumetra/rkXOLyasp)

This will let admins share MRF policies across the Fediverse implementations and apply the MRF policy much more safely.

-- Translated to Japanese using DeepL. It could be horribly wrong / DeepLを使って日本語に翻訳。恐ろしく間違っているかもしれない --

こんにちは!

aumetraがWASM MRFのFEPに取り組んでいることをお知らせします。(プレドラフト仕様は https://hackmd.io/@aumetra/rkXOLyasp にあります)

これにより、管理者はFediverseの実装全体でMRFポリシーを共有し、より安全にMRFポリシーを適用できるようになります。