Skip to content

Enforce HTTPS app-wide via network security config#160

Merged
luantak merged 1 commit into
luantak:masterfrom
mesmerverse:feature/network-security-config
Jul 1, 2026
Merged

Enforce HTTPS app-wide via network security config#160
luantak merged 1 commit into
luantak:masterfrom
mesmerverse:feature/network-security-config

Conversation

@mesmerverse

Copy link
Copy Markdown
Contributor

Summary

Adds a network security config that disallows cleartext (HTTP) traffic app-wide, so the launcher never sends an unencrypted request.

  • New res/xml/network_security_config.xml with cleartextTrafficPermitted="false".
  • Referenced from <application android:networkSecurityConfig=...> in the manifest.

Why

Defense-in-depth. All current network use — the weather widget's Open-Meteo request — is already HTTPS, so there is no functional change; this just makes the guarantee explicit and enforced by the platform (a future cleartext URL would fail fast rather than silently send in the clear). Supported since API 24, so it covers the full minSdk 26 range.

Testing

assembleDebug builds cleanly; no source uses http://.

🤖 Generated with Claude Code

Add a network security config with cleartextTrafficPermitted=false and
reference it from the manifest, so the app never sends cleartext HTTP. All
current network use (the weather widget's Open-Meteo request) is already
HTTPS, so this is defense-in-depth with no functional change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@luantak
luantak merged commit 6192df9 into luantak:master Jul 1, 2026
2 checks passed
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.

2 participants