pleroma/lib/pleroma/web/plugs
Lain Soykaf a766335679
fix(federation): do not deliver to instances rejected by SimplePolicy
Public activities went to every inbox, so followers on an instance in
the SimplePolicy reject list still got our posts. With authorized fetch
mode on, signed fetches from those instances were also accepted, unless
the instance was in :instance, :rejected_instances too.

Check the SimplePolicy reject and accept lists for deliveries and signed
fetches, when the policy is enabled. Quarantine keeps its meaning (no
private activities). An inbox without a host no longer crashes.

Based on the Akkoma changes 90c4785b8, ca000f830, 03662501c and d2b0d8647.

Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Co-authored-by: Atsuko Karagi <atsuko.karagi@localhost>
2026-10-27 12:38:18 +04:00
..
rate_limiter Pleroma.Web.Plugs.RateLimiter.Supervisor: dialyzer error 2024-01-31 13:12:56 -05:00
admin_secret_authentication_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
ap_client_api_enabled_plug.ex Allow disabling C2S ActivityPub API 2024-09-16 13:44:36 +02:00
authentication_plug.ex Authentication: convert argon2 passwords, add tests 2024-09-08 05:32:40 +03:00
basic_auth_decoder_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
cache.ex Fix some more typos 2023-12-28 00:17:04 +01:00
digest_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
ensure_authenticated_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
ensure_host_matches_plug.ex EnsureHostMatchesPlug: add missing behavior declaration 2026-07-20 15:18:49 +00:00
ensure_privileged_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
ensure_public_or_authenticated_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
ensure_user_token_assigns_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
expect_authenticated_check_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
expect_public_or_authenticated_check_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
favicon_plug.ex lint 2026-03-05 20:21:19 +00:00
federating_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
frontend_static.ex ensure only pickable frontends can be returned 2025-11-28 15:59:18 +01:00
http_security_plug.ex HTTPSecurityPlug: Fix tests 2024-05-27 22:13:20 +04:00
http_signature_plug.ex fix(federation): do not deliver to instances rejected by SimplePolicy 2026-10-27 12:38:18 +04:00
idempotency_plug.ex IdempotencyPlug: Fix private function name typo 2026-09-03 00:07:25 +02:00
inbox_guard_plug.ex InboxGuardPlug: Add early rejection of unknown activity types 2024-08-30 10:05:09 -04:00
instance_static.ex StaticNotFoundPlug: Move 404 on non-existing static files to a new plug 2026-07-20 15:18:49 +00:00
logger_metadata_path.ex Logger metadata for request path and authenticated user 2024-03-19 12:15:10 -04:00
logger_metadata_user.ex Logger metadata for request path and authenticated user 2024-03-19 12:15:10 -04:00
mapped_signature_to_identity_plug.ex Fail closed on unresolved signed payloads 2026-05-01 12:33:26 +04:00
o_auth_plug.ex perf(oauth): avoid duplicate user preload 2026-07-24 16:01:34 +04:00
o_auth_scopes_plug.ex Switch formatting checks to Elixir 1.15 2024-06-12 15:18:47 -04:00
plug_helper.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
rate_limiter.ex ConfigDB, RateLimiter, RateLimit: Use new type to parse and cast rate limits. 2026-01-06 16:34:17 +04:00
remote_ip.ex Use upstream remote_ip package 2026-05-13 20:04:12 +04:00
set_format_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
set_locale_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
set_user_session_id_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
static_fe_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
static_not_found_plug.ex StaticNotFoundPlug: Move 404 on non-existing static files to a new plug 2026-07-20 15:18:49 +00:00
trailing_format_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
uploaded_media.ex reverse_proxy,endpoint,uploaded_media: add immutable cache-control flag 2026-03-05 20:21:19 +00:00
user_enabled_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
user_fetcher_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
user_is_admin_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
user_is_staff_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
user_tracking_plug.ex Revert "Merge branch 'copyright-bump' into 'develop'" 2023-01-02 20:38:50 +00:00
utils.ex . 2025-03-10 16:48:54 +04:00