This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Implement a blacklisting endpoint (instead of a blacklisting reactor and agent wrapper) #8860
Labels
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
See #8821 (comment) for background on this.
Currently to apply an IP range blacklist in Synapse it is necessary to wrap the the reactor with
BlacklistingReactorWrapper
and then the agent withBlacklistingAgentWrapper
. Ideally all of this logic could be encompassed in a customBlacklistingHostnameEndpoint
which would implement similar logic toHostnameEndpoint
, but apply the blacklisting logic to it (the necessary logic is almost identical to what is currently in_IPBlacklistingResolver
).This should allow creating an agent with
Agent. usingEndpointFactory
.Some things to note:
ProxyAgent
(I suspect it should be an either or sort of thing, but not this should be further investigated).SimpleHttpClient
andMatrixFederationClient
makes this a bit more difficult.RedirectAgent
which may or may not be involved here.The text was updated successfully, but these errors were encountered: