diff options
author | Koni Marti <koni.marti@gmail.com> | 2024-08-08 17:24:15 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-08-20 09:29:26 +0200 |
commit | 9147f43b1e372a8199c52d2e77e44fbf2f2041b1 (patch) | |
tree | ef669acf64077217c70516a6464f3ea3876e65a9 | |
parent | b03750473db672578256cd95b07ba1732e18b06f (diff) | |
download | aerc-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>
-rw-r--r-- | commands/compose/send.go | 2 |
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) |