From 0c98d394640772357297d0c260f87456977da420 Mon Sep 17 00:00:00 2001 From: Dimitri Herzog Date: Fri, 17 Nov 2023 09:37:51 +0000 Subject: [PATCH] feat: add additional log obfuscation --- resolver/rewriter_resolver.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resolver/rewriter_resolver.go b/resolver/rewriter_resolver.go index 0b0754cbd..3dd44926b 100644 --- a/resolver/rewriter_resolver.go +++ b/resolver/rewriter_resolver.go @@ -126,9 +126,8 @@ func (r *RewriterResolver) rewriteRequest(logger *logrus.Entry, request *dns.Msg rewritten.Question[i].Name = dns.Fqdn(domainRewritten) logger.WithFields(logrus.Fields{ - "domain": util.Obfuscate(domainOriginal), - "rewrite": rewriteKey + ":" + r.cfg.Rewrite[rewriteKey], - }).Debugf("rewriting %q to %q", domainOriginal, domainRewritten) + "rewrite": util.Obfuscate(rewriteKey) + ":" + util.Obfuscate(r.cfg.Rewrite[rewriteKey]), + }).Debugf("rewriting %q to %q", util.Obfuscate(domainOriginal), util.Obfuscate(domainRewritten)) } }