Skip to content

Conversation

@chargome
Copy link
Member

This PR adds a new API endpoint that serves Sentry's IP ranges in JSON format.

  • Added new API endpoint at api/ip-ranges
  • Implemented structured JSON response with IP ranges organized by category:
    • Dashboard and API IPs
    • Event Ingestion IPs
    • Outbound Requests IPs
    • Email Delivery IPs
    • Uptime Monitoring IPs
  • Added security headers and caching (12 hours)

cc @bruno-garcia lmk if that works for you

@chargome chargome self-assigned this May 23, 2025
@vercel
Copy link

vercel bot commented May 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2025 10:05am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2025 10:05am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) May 23, 2025 10:05am

@chargome chargome requested review from a team and bruno-garcia May 23, 2025 09:53
@codecov
Copy link

codecov bot commented May 23, 2025

Bundle Report

Changes will increase total bundle size by 274.94kB (1.3%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 11.22MB 15.12kB (0.14%) ⬆️
sentry-docs-client-array-push 9.77MB 259.82kB (2.73%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.75MB -0.0%
../instrumentation.js -3 bytes 1.08MB -0.0%
9523.js -3 bytes 1.05MB -0.0%
../../types/app/api/ip-ranges/route.ts (New) 8.71kB 8.71kB 100.0% 🚀
../app/api/ip-ranges/route.js (New) 6.09kB 6.09kB 100.0% 🚀
../app/api/ip-ranges/route.js.nft.json (New) 331 bytes 331 bytes 100.0% 🚀
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 868.7kB -0.0%
static/chunks/8165-*.js -3 bytes 410.1kB -0.0%
server/app/api/ip-*.js (New) 258.48kB 258.48kB 100.0% 🚀
app-*.json 410 bytes 4.59kB 9.8% ⚠️
static/chunks/app/_not-*.js 4 bytes 889 bytes 0.45%
static/chunks/app/api/ip-*.js (New) 889 bytes 889 bytes 100.0% 🚀
static/LrHZYXcXWwBjwcw0gvT8n/_buildManifest.js (New) 616 bytes 616 bytes 100.0% 🚀
static/LrHZYXcXWwBjwcw0gvT8n/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/c0d83a5NTzQulRHIgyyCR/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/c0d83a5NTzQulRHIgyyCR/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

Thanks! lgtm

@chargome chargome marked this pull request as ready for review May 24, 2025 23:44
@chargome chargome merged commit 08ec065 into master May 27, 2025
15 checks passed
@chargome chargome deleted the cg-add-api-ranges-endpoint branch May 27, 2025 15:07
antonpirker pushed a commit that referenced this pull request Jun 6, 2025
This PR adds a new API endpoint that serves Sentry's IP ranges in JSON
format.

- Added new API endpoint at `api/ip-ranges`
- Implemented structured JSON response with IP ranges organized by
category:
  - Dashboard and API IPs
  - Event Ingestion IPs
  - Outbound Requests IPs
  - Email Delivery IPs
  - Uptime Monitoring IPs
- Added security headers and caching (12 hours)

cc @bruno-garcia lmk if that works for you
@github-actions github-actions bot locked and limited conversation to collaborators Jun 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants