You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "github-advanced-security[bot] (via GitHub)" <gi...@apache.org> on 2023/12/22 09:10:44 UTC

Re: [PR] [Bug] Fix resource file local path is not correct in worker (Delete Resource/ResourceUser which is deprecated) [dolphinscheduler]

github-advanced-security[bot] commented on code in PR #15355:
URL: https://github.com/apache/dolphinscheduler/pull/15355#discussion_r1434869432


##########
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java:
##########
@@ -63,7 +63,12 @@
         Path shellAbsolutePath = shellAbsolutePath();
         FileUtils.createFileWith755(shellAbsolutePath);
         Files.write(shellAbsolutePath, finalScript.getBytes(), StandardOpenOption.APPEND);
-        log.info("Final Shell file is : \n{}", finalScript);
+        log.info("Final Shell file is: ");
+        log.info(
+                "****************************** Script Content *****************************************************************");
+        log.info(finalScript);

Review Comment:
   ## Insertion of sensitive information into log files
   
   This [potentially sensitive information](1) is written to a log file.
   This [potentially sensitive information](2) is written to a log file.
   
   [Show more details](https://github.com/apache/dolphinscheduler/security/code-scanning/3852)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org