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
Contributor

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 added 2 commits 2024-01-28 22:27:41 +00:00
ci/woodpecker/pr/lint Pipeline failed Details
ci/woodpecker/pr/test unknown status Details
ci/woodpecker/pr/build-amd64 unknown status Details
ci/woodpecker/pr/docs unknown status Details
ci/woodpecker/pr/build-arm64 unknown status Details
f5dd0670ff
More prominently document MRF transparency and obfuscation
And point to the cheat sheet for all other MRF policies
and their configuration details.
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
Contributor

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.