Skip to content

Prevent plaintext from being inadventerly leaked in logs#147

Merged
bincyber merged 1 commit into
masterfrom
fix/string-redaction
May 18, 2026
Merged

Prevent plaintext from being inadventerly leaked in logs#147
bincyber merged 1 commit into
masterfrom
fix/string-redaction

Conversation

@bincyber
Copy link
Copy Markdown
Owner

This PR contains a minor breaking change.

EncryptedBytes holds plaintext bytes after Scan() and its String() method returned them raw. Any inadvertent use in fmt.Sprintf("%s", row), structured log fields, or error/panic formatting would leak the decrypted data.

  • String() now returns "[REDACTED]".
  • Plaintext() is added as an explicit method for callers that intentionally need the decrypted contents.

@bincyber bincyber force-pushed the fix/string-redaction branch from 392cd49 to e7442ac Compare May 18, 2026 04:11
@bincyber bincyber merged commit a177db9 into master May 18, 2026
4 checks passed
@bincyber bincyber deleted the fix/string-redaction branch May 18, 2026 04:14
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