-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove sensitive information from agent config toJSON() method #1112
fix: remove sensitive information from agent config toJSON() method #1112
Conversation
Signed-off-by: Jim Ezesinachi <jim@animo.id>
Signed-off-by: Jim Ezesinachi <jim@animo.id>
Signed-off-by: Jim Ezesinachi <jim@animo.id>
All checks passed! @blu3beri |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think returning them as undefined might be confusing as you won't know whether they are actually supplied.
Co-authored-by: Berend Sliedrecht <61358536+blu3beri@users.noreply.github.com> Signed-off-by: Jim Ezesinachi <ezesinachijim@gmail.com>
Signed-off-by: Jim Ezesinachi <jim@animo.id>
@rapaktech Prettier is failing now :). Could you fix that? I can merge it afterwards. |
@TimoGlastra would this be considered a breaking change? The return type of the function is quite different now, but I don't think it is a "public method" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't call this a breaking change, if you need properties from the agent config you should do so using the class methods.
This LGTM @rapaktech. I just found another place where we log keys, could you also tackle that one in this PR? It's in the WalletApi.initialize()
method (Initializing wallet xxx
)
BTW -- marking this as a fix over chore, as we shouldn't have logged the sensitive info in the first place
You got it, Timo. On it. |
Signed-off-by: Jim Ezesinachi <jim@animo.id>
Signed-off-by: Jim Ezesinachi <jim@animo.id>
Codecov Report
@@ Coverage Diff @@
## main #1112 +/- ##
==========================================
- Coverage 88.33% 88.28% -0.06%
==========================================
Files 701 705 +4
Lines 16111 16399 +288
Branches 2597 2657 +60
==========================================
+ Hits 14232 14478 +246
- Misses 1872 1914 +42
Partials 7 7
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I think we're good @jakubkoci |
…penwallet-foundation#1112) Signed-off-by: Jim Ezesinachi <jim@animo.id>
Signed-off-by: Jim Ezesinachi jim@animo.id