-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
ref: sound SENTRY_DISALLOWED_IPS on the configuration file #3981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3981 +/- ##
===========================================
+ Coverage 88.83% 99.49% +10.65%
===========================================
Files 3 3
Lines 197 197
===========================================
+ Hits 175 196 +21
+ Misses 22 1 -21 ☔ View full report in Codecov by Sentry. |
# accidentally leaking sensitive information to third parties. | ||
# By default, Sentry will not allow requests to private IP addresses. | ||
# You can override this by configuring the allowed IP addresses here. | ||
SENTRY_DISALLOWED_IPS: tuple[str, ...] = ( |
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.
Is this list maintained on sentry repository and once you remove an IP from here you can send a request to that removed IP?
SENTRY_DISALLOWED_IPS
is a little misleading name IMHO.
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.
Is this list maintained on sentry repository and once you remove an IP from here you can send a request to that removed IP?
Yes.
SENTRY_DISALLOWED_IPS
is a little misleading name IMHO.
cc @oioki
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.
Maybe it's better for self-hosted to maintain a SENTRY_OUTGOING_ALLOWED_IPS
list and remove the items from getsentry/sentry list?
Not that IANA is going to change this list :) It has better readability for users to maintain allowed IPs.
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.
That makes sense.
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.
Just realized, I don't think it's possible since it's a tuple and we're gonna have a lot of utils function to figure out which IP address belongs to which IP subnet...
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.
One example: #3957