Trust the Google Trust Services roots on Android 9 and older before 2028-01-28

Open
#5,994 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
android, csharp, java
Domain
mobile, security

Research direction

Start with src/Sentry/Platforms/Android/SentryRootCertificates (added in #5991) and the API gate in DefaultSentryHttpClientFactory where LastAndroidSdkIntWithoutIsrgRootX1 is compared to 25. Read #5991 and the cross-signature expiry note in sentry-java's SentryRootCertificates.java TODO(2028-01-28) for the pattern to mirror. First confirm which sentry.io hosts will serve GTS certs; if so, bundle GTS Root R1–R4, raise the check to 28, rename the constant and update its tests. Done means Android 8/9 uploads trust GTS and the Android test project passes.

Written by the indexing model from the issue text.

Description

Platform: Android State: Needs Discussion

In February 2027, sentry.io moves its TLS certificates from DigiCert to Let's Encrypt and Google Trust Services (announcement). #5991 covers the Let's Encrypt part: on Android 7.1 (API 25) and older, the SDK's own uploads to sentry.io trust a bundled ISRG Root X1 as well as the device's roots.

The Google Trust Services (GTS) part has a later deadline, and nothing covers it yet.

Problem

Android only added the GTS roots in Android 10 (API 29). Older devices still accept GTS certificates today, because GTS Root R1 is cross-signed by GlobalSign Root CA, which every supported Android version trusts. That cross-signature expires on 2028-01-28. After that, devices on Android 9 (API 28) and older can't connect to any sentry.io host that serves a GTS certificate, so the events the .NET SDK captures on them stop arriving.

That's every supported Android version below 10: net10.0-android supports API 21 and up, and net11.0-android API 24 and up. It's a much larger group of devices than #5991 covers.

What needs doing

  • Find out which sentry.io hosts will serve GTS certificates. If the ingest hosts only use Let's Encrypt, this may not be needed.
  • Add GTS Root R1–R4 to SentryRootCertificates in src/Sentry/Platforms/Android/, added in #5991.
  • Raise the API check in DefaultSentryHttpClientFactory from 25 to 28, and rename LastAndroidSdkIntWithoutIsrgRootX1 to match.
  • Bump the bundled Java SDK once sentry-java ships the same change. The Java SDK sends native crashes and Java exceptions through its own transport. sentry-java has no issue for this, only a TODO(2028-01-28) left by getsentry/sentry-java#6227.

The fix has to ship well before 2028-01-28, since apps then need to release an update with it and get that onto devices.

Trade-off

Raising the check to API 28 also extends a caveat from #5991 to Android 8 and 9 (API 26–28). On those devices, the SDK's uploads to sentry.io would use the SDK's own trust store instead of the app's Network Security Config, so the app's per-domain trust anchors and certificate pins for sentry.io wouldn't apply to them. Apps that need their own trust rules can still set SentryOptions.CreateHttpMessageHandler.

Dominant language
C#
Stars
775
Forks
262
Avg merge
1d 16h
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-dotnet

All issues in getsentry/sentry-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.