You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "fuchanghai (via GitHub)" <gi...@apache.org> on 2023/04/26 08:57:43 UTC
[GitHub] [dolphinscheduler] fuchanghai opened a new pull request, #14018: [fix-#14012] add throwable Converter
fuchanghai opened a new pull request, #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018
## Purpose of the pull request
this close:
- #14012
## Brief change log
add throwable Converter
after change:
<img width="1090" alt="image" src="https://user-images.githubusercontent.com/33984497/234523971-83136bba-3041-4f29-ba9e-fb3e367e8cb9.png">
## Verify this pull request
This change added tests and can be verified as follows:
SensitiveThrowableConverterTest#testPwdLogMsgConverter
--
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
Re: [PR] [fix-#14012] add throwable Converter [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1883998274
This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.
--
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
[GitHub] [dolphinscheduler] fuchanghai commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "fuchanghai (via GitHub)" <gi...@apache.org>.
fuchanghai commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1527100214
> > > I am +0 to this PR. If someone needed to mask the sensitive message, they can write their own ThrowableProxyConverter. DS shouldn't need to consider a lot of these features.
> >
> >
> > If one wants to hide IP information, SensitiveConverter can only hide the normal output information at this time. When an UnknownHostException is thrown, the IP information cannot be hidden. This is why I implemented ThrowableProxyConverter.
>
> I mean user can implement their own `ThrowableProxyConverter `, if someone want to mask username/password/personnumber/ip/publickKey/proxyIp, they will submit a lot of pr to change these...... this is not our core feature.
I know what you're worried about, so I'm going to make these rules configurable
you can see #13993
--
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
[GitHub] [dolphinscheduler] ruanwenjun commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1527089158
> > I am +0 to this PR. If someone needed to mask the sensitive message, they can write their own ThrowableProxyConverter. DS shouldn't need to consider a lot of these features.
>
> If one wants to hide IP information, SensitiveConverter can only hide the normal output information at this time. When an UnknownHostException is thrown, the IP information cannot be hidden. This is why I implemented ThrowableProxyConverter.
I mean user can implement their own `ThrowableProxyConverter `, if someone want to mask username/password/personnumber/ip/publickKey/proxyIp, they will submit a lot of pr to change these...... this is not our core feature.
--
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
[GitHub] [dolphinscheduler] sonarcloud[bot] commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1524860547
SonarCloud Quality Gate failed. [](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=14018)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=CODE_SMELL) [4 Code Smells](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_coverage&view=list) [50.0% Coverage](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_coverage&view=list)
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_duplicated_lines_density&view=list)
--
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
[GitHub] [dolphinscheduler] ruanwenjun commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "ruanwenjun (via GitHub)" <gi...@apache.org>.
ruanwenjun commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1525402541
I am +0 to this PR.
If someone needed to mask the sensitive message, they can write their own ThrowableProxyConverter. DS shouldn't need to consider a lot of these features.
--
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
Re: [PR] [fix-#14012] add throwable Converter [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #14018: [fix-#14012] add throwable Converter
URL: https://github.com/apache/dolphinscheduler/pull/14018
--
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
[GitHub] [dolphinscheduler] SbloodyS commented on a diff in pull request #14018: [fix-#14012] add throwable Converter
Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on code in PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#discussion_r1177705050
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/log/SensitiveThrowableConverter.java:
##########
@@ -0,0 +1,66 @@
+package org.apache.dolphinscheduler.common.log;
Review Comment:
Missing license header.
--
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
[GitHub] [dolphinscheduler] fuchanghai commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "fuchanghai (via GitHub)" <gi...@apache.org>.
fuchanghai commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1523040269
@caishunfeng @ruanwenjun @SbloodyS plz run CI
--
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
[GitHub] [dolphinscheduler] rickchengx commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "rickchengx (via GitHub)" <gi...@apache.org>.
rickchengx commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1524465623
I think the following files also need to be updated
* the `logback-spring.xml` in `dolphinscheduler-worker` and `dolphinscheduler-standalone-server`
* the `logback.xml` in `dolphinscheduler-master`
--
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
[GitHub] [dolphinscheduler] sonarcloud[bot] commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1524846878
SonarCloud Quality Gate failed. [](https://sonarcloud.io/dashboard?id=apache-dolphinscheduler&pullRequest=14018)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=CODE_SMELL) [4 Code Smells](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=14018&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_coverage&view=list) [50.0% Coverage](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_coverage&view=list)
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=14018&metric=new_duplicated_lines_density&view=list)
--
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
Re: [PR] [fix-#14012] add throwable Converter [dolphinscheduler]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1874715166
This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.
--
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
[GitHub] [dolphinscheduler] fuchanghai commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "fuchanghai (via GitHub)" <gi...@apache.org>.
fuchanghai commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1526851588
> I am +0 to this PR. If someone needed to mask the sensitive message, they can write their own ThrowableProxyConverter. DS shouldn't need to consider a lot of these features.
If one wants to hide IP information, SensitiveConverter can only hide the normal output information at this time. When an UnknownHostException is thrown, the IP information cannot be hidden. This is why I implemented ThrowableProxyConverter.
--
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
[GitHub] [dolphinscheduler] fuchanghai commented on a diff in pull request #14018: [fix-#14012] add throwable Converter
Posted by "fuchanghai (via GitHub)" <gi...@apache.org>.
fuchanghai commented on code in PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#discussion_r1177773521
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/log/SensitiveThrowableConverter.java:
##########
@@ -0,0 +1,66 @@
+package org.apache.dolphinscheduler.common.log;
Review Comment:
done
--
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
[GitHub] [dolphinscheduler] fuchanghai commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "fuchanghai (via GitHub)" <gi...@apache.org>.
fuchanghai commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1523500935
> I find that there are many duplicated codes with existed `SensitiveDataConverter`, can we abstract a class like `SensitiveConverter` and make code cleaner?
>
> BTW, may i ask can we override `convert` method to mask throwable logs, either? If we can, this abstract work will be easier.
thanks for you suggestion, I'll fix it later
--
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
[GitHub] [dolphinscheduler] codecov-commenter commented on pull request #14018: [fix-#14012] add throwable Converter
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #14018:
URL: https://github.com/apache/dolphinscheduler/pull/14018#issuecomment-1524835975
## [Codecov](https://codecov.io/gh/apache/dolphinscheduler/pull/14018?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#14018](https://codecov.io/gh/apache/dolphinscheduler/pull/14018?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (b831605) into [dev](https://codecov.io/gh/apache/dolphinscheduler/commit/4545093c1baa664060a67b58a5b42a13706c1bf1?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (4545093) will **decrease** coverage by `0.03%`.
> The diff coverage is `46.66%`.
> :exclamation: Current head b831605 differs from pull request most recent head 27d92e9. Consider uploading reports for the commit 27d92e9 to get more accurate results
```diff
@@ Coverage Diff @@
## dev #14018 +/- ##
============================================
- Coverage 38.22% 38.19% -0.03%
- Complexity 4437 4438 +1
============================================
Files 1220 1221 +1
Lines 42698 42638 -60
Branches 4734 4714 -20
============================================
- Hits 16322 16287 -35
+ Misses 24571 24546 -25
Partials 1805 1805
```
| [Impacted Files](https://codecov.io/gh/apache/dolphinscheduler/pull/14018?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [...eduler/common/log/SensitiveThrowableConverter.java](https://codecov.io/gh/apache/dolphinscheduler/pull/14018?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZG9scGhpbnNjaGVkdWxlci1jb21tb24vc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvY29tbW9uL2xvZy9TZW5zaXRpdmVUaHJvd2FibGVDb252ZXJ0ZXIuamF2YQ==) | `46.66% <46.66%> (ø)` | |
... and [65 files with indirect coverage changes](https://codecov.io/gh/apache/dolphinscheduler/pull/14018/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
--
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