sentry-wizard
sentry-wizard copied to clipboard
sentry.properties not added on .gitignore for React Native
trafficstars
Environment
What version are you running 3.23.1
npx @sentry/wizard@latest -s -i reactNative
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:
auth.token=sntryu_375nnn10182qsr46s6r78s725q224rr2ao679120r3no33p9n496s6828o86q2nr // Invalid token.
defaults.org=sentry-sdks
defaults.project=sentry-react-native
defaults.url=https://sentry.io/
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.