Skip to content

Redact sensitive connection diagnostics#48

Open
poulcarlsen53 wants to merge 1 commit into
WhiteDNS:mainfrom
poulcarlsen53:fix/redact-sensitive-diagnostics
Open

Redact sensitive connection diagnostics#48
poulcarlsen53 wants to merge 1 commit into
WhiteDNS:mainfrom
poulcarlsen53:fix/redact-sensitive-diagnostics

Conversation

@poulcarlsen53

Copy link
Copy Markdown

What changed

This keeps secrets out of the places where they are easiest to leak by accident:

  • masks the SOCKS password in the connection info card
  • redacts the StormDNS encryption key from diagnostics output
  • marks diagnostics clipboard copies as sensitive so Android can hide previews/history where supported
  • adds small unit coverage for the redaction helpers

The diagnostics still show whether a key is configured, but they no longer copy the key itself into support logs or the clipboard.

Why

The previous diagnostics text included the full custom server encryption key, and the live connection card showed the SOCKS password in plain text. Those values can leak through screenshots, shoulder surfing, clipboard previews, keyboard clipboard history, or support snippets.

Verification

  • ./gradlew :app:testDebugUnitTest --tests shop.whitedns.client.ui.SensitiveTextTest --no-daemon

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