Trust the Google Trust Services roots on Android 9 and older before 2028-01-28
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
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
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
SentryRootCertificatesinsrc/Sentry/Platforms/Android/, added in #5991. - Raise the API check in
DefaultSentryHttpClientFactoryfrom 25 to 28, and renameLastAndroidSdkIntWithoutIsrgRootX1to 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS samplePossibly taken A pull request linked to this issue is open or already merged. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6071 · 1 comment ·
Maintainers usually reply within 1 day
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Possibly taken @pcbeingused33 claimed this today. OpenState: Needs Discussion
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
getsentry/sentry-dotnet#6039 · 3 comments ·
Maintainers usually reply within 1 day
-
.NET Platform: Android Task
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
getsentry/sentry-dotnet#6020 · 3 comments ·
Maintainers usually reply within 1 day
-
Move the Blazor WebAssembly sample off the deprecated DevServerPossibly taken A pull request linked to this issue is open or already merged. Open.NET Framework: Blazor
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
getsentry/sentry-dotnet#5906 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Docs MSBuild Needs Docs Update
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-dotnet#5691 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/sentry-dotnet
Similar issues
-
In-car displays show 0 km/h and P while the AV drivesPossibly taken @bazilinskyy claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bazilinskyy/coupled-sim#366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BaryoDev/umbraco-pwa#196 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/fluentui-blazor#5688 ·
Maintainers usually reply within 1 day
-
bug flaky lsp-transport small
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day