Skip to content

Conversation

Copy link

Copilot AI commented Nov 6, 2025

Sentry 25.9+ enforces URL blocklist validation, causing django.security.RestrictedIPAddress errors for OIDC authentication flows unless explicitly disabled.

Changes

  • Added SENTRY_DISALLOWED_IPS = () to both configuration examples in README.rst
  • Included inline comments explaining the requirement and its purpose

Example

# sentry.conf.py
OIDC_CLIENT_ID = ""
OIDC_CLIENT_SECRET = ""
OIDC_SCOPE = "openid email"
OIDC_DOMAIN = "https://accounts.google.com"

# Required for Sentry 25.9+ to allow OIDC requests to external domains
# This prevents RestrictedIPAddress errors from the URL blocklist
SENTRY_DISALLOWED_IPS = ()
Original prompt

This section details on the original issue you should resolve

<issue_title>django.security.RestrictedIPAddress: (host/IP) matches the URL blocklist</issue_title>
<issue_description>Seems like with Sentry 25.9 it is now required to add

# sentry.conf.py

SENTRY_DISALLOWED_IPS = ()

Let's document this requirements</issue_description>

<agent_instructions>Add this to the documentation. Make sure to only create one commit and use conventional changelog</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 2 commits November 6, 2025 16:16
…25.9+

Co-authored-by: max-wittig <6639323+max-wittig@users.noreply.github.com>
Co-authored-by: max-wittig <6639323+max-wittig@users.noreply.github.com>
Copilot AI changed the title [WIP] Document requirement for SENTRY_DISALLOWED_IPS in Sentry docs: add SENTRY_DISALLOWED_IPS configuration requirement for Sentry 25.9+ Nov 6, 2025
Copilot AI requested a review from max-wittig November 6, 2025 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

django.security.RestrictedIPAddress: (host/IP) matches the URL blocklist

3 participants