Skip to content

fix: guard Android user CA trust config#29

Open
ZacharyZcR wants to merge 1 commit into
Termix-SSH:dev-1.4.0from
ZacharyZcR:fix/android-user-ca-trust
Open

fix: guard Android user CA trust config#29
ZacharyZcR wants to merge 1 commit into
Termix-SSH:dev-1.4.0from
ZacharyZcR:fix/android-user-ca-trust

Conversation

@ZacharyZcR
Copy link
Copy Markdown
Member

Summary

  • keep Android network security XML as an exported constant so it can be verified locally
  • ensure the generated AndroidManifest explicitly references @xml/network_security_config and keeps cleartext enabled for local/self-hosted deployments
  • add a verification script that fails if system or user CA trust anchors are removed from the Android network security config

Refs Termix-SSH/Support#468

Validation

  • npm run verify:android-network-security
  • npx eslint plugins/withNetworkSecurityConfig.js scripts/verify-android-network-security.cjs
  • npx prettier --check plugins/withNetworkSecurityConfig.js scripts/verify-android-network-security.cjs package.json
  • npx expo config --type public
  • git diff --check
  • npx tsc --noEmit (fails on existing app/tabs/settings/KeyboardCustomization.tsx:596 baseline issue)

Note: this PR does not comment on the original Support issue, per maintainer preference.

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.

1 participant