matcha
matcha copied to clipboard
BUG: Sensitive data in log output (password storage errors)
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
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.
Closing due to inactivity. Reopen if still relevant.