matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Sensitive data in log output (password storage errors)

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug config/config.go logs password storage errors which could leak email addresses or other sensitive context to logs.

To reproduce Examine config/config.go lines 387, 580, 641:

log.Printf("matcha: failed to store password for %s in keyring: %v", acc.Email, err)
log.Printf("matcha: failed to migrate password for %s into keyring: %v", rawAcc.Email, err)
log.Printf("matcha: failed to delete password for %s from keyring: %v", acc.Email, err)

While these don't log passwords, they log email addresses and error details that might be sensitive.

Expected behavior Consider redacting email or use structured logging with sensitivity levels.

Additional context

  • Good first issue
  • Low severity (email addresses aren't passwords, but still PII)
  • Logs might be collected/shared during debugging
  • Error details could reveal system info

Suggested fix:

log.Printf("matcha: failed to store password for account in keyring: %v", err)
// Or redact email: log.Printf("matcha: failed to store password for %s in keyring: %v", redact(acc.Email), err)

OS All platforms

andrinoff avatar Apr 21 '26 09:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot