diff --git a/main.go b/main.go index e8e1427..3ea34e1 100644 --- a/main.go +++ b/main.go @@ -287,7 +287,7 @@ func readSecret(envName string) string { if err != nil { slog.Error("Failed to read secret from file "+passwordFilePath, logging.ErrorAttr(err)) } else { - secret = string(content) + secret = strings.TrimSuffix(strings.TrimSuffix(string(content), "\r\n"), "\n") } } return secret