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

Expose hostnameVerifier in the Unity SDK settings #1513

Closed
rodolfoBee opened this issue Dec 11, 2023 · 1 comment · Fixed by getsentry/sentry-java#3150
Closed

Expose hostnameVerifier in the Unity SDK settings #1513

rodolfoBee opened this issue Dec 11, 2023 · 1 comment · Fixed by getsentry/sentry-java#3150
Labels
Feature New feature or request

Comments

@rodolfoBee
Copy link
Member

rodolfoBee commented Dec 11, 2023

The solution for errors like:

The application code defines a custom HostnameVerifier or ‘X509HostnameVerifier’ that may not sufficiently validate the hostnames. This could make the application vulnerable to network attacks.

Example

Is to set hostnameVerifier in the Android SDK. This requires disabling android native support and manually initialising the Android SDK with this option. Which is a troublesome process that is prone errors and misconfigurations.

Ideally this option can be set in the Unity SDK and passed down to the underlaying Android SDK.

@bitsandfoxes
Copy link
Contributor

Currently, there is no straight forward way to access this from the Unity SDK as this is not getting read from the manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants