Skip to content

Conversation

aldy505
Copy link
Collaborator

@aldy505 aldy505 commented Oct 4, 2025

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

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.
Copy link

codecov bot commented Oct 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.49%. Comparing base (da1f546) to head (9644a51).

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.
📢 Have feedback on the report? Share it here.

# 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, ...] = (
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense.

Copy link
Collaborator Author

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants