Show HN: Detect and mask PII, payment data and secrets in logs for Go
Category: security
Tags: go, pii, logging, security, redaction, observability
Score: 7.0/10 (Innovation: 6, Technical: 7, Documentation: 8, Utility: 7)
embargo is a Go library that prevents secrets and PII from leaking into logs, errors, traces, and HTTP responses by masking values at the point of writing. It offers a drop-in slog handler, adapters for popular loggers and services (zap, zerolog, logrus, gRPC, OpenTelemetry, Sentry), and 39 built-in detectors for tokens, cards, emails, and more. A testing helper lets CI fail when fake secrets appear in output, making it practical for hardening backend services.
Target audience: backend Go developers and devops/security engineers concerned with log data privacy
Repository: https://github.com/nao1215/embargo · Go · MIT · 3 stars
View on Hacker News