Multiple domains on a project

Hi,

We are a saas company having many hosted domains. We are using one project for each product. Is it possible to define the released domain name with each release?

Whoa! 5 years no answers?! :sweat_smile:

We are having the same issue with JS error tracking. Limiting domain names in project configurations isn’t practical at all. I couldn’t find any solution in documentations, so here’s what I propose.

The rough idea is to include a sign with events:
The hash function is accepts a predefined key (which is assigned to each project) + hostname. The sign is generated server-side and passed to the client. The client will use this sign to configure the SDK. If Sentry backend cannot verify the sign, the event is dropped.

This has many benefits:

  1. We no longer need to statically define a list of domains that are allowed to send the events.
  2. If someone tries to spam our account with a publicly deployed DSN, the effects will be limited to the scope of a handful of domains.
  3. We can automate the key rotation to limit the spam attack surface. This is simply not possible with the static list.