Skip to content

Commit 36c2f4d

Browse files
committed
ref(relay): Exclude organization id from public relay configs
1 parent e99fcfe commit 36c2f4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sentry/relay/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,16 @@ def get_project_config(project_id, full_config=True):
7474
'piiConfig': _get_pii_config(project, org_options),
7575
},
7676
'project_id': project.id,
77-
'organization_id': project.organization_id,
7877
}
7978

8079
if not full_config:
8180
# This is all we need for external Relay processors
8281
return ProjectConfig(project, **cfg)
8382

83+
# The organization id is only required for reporting when processing events
84+
# internally. Do not expose it to external Relays.
85+
cfg['organization_id'] = project.organization_id
86+
8487
# Explicitly bind Organization so we don't implicitly query it later
8588
# this just allows us to comfortably assure that `project.organization` is safe.
8689
# This also allows us to pull the object from cache, instead of being

0 commit comments

Comments
 (0)