Skip to content

feat(platform): Add endpoint for serving Sentry ip-ranges #13819

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

Merged
merged 1 commit into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions app/api/ip-ranges/ip-ranges.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"data": {
"dashboard": {
"sentry_io": [
"35.186.247.156/32"
],
"us_sentry_io": [
"35.186.247.156/32"
],
"de_sentry_io": [
"34.36.122.224/32",
"34.36.87.148/32"
]
},
"event_ingestion": {
"apex_domain": [
"35.186.247.156/32"
],
"organization_subdomains": {
"us": [
"34.120.195.249/32"
],
"eu": [
"34.120.62.213/32",
"130.211.36.74/32"
]
},
"legacy": [
"34.96.102.34/32"
]
},
"outbound_requests": {
"us": [
"35.184.238.160/32",
"104.155.159.182/32",
"104.155.149.19/32",
"130.211.230.102/32"
],
"eu": [
"34.141.31.19/32",
"34.141.4.162/32",
"35.234.78.236/32"
]
},
"email_delivery": [
"167.89.86.73",
"167.89.84.75",
"167.89.84.14"
],
"uptime_monitoring": [
"34.123.33.225",
"34.41.121.171",
"34.169.179.115",
"35.237.134.233",
"34.85.249.57",
"34.159.197.47",
"35.242.231.10",
"34.107.93.3",
"35.204.169.245"
]
}
}
17 changes: 17 additions & 0 deletions app/api/ip-ranges/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// these ranges are a copy of docs/security-legal-pii/security/ip-ranges.mdx
import ipRanges from './ip-ranges.json';

// 12h
const CACHE_DURATION = 12 * 60 * 60;

export function GET() {
const headers = new Headers({
'Content-Type': 'application/json',
'Cache-Control': `public, max-age=${CACHE_DURATION}`,
'X-Content-Type-Options': 'nosniff',
'X-Frame-Options': 'DENY',
'X-XSS-Protection': '1; mode=block',
});

return Response.json(ipRanges, {status: 200, headers});
}
Loading