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

Add allowPrivateKey config option #525

Merged
merged 1 commit into from
Mar 3, 2016
Merged

Add allowPrivateKey config option #525

merged 1 commit into from
Mar 3, 2016

Conversation

benvinegar
Copy link
Contributor

Alternative solution to #508, discussed here

@benvinegar
Copy link
Contributor Author

@mattrobenolt – it wasn't clear to me whether we should refer to this as allowSecretKey or allowPrivateKey. I went with "private" since that's what the error string referred to.

Thoughts?

@mattrobenolt
Copy link
Contributor

Yeah, I like private.

if (dsn.pass)
throw new RavenConfigError('Do not specify your private key in the DSN!');
if (dsn.pass && !this._globalOptions.allowPrivateKey) {
console.dir(this._globalOptions.allowPrivateKey)
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like forgotten debug call

@mattrobenolt
Copy link
Contributor

@benvinegar I'm going back on my decision. We call the parameter sentry_secret, so I think we should adjust the error message and this parameter to allowSecretKey, and have the error message reference secret as well. I forgot that we laterally called it sentry_secret which gets spit back in the API call's error message as well.

See: https://github.com/getsentry/sentry/blob/8.2.1/src/sentry/web/api.py#L205

@benvinegar
Copy link
Contributor Author

Done.

benvinegar added a commit that referenced this pull request Mar 3, 2016
Add `allowPrivateKey` config option
@benvinegar benvinegar merged commit a472b10 into master Mar 3, 2016
@benvinegar benvinegar deleted the allow-secret branch March 3, 2016 19:16
This pull request was closed.
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

Successfully merging this pull request may close these issues.

3 participants