Skip to content

fix(security): move HTTP logging inside DEBUG, disable cleartext traffic#46

Open
brandonrc wants to merge 1 commit intomainfrom
audit/critical-fixes-2026-03-26
Open

fix(security): move HTTP logging inside DEBUG, disable cleartext traffic#46
brandonrc wants to merge 1 commit intomainfrom
audit/critical-fixes-2026-03-26

Conversation

@brandonrc
Copy link
Copy Markdown
Contributor

Summary

  • Move HttpLoggingInterceptor.Level.BODY inside BuildConfig.DEBUG block so release builds don't log auth tokens
  • Set cleartextTrafficPermitted=false globally in network_security_config.xml
  • Scope cleartext exception to localhost and 10.0.2.2 (emulator) only

Test plan

  • Debug build still logs HTTP bodies
  • Release build does not log HTTP bodies
  • App connects to HTTPS servers normally
  • Dev builds can still connect to localhost HTTP

🤖 Generated with Claude Code

…artext traffic

- Move HttpLoggingInterceptor.Level.BODY inside BuildConfig.DEBUG guard
  so release builds don't log auth tokens and request bodies
- Set cleartextTrafficPermitted=false globally in network_security_config
- Scope cleartext exception to localhost and 10.0.2.2 (emulator) only

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@brandonrc brandonrc requested a review from a team as a code owner March 27, 2026 03:05
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