Skip to content

feat(securemem): redact sensitive data from logs and prints#91

Open
jithinkunjachan wants to merge 1 commit intomainfrom
feat/add-prevent-printer
Open

feat(securemem): redact sensitive data from logs and prints#91
jithinkunjachan wants to merge 1 commit intomainfrom
feat/add-prevent-printer

Conversation

@jithinkunjachan
Copy link
Copy Markdown
Contributor

@jithinkunjachan jithinkunjachan commented Mar 26, 2026

Implement custom Stringer, GoStringer, LogValuer, TextMarshaler, and JSON Marshaler interfaces for the Data type to ensure sensitive memory contents are never leaked via

  1. fmt
  2. slog
  3. serialization.

Implement custom Stringer, GoStringer, LogValuer, TextMarshaler, and
JSON Marshaler interfaces for the Data type to ensure sensitive memory
contents are never leaked via fmt, slog, or serialization. Add tests to
verify that secret values are always redacted in all supported output
formats.
@jithinkunjachan jithinkunjachan marked this pull request as ready for review March 26, 2026 13:01
Copy link
Copy Markdown

@apatsap apatsap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea and implementation

@jithinkunjachan jithinkunjachan self-assigned this Mar 26, 2026
Copy link
Copy Markdown

@NamanBalaji NamanBalaji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice utility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants