GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(mobile): trust user-installed Android CA certificates by juliusmarminge · Pull Request #25730 · pingdotgg/t3code Conversation
|
| Fixture | Result and runtime evidence |
|---|---|
| Base, private CA installed | Chrome succeeds; T3 discovery fails; TLS-observed retry. |
| Head, private CA installed | HTTPS pairing, WSS 101 and response frames; fresh read and reconnect/read pass. |
| Head, private CA removed | Retained reconnect rejects after process restart; fresh discovery rejects. |
| Head, system CA, private CA absent | Pairing and fresh read over HTTPS/WSS pass with only that route saved. |
| Head, cleartext | HTTP pairing and fresh read over HTTP/WS pass with only that route saved. |
Full evidence index and timelines, fixture matrix, sanitized transport observations, proxy driver, and reproduction drivers. Pairing credentials are masked in recordings.
No render paths changed; the comparison demonstrates connection behavior, with the changed connection state and provider response visible. Independent WSS rejection with the private CA absent could not be reached because HTTPS descriptor preflight rejects first. A first private-CA refresh encountered a transient SocketReadError; subsequent fresh reads and reconnect/read passed. A separate release APK was not run. iOS is unaffected by this Android-only plugin change.
After merging main, the primary agent repeated a provider refresh successfully on the isolated system-CA route. Final integrated client capture. The Android plugin/config bytes remain identical to the captured native-fix commit. Final integrated source: 235e42ec4a. Independent proof audit: sufficient.
Final scoped check log · Final cached native-fingerprint check.
Implementation: Claude Opus 5.5 through Claude Code; triage, integration and proof: GPT-6.1-sol through Codex in T3 Code.
Taken over from @juliusmarminge's automated issue flow. The plugin shape was already right and is kept. The plugin no longer sets android:usesCleartextTraffic: with minSdk 24, Android ignores it once a network security config exists, and the config's base-config already permits cleartext (C1 below shows HTTP/WS still work). A short note in docs/user/remote-access.md explains installing a private CA on Android. No tests: a plugin unit test would only restate the XML. The proof is on-device. The "both manifest attributes" line above describes the original commit; only android:networkSecurityConfig remains.
Real Android app on a pooled Pixel 9, Android 16 (API 36), portrait 1080×2424, light theme, font scale 1.0. Status-bar time is masked and pairing codes are redacted. Builds: base 71ba6b374c (native fingerprint ed36a9cc) vs head bbb9042e92 (0b110f6b). One isolated backend with synthetic data serves every row. The final head 9e3e0af976 adds only docs and a merge of main, with the same plugin and config.
| Row | Build | Result | Recording | Transcript |
|---|---|---|---|---|
| B1: private CA in user store | base | Rejected at TLS (certificate unknown), full error shown | B1.mp4 | B1-transcript.txt |
| U1: same CA | head | HTTPS pairing, WSS 101, live read; forced socket close, then automatic reconnect with a new ticket and upgrade | U1.mp4 | U1-transcript.txt |
| N1: CA removed, app relaunched | head | Same endpoint rejected at TLS | N1.mp4 | N1-transcript.txt |
| S1: public (Let's Encrypt) cert, no private CA | head | HTTPS, WSS 101, live read | S1.mp4 | S1-transcript.txt |
C1: plain http:// |
head | HTTP, WS 101, live read, no TLS redirect | C1.mp4 | C1-transcript.txt |
Before (left, B1): the base app rejects the private-CA endpoint. After (right, U1): the head app is connected.
What else changed: no rendered UI code changed. The two sides differ only in connection outcome and the screen it leads to (pairing sheet vs environment details), endpoint text, and synthetic canary names. The private root was regenerated for the B1/N1 retakes; U1 used the original. N1 has two labelled cuts and rejects at the HTTPS preflight, so a separate WSS rejection is never attempted. All captures use development APKs. native-artifact-proof.txt shows the APK's merged manifest and its resolved system + user + cleartext policy, with no debug overrides.
Full evidence index with narrated timestamps · fixture matrix · scripts: generate-certs.sh, proxy.mjs, seed-and-canary.mjs, pair-row.mjs, prepare-public-cert.sh, http-observer.mjs
expo prebuild is idempotent. Nothing under node_modules declares its own network security config. The native fingerprint includes the plugin, so the dev client rebuilds.vp run check:changed passes on 9e3e0af. CI: 31/31 green on 9e3e0af. CodeRabbit: no blocking issue. Macroscope: needs human approval (trust boundary).🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Android apps targeting API 24+ ignore CAs in the user store, so an environment behind a private CA that Chrome loads fine failed in Add environment with a transport error. The cleartext plugin now also writes a network security config that trusts system and user CAs and keeps cleartext permitted, since Android ignores usesCleartextTraffic once a config exists. Fixes #5639 Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Needs Human Approval Macroscope's review found this PR requires human approval — Android now trusts user-installed CAs app-wide while preserving existing cleartext support. Human review must confirm that this broader default trust boundary is intended, rather than restricting private-CA trust to selected endpoints. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Define and apply Android network security apps/mobile/plugins/withAndroidNetworkSecurityConfig.cjs |
The plugin defines system and user trust anchors, updates the manifest to reference the network security configuration, and writes the XML resource. |
Activate and document the network security plugin apps/mobile/app.config.ts, apps/mobile/plugins/withAndroidCleartextTraffic.cjs, docs/user/remote-access.md |
The Expo plugin list now uses the new network security plugin. The previous cleartext-only plugin is removed. The guide explains that Android users must install a private CA as a CA certificate. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers: t3dotgg
9e3e0The Android configuration adds user-installed CA trust while retaining cleartext support. No merge-blocking issue was identified.
Explanation
Issue #5639 requires Android HTTPS traffic to trust user-installed CA certificates and retain cleartext support. withAndroidNetworkSecurityConfig.cjs writes network_security_config.xml with system and user trust anchors and cleartextTrafficPermitted="true". It sets android:networkSecurityConfig and registers the plugin in apps/mobile/app.config.ts. The PR reports generated-config checks, APK inspection, runtime private-CA pairing, and cleartext verification. The added Android guidance is consistent with the issue.
Explanation
The changes remain within issue #5639. The implementation replaces the existing Android cleartext plugin with the Android network security plugin. The plugin changes only the Android manifest and XML resource. The added documentation addresses private-CA setup for the Android app. No unrelated platform or product behavior changes are shown.
Explanation
The pull request description includes all required sections: Problem, Change, Scope and approval, and Verification. It identifies the linked issue, explains the focused Android configuration change and its app-wide effect, documents validation commands and runtime evidence, includes before/after screenshots and recordings, and states known limitations and unverified cases.
Comment @coderabbitai help to get the list of available commands.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Taking over this one |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…k security config Android ignores android:usesCleartextTraffic on API 24+ once a network security config is set, and minSdk is 24; the config's base-config already permits cleartext. Document installing a private CA for the Android app. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # docs/user/remote-access.md
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Android app does not trust user-installed CA certificates
There was an error while loading. Please reload this page.