aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2024-08-08 17:24:15 +0200
committerRobin Jarry <robin@jarry.cc>2024-08-20 09:29:26 +0200
commit9147f43b1e372a8199c52d2e77e44fbf2f2041b1 (patch)
treeef669acf64077217c70516a6464f3ea3876e65a9 /commands/compose
parentb03750473db672578256cd95b07ba1732e18b06f (diff)
downloadaerc-9147f43b1e372a8199c52d2e77e44fbf2f2041b1.tar.gz
send: redact password in outgoing URI for logging
Redact the password in the outgoing URI for logging. This will replace the password by "xxxxx" and prevent a plaintext password leak in the logs. Signed-off-by: Koni Marti <koni.marti@gmail.com> Reviewed-by: Tristan Partin <tristan@partin.io> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/compose')
-rw-r--r--commands/compose/send.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go
index 9af8dc37..73672fed 100644
--- a/commands/compose/send.go
+++ b/commands/compose/send.go
@@ -111,7 +111,7 @@ func (s Send) Execute(args []string) error {
}
from := config.From
- log.Debugf("send config uri: %s", uri)
+ log.Debugf("send config uri: %s", uri.Redacted())
log.Debugf("send config from: %s", from)
log.Debugf("send config rcpts: %s", rcpts)
log.Debugf("send config domain: %s", domain)