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
Owner

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
Some checks failed
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test unknown status
ci/woodpecker/pr/build-amd64 unknown status
ci/woodpecker/pr/docs unknown status
ci/woodpecker/pr/build-arm64 unknown status
to 48d95ac8d4
Some checks failed
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test unknown status
ci/woodpecker/pr/build-arm64 unknown status
ci/woodpecker/pr/build-amd64 unknown status
ci/woodpecker/pr/docs unknown status
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
Some checks failed
ci/woodpecker/pr/lint Pipeline failed
ci/woodpecker/pr/test unknown status
ci/woodpecker/pr/build-arm64 unknown status
ci/woodpecker/pr/build-amd64 unknown status
ci/woodpecker/pr/docs unknown status
to 3cd882528e
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build-amd64 Pipeline was successful
ci/woodpecker/pr/build-arm64 Pipeline was successful
ci/woodpecker/pr/docs Pipeline was successful
2024-02-02 14:51:14 +00:00
Compare
Author
Owner

oops, forgot about mix format; now applied

oops, forgot about `mix format`; now applied
floatingghost deleted branch mrf-obfuscation 2024-02-05 08:43:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma!676
No description provided.