-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
Security warning because of insecure HTTP URL in release artifact #3259
Comments
@G00fY2 , thanks for reporting! We'll discuss this internally, we could consider moving our SpotlightIntegration into a separate module, allowing you to completely exclude this module from release builds. |
hey @G00fY2 Is it possible to ignore this warning? It is not used at runtime by default anyway |
@stefanosiano Thanks for answering! Since it is not an build or lint warning, it will only show up in security analysis scans of our app artifacts (like AppSweep). We as developers could ignore it, but it adds noise to the results (currently it is the only non HTTPS url "shipped" in our quite large app project). Also on Android we use code shrinking based on R8. Ideally unreachable/unused code should be removable by the shrinker. |
Could we generate a valid SSL cert for a sentry domain like "spotlight.local.sentry.dev" or similar that points to localhost (and another one for Android pointing to the special adress used for accessing the host PC)? We could then replace all the http URLs with https ones and get rid of the warning. Caveat: this wouldn't work offline if the DNS entry hasn't been cached yet. |
Integration
sentry-android
Build System
Gradle
AGP Version
8.6
Proguard
Enabled
Version
7.6
Steps to Reproduce
We use AppSweep by Guardsquare for security scans of our Android application. When scanning our minified release APK we see a security warning because of an "insecure HTTP URL" shipped in our code. The reported URL is
http://10.0.2.2:8969/stream
.It seems like this was added with the spotlight integration: #3166
We do not use this feature and would like to prevent shipping this URL to avoid issues with security services like e.g. AppSweep or other external security pentests which we regularly need to pass
Expected Result
Sentry SDK does not add insecure HTTP URLs to production code
Actual Result
Minified Android APK contains http://10.0.2.2:8969/stream
The text was updated successfully, but these errors were encountered: