MRF transparency: don’t forget to obfuscate short domains #676

Merged
floatingghost merged 2 commits from Oneric/akkoma:mrf-obfuscation into develop 2024-02-05 08:43:44 +00:00
Member

Now at least one character will be obfuscated for all valid domains (no two neighbouring dots). E.g. for

config :pleroma, :mrf,
  policies: [Pleroma.Web.ActivityPub.MRF.SimplePolicy],
  transparency: true,
  transparency_obfuscate_domains: ["seven.x", "six.xy", "fi.ve", "r.at", "a.a", ".a", "a"],
  transparency_exclusions: [{"ghost.club", "too spoopy"}]

config :pleroma, :mrf_simple,
  reject: [{"seven.x", "A"}, {"six.xy", "A"}, {"fi.ve", "A"}, {"r.at", "A"}, {"a.a", "A"}, {".a", "A"}, {"a", "A"}, {"fully.visible", "not-obfuscated"}, {"ghost.club", "hidden"}]

we get
mrf-obfuscate-demo.webp

Plus a small doc change. Transparency, obfuscation and all other MRF modules are already documented in the cheat sheet, but up until now there was no reference to them in the dedicated MRF document.

Fixes #645

Now at least one character will be obfuscated for all valid domains *(no two neighbouring dots)*. E.g. for ```elixir config :pleroma, :mrf, policies: [Pleroma.Web.ActivityPub.MRF.SimplePolicy], transparency: true, transparency_obfuscate_domains: ["seven.x", "six.xy", "fi.ve", "r.at", "a.a", ".a", "a"], transparency_exclusions: [{"ghost.club", "too spoopy"}] config :pleroma, :mrf_simple, reject: [{"seven.x", "A"}, {"six.xy", "A"}, {"fi.ve", "A"}, {"r.at", "A"}, {"a.a", "A"}, {".a", "A"}, {"a", "A"}, {"fully.visible", "not-obfuscated"}, {"ghost.club", "hidden"}] ``` we get ![mrf-obfuscate-demo.webp](/attachments/4483749d-1a84-4be5-980b-90c12527ddb1) Plus a small doc change. Transparency, obfuscation and all other MRF modules are already documented in the cheat sheet, but up until now there was no reference to them in the dedicated MRF document. Fixes https://akkoma.dev/AkkomaGang/akkoma/issues/645
Oneric force-pushed mrf-obfuscation from f5dd0670ff to 48d95ac8d4 2024-01-31 16:36:15 +00:00 Compare

thanks! the PR looks good, just needs formatting

mix format and this should be fine

thanks! the PR looks good, just needs formatting `mix format` and this should be fine
Oneric force-pushed mrf-obfuscation from 48d95ac8d4 to 3cd882528e 2024-02-02 14:51:14 +00:00 Compare
Author
Member

oops, forgot about mix format; now applied

oops, forgot about `mix format`; now applied
floatingghost merged commit e97d08ee98 into develop 2024-02-05 08:43:44 +00:00
floatingghost deleted branch mrf-obfuscation 2024-02-05 08:43:44 +00:00
Sign in to join this conversation.
No description provided.