Skip to content

Commit 275e7d0

Browse files
authored
ref: sound SENTRY_DISALLOWED_IPS on the configuration file (#3981)
* ref: sound SENTRY_DISALLOWED_IPS on the configuration file To not mislead people and to prevent time spent scrolling on GitHub issues just to fix why requests to private IP addresses are not working. * chore: commented out for visibility purposes
1 parent 3af221e commit 275e7d0

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

sentry/sentry.conf.example.py

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,64 @@ def get_internal_network():
103103
# AI model prices from various public APIs.
104104
SENTRY_AIR_GAP = False
105105

106+
# As of 25.9.0 (September 2025 release), Sentry enforces tighter restrictions
107+
# of allowed IP addresses for outgoing requests. This is to prevent
108+
# accidentally leaking sensitive information to third parties.
109+
#
110+
# By default, Sentry will not allow requests to private IP addresses.
111+
# You can override this by configuring the allowed IP addresses here.
112+
# Below is the default value, which is a list of IP addresses that are
113+
# considered "private" and "reserved".
114+
#
115+
# SENTRY_DISALLOWED_IPS: tuple[str, ...] = (
116+
# # https://en.wikipedia.org/wiki/Reserved_IP_addresses#IPv4
117+
# "0.0.0.0/8",
118+
# "10.0.0.0/8",
119+
# "100.64.0.0/10",
120+
# "127.0.0.0/8",
121+
# "169.254.0.0/16",
122+
# "172.16.0.0/12",
123+
# "192.0.0.0/29",
124+
# "192.0.2.0/24",
125+
# "192.88.99.0/24",
126+
# "192.168.0.0/16",
127+
# "198.18.0.0/15",
128+
# "198.51.100.0/24",
129+
# "224.0.0.0/4",
130+
# "240.0.0.0/4",
131+
# "255.255.255.255/32",
132+
# # https://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses
133+
# # Subnets match the IPv4 subnets above
134+
# "::ffff:0:0/104",
135+
# "::ffff:a00:0/104",
136+
# "::ffff:6440:0/106",
137+
# "::ffff:7f00:0/104",
138+
# "::ffff:a9fe:0/112",
139+
# "::ffff:ac10:0/108",
140+
# "::ffff:c000:0/125",
141+
# "::ffff:c000:200/120",
142+
# "::ffff:c058:6300/120",
143+
# "::ffff:c0a8:0/112",
144+
# "::ffff:c612:0/111",
145+
# "::ffff:c633:6400/120",
146+
# "::ffff:e000:0/100",
147+
# "::ffff:f000:0/100",
148+
# "::ffff:ffff:ffff/128",
149+
# # https://en.wikipedia.org/wiki/Reserved_IP_addresses#IPv6
150+
# "::1/128",
151+
# "::ffff:0:0/96",
152+
# "64:ff9b::/96",
153+
# "64:ff9b:1::/48",
154+
# "100::/64",
155+
# "2001:0000::/32",
156+
# "2001:20::/28",
157+
# "2001:db8::/32",
158+
# "2002::/16",
159+
# "fc00::/7",
160+
# "fe80::/10",
161+
# "ff00::/8",
162+
# )
163+
106164
################
107165
# Node Storage #
108166
################

0 commit comments

Comments
 (0)