This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Apply the federation_ip_range_blacklist to push and key revocation requests #8821
Merged
Merged
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9e8b37f
Apply the federation_ip_range_blacklist to push.
clokep 2c4d34b
Use the new blacklisted client for identity.
clokep 8741ba4
Remove unused HTTP clients.
clokep 1adfd35
Apply the federation_ip_range_blacklist to key revocation.
clokep 82c067d
Apply the federation_ip_range_blacklist to well-known look-ups.
clokep f559354
Abstract the code to blacklist IP address resolutions.
clokep b22a244
Rename get_http_client to get_federation_http_client.
clokep 2d2b5f4
Add a newsfragment.
clokep 2a8d6c6
Add a ip_range_blacklist setting and fallback to federation_ip_range_…
clokep d5ba7a9
Merge remote-tracking branch 'origin/develop' into clokep/ip-blacklists
clokep 7233d25
Lint
clokep 772ab20
Fix whitespace.
clokep 4a33a09
Merge remote-tracking branch 'origin/develop' into clokep/ip-blacklists
clokep a502bdc
Fix typo.
clokep 67de92d
Clarify wording in the sample configuration.
clokep f4deee7
Merge remote-tracking branch 'origin/develop' into clokep/ip-blacklists
clokep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Apply the `federation_ip_range_blacklist` to push and key revocation requests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -642,17 +642,19 @@ acme: | |
# - nyc.example.com | ||
# - syd.example.com | ||
|
||
# Prevent federation requests from being sent to the following | ||
# blacklist IP address CIDR ranges. If this option is not specified, or | ||
# specified with an empty list, no ip range blacklist will be enforced. | ||
# Prevent outgoing requests from being sent to the following blacklisted IP address | ||
# CIDR ranges. If this option is not specified, or specified with an empty list, | ||
# no IP range blacklist will be enforced. | ||
# | ||
# As of Synapse v1.4.0 this option also affects any outbound requests to identity | ||
# servers provided by user input. | ||
# The outbound requests for federation, identity servers, push servers, and for | ||
# checking key validitity for third-party invite events | ||
# | ||
# (0.0.0.0 and :: are always blacklisted, whether or not they are explicitly | ||
# listed here, since they correspond to unroutable addresses.) | ||
# | ||
federation_ip_range_blacklist: | ||
# This option replaces federation_ip_range_blacklist in Synapse v1.24.0. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I debated how much to mention There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I vote for the latter :) |
||
# | ||
ip_range_blacklist: | ||
- '127.0.0.0/8' | ||
- '10.0.0.0/8' | ||
- '172.16.0.0/12' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this sentence no verb