musicbrainz: trust the GlobalSign root Tidal's audio CDN uses
- Commit
5c1fd2abdd9041ad3ab20b32526608345282d238- Author
- vayun-mathur <[email protected]>
- When
- 2026-08-20 19:21 UTC (3 months ago)
- Parents
59130bd
Diff
library/network/src/main/assets/ca/globalsign-root-r3.der
diff --git a/library/network/src/main/assets/ca/globalsign-root-r3.der b/library/network/src/main/assets/ca/globalsign-root-r3.dernew file mode 100644index 0000000000..232c4b6121Binary files /dev/null and b/library/network/src/main/assets/ca/globalsign-root-r3.der differ
library/network/src/main/java/com/vayunmathur/library/network/TrustBundle.kt
diff --git a/library/network/src/main/java/com/vayunmathur/library/network/TrustBundle.kt b/library/network/src/main/java/com/vayunmathur/library/network/TrustBundle.ktindex 3fa1512337..1c55f8b0ef 100644--- a/library/network/src/main/java/com/vayunmathur/library/network/TrustBundle.kt+++ b/library/network/src/main/java/com/vayunmathur/library/network/TrustBundle.kt@@ -14,12 +14,19 @@ package com.vayunmathur.library.network * ia*.us.archive.org, served on GoDaddy certs). * - EXTENDED: STANDARD + Microsoft RSA 2017, Apple Root G2/G3, Apple IST CA 2 G1 — for * everysync (Google + Apple CalDAV) and messages non-Signal (Googleapis GTS + FB/DigiCert).+ * - MUSICBRAINZ: STANDARD + GlobalSign Root R3. Tidal splits its audio CDN across two+ * roots — the `sp-*-cf.audio.tidal.com` hosts are Amazon (already in STANDARD) but the+ * `sp-*-fa.audio.tidal.com` hosts serve `*.audio.tidal.com` off GlobalSign, so which+ * CDN a playback manifest happens to name decides whether the download validates. Kept+ * as its own bundle rather than folded into STANDARD so the other STANDARD apps do not+ * silently gain a root only musicbrainz needs. * - SYSTEM: platform default; email/web/vpn dynamic hosts. */ enum class TrustBundle { FIRST_PARTY, STANDARD, EXTENDED,+ MUSICBRAINZ, SYSTEM, ; @@ -53,6 +60,12 @@ enum class TrustBundle { "ca/apple-root-g3.der", "ca/apple-ist-ca2-g1.der", )+ // Tidal's api and its CloudFront audio hosts are Amazon-rooted and already covered by+ // STANDARD, which is why sign-in and playback lookup work without this; only the+ // Fastly-fronted `*.audio.tidal.com` certificate needs the GlobalSign root.+ MUSICBRAINZ -> STANDARD.assetPaths() + listOf(+ "ca/globalsign-root-r3.der",+ ) SYSTEM -> emptyList() } }
musicbrainz/src/main/java/com/vayunmathur/musicbrainz/MusicBrainzApplication.kt
diff --git a/musicbrainz/src/main/java/com/vayunmathur/musicbrainz/MusicBrainzApplication.kt b/musicbrainz/src/main/java/com/vayunmathur/musicbrainz/MusicBrainzApplication.ktindex 69c7bed19d..dfd8b6bcd7 100644--- a/musicbrainz/src/main/java/com/vayunmathur/musicbrainz/MusicBrainzApplication.kt+++ b/musicbrainz/src/main/java/com/vayunmathur/musicbrainz/MusicBrainzApplication.kt@@ -11,10 +11,11 @@ import java.util.Locale class MusicBrainzApplication : Application() { override fun onCreate() { super.onCreate()- // STANDARD rather than FIRST_PARTY: musicbrainz.org and lrclib.net are ISRG, but- // coverartarchive.org redirects to archive.org / ia*.us.archive.org, which are served- // on GoDaddy certs whose root only STANDARD carries.- NetworkClient.init(this, TrustBundle.STANDARD)+ // MUSICBRAINZ rather than STANDARD: musicbrainz.org and lrclib.net are ISRG,+ // coverartarchive.org redirects to archive.org / ia*.us.archive.org on GoDaddy certs,+ // and Tidal's Fastly-fronted audio CDN is GlobalSign - the last of which is the one+ // root STANDARD does not carry.+ NetworkClient.init(this, TrustBundle.MUSICBRAINZ) NewPipe.init(MbDownloader(), Localization.fromLocale(Locale.getDefault())) } }