-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
sentry.properties not added on .gitignore for React Native #586
Comments
Good catch! I agree that whatever file we create that contains a secret should be .gitignore'd. This is in line with our SDK wizard specification. Are you interested in opening a PR for this? cc @krystofwoldrich thoughts? |
Let's do it, thanks! |
I've just tried the new Sentry integration with
so far I've removed the auth token from the file and checked it in Git. |
@zubko I'm lacking a bit of context in ReactNative land but I agree that having all paramers in one file isn't ideal. IIRC we discussed this before @krystofwoldrich do you remember specifics? |
Thank you @zubko for the message, as @Lms24 mentioned we are aware of this, and will improve the experience in the future. The best is to set |
Environment
What version are you running
3.23.1
Steps to Reproduce
I have opened this issue to discuss if it's ideal or not to add sentry.properties to git ignore since it contains an authentication token.
After running the wizard and building the app, I noticed that sentry.property was created under both iOS/Android and that no git ignore rule was applied for it, so users could commit it without noticing it.
This file contains the user auth token:
Expected Result
This file should be included on gitignore and sentry.properties not tracked by git.
What you thought would happen.
Actual Result
sentry.properties is tracked by git.
The text was updated successfully, but these errors were encountered: