This is an automated email from the ASF dual-hosted git repository.
SbloodyS pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new adb0c7d951 [Improvement-18332][Worker] Remove plaintext passwords from
the logs (#18333)
adb0c7d951 is described below
commit adb0c7d95132cf6126ba834bb1437ca37d7713e5
Author: njnu-seafish <[email protected]>
AuthorDate: Fri Jun 12 10:43:27 2026 +0800
[Improvement-18332][Worker] Remove plaintext passwords from the logs
(#18333)
---
.../dolphinscheduler/plugin/datasource/api/utils/PasswordUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/utils/PasswordUtils.java
b/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/utils/PasswordUtils.java
index c1eb9f0442..f4b327da29 100644
---
a/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/utils/PasswordUtils.java
+++
b/dolphinscheduler-datasource-plugin/dolphinscheduler-datasource-api/src/main/java/org/apache/dolphinscheduler/plugin/datasource/api/utils/PasswordUtils.java
@@ -77,7 +77,7 @@ public class PasswordUtils {
String salt = PropertyUtils.getString(DATASOURCE_ENCRYPTION_SALT,
DATASOURCE_ENCRYPTION_SALT_DEFAULT);
String passwordWithSalt = new String(BASE64.decode(password),
StandardCharsets.UTF_8);
if (!passwordWithSalt.startsWith(salt)) {
- log.warn("There is a password and salt mismatch: {} ", password);
+ log.warn("There is a password and salt mismatch");
return password;
}
return new
String(BASE64.decode(passwordWithSalt.substring(salt.length())),
StandardCharsets.UTF_8);