Skip to content

Commit

Permalink
Mask passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
mrueg committed Feb 9, 2024
1 parent be402c2 commit 0739529
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net/http"
"os"
"strings"
"time"

"github.com/alecthomas/kingpin/v2"
Expand Down Expand Up @@ -51,7 +52,7 @@ func main() {
logger = level.NewFilter(logger, level.Allow(level.ParseDefault(*logLevel, level.InfoValue())))
logger = log.With(logger, "ts", log.DefaultTimestampUTC, "caller", log.DefaultCaller)
_ = level.Info(logger).Log("msg", "starting external-dns Netcup webhook plugin", "version", version.Version, "revision", version.Revision)
_ = level.Debug(logger).Log("customer-id", *customerID, "api-key", *apiKey, "api-password", *apiPassword)
_ = level.Debug(logger).Log("customer-id", *customerID, "api-key", strings.Repeat("*", len(*apiKey)), "api-password", strings.Repeat("*", len(*apiPassword)))

prometheus.DefaultRegisterer.MustRegister(version.NewCollector("external_dns_netcup"))

Expand Down

0 comments on commit 0739529

Please sign in to comment.