-
Notifications
You must be signed in to change notification settings - Fork 53
Problem: path parameter in debug_goTrace is not safe when serve public rpc #576
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #576 +/- ##
===========================================
- Coverage 46.19% 46.13% -0.07%
===========================================
Files 181 181
Lines 18158 18186 +28
===========================================
+ Hits 8388 8390 +2
- Misses 9050 9076 +26
Partials 720 720
🚀 New features to boost your workflow:
|
yihuang
left a comment
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.
are you trying to fix security issue with the file parameter when serving debug namespace public?
We don't have public debug api right, but need set a specific dir for internal user to download the trace file? |
the path is passed by the user, so the user know exactly where the file will be written? |
Yes but we cant allow user specify any path due to security concern right? |
there's only security issue when serve debug namespace publicly. |
if user can call this api, mean debug already allow in api namespaces right? |
By public, I mean it can be called by un-trusted client. But user might still want to run a node for himself or trusted user to use. |
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 made a cleanup, what do you think about the changes.
seems cleaner, we also allow pass in start cmd right? |
* Problem: dependency contains personal fork (#571) * Problem: incorrect spendable balance when debug trace tx (#574) * Problem: incorrect spendable balance when debug trace tx * fix * Update tests/integration_tests/test_tracers.py Co-authored-by: mmsqe <tqd0800210105@gmail.com> Signed-off-by: yihuang <huang@crypto.com> --------- Signed-off-by: yihuang <huang@crypto.com> Co-authored-by: yihuang <huang@crypto.com> * Problem: path parameter in debug_goTrace is not safe when serve public rpc (#576) * Problem: no specific dir for the log from debug_goTrace * lint * allow any * revert * cleanup * fix format * fix config * Apply suggestions from code review --------- Co-authored-by: HuangYi <huang@crypto.com> --------- Signed-off-by: yihuang <huang@crypto.com> Co-authored-by: yihuang <huang@crypto.com>
Closes: #XXX
Description
For contributor use:
docs/) or specification (x/<module>/spec/)godoccomments.Unreleasedsection inCHANGELOG.mdFiles changedin the Github PR explorerFor admin use:
WIP,R4R,docs, etc)