Skip to content
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

Should you use private or public DSN? #58

Closed
steverandy opened this issue Apr 10, 2018 · 4 comments
Closed

Should you use private or public DSN? #58

steverandy opened this issue Apr 10, 2018 · 4 comments

Comments

@steverandy
Copy link

Just saw the updated documentation on sentry website for electron integration.

Initally I thought that you must use private DSN. But in the new doc, the example uses public DSN.
Is it ok to use public DSN for main an renderer process? Is there any downside?

@timfish
Copy link
Collaborator

timfish commented Apr 10, 2018

Hi @steverandy, thanks for reporting this.

You should be using the private DSN. Reporting only occurs from the node main process where only the private DSN will work.

The public DSN only works in the browser SDK where some origin checking is performed to limit abuse.

@jan-auer
Copy link
Member

Hi @steverandy, sorry for the confusion. This actually has changed with the last release. Private DSNs will be completely deprecated for all SDKs and removed from Sentry in near future. You can, but don't have to use private DSNs after upgrading to the latest version.

Note that this also requires hosted Sentry. On-premise installations will need to continue to use the private DSN until the next release. I will add a section on this to docs.

@lsmith77
Copy link

lsmith77 commented Feb 1, 2021

https://docs.sentry.io/platforms/javascript/guides/vue/ still refers to __PUBLIC_DSN__ which confused me .. but if I understand this ticket properly .. as a new user of sentry.io, there is no such thing as a private DSN anymore.

@jan-auer
Copy link
Member

jan-auer commented Feb 1, 2021

@lsmith77 This is actually a typo in our docs and should render the actual DSN of your project. You can just use the regular DSN. See getsentry/sentry-docs#2982

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

No branches or pull requests

4 participants