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

android: Trust user-supplied CAs, take 2 #671

Merged
merged 1 commit into from
May 14, 2024
Merged

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented May 14, 2024

The previous attempt at this (cffb112, #474) set the configuration used by the HTTP implementation from the Android SDK, and by some third-party HTTP implementations. But in the bulk of the app's code, we use the HTTP implementation from the Dart standard library, and by default that does not consult the Android configuration.

Happily, Flutter has an opt-in feature to apply the same configuration to the Dart standard library:
https://chat.zulip.org/#narrow/stream/48-mobile/topic/flutter.3A.20user-added.20certs/near/1716845

So use that.

Fixes: #461

The previous attempt at this (cffb112, zulip#474) set the configuration
used by the HTTP implementation from the Android SDK, and by some
third-party HTTP implementations.  But in the bulk of the app's code,
we use the HTTP implementation from the Dart standard library, and
by default that does not consult the Android configuration.

Happily, Flutter has an opt-in feature to apply the same configuration
to the Dart standard library:
  https://chat.zulip.org/#narrow/stream/48-mobile/topic/flutter.3A.20user-added.20certs/near/1716845

So use that.

Fixes: zulip#461
@gnprice gnprice requested a review from chrisbobbe May 14, 2024 03:01
@chrisbobbe chrisbobbe merged commit 9b2a5f2 into zulip:main May 14, 2024
1 check passed
@chrisbobbe
Copy link
Collaborator

Thanks, LGTM! Merged.

@gnprice gnprice deleted the pr-user-ca branch May 14, 2024 17:08
@gnprice
Copy link
Member Author

gnprice commented May 16, 2024

Reverted in d015484 because this caused a crash at startup, in release mode only:
#461 (comment)

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.

Trust user-added CAs on Android
2 participants