-
Notifications
You must be signed in to change notification settings - Fork 716
feat: add /client_config endpoint to view runtime client config #8379
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
Please have a look at the failing tests in buildkite. |
buildkite is good now :) |
@ppca n00b question here: Do you know how to actually change the config to see that it's updated in the ui that you added? I mean changing it dynamically (what Nikolay is working on) rather than stopping neard, changing it in the config file and restarting neard. |
@@ -70,7 +70,7 @@ impl GCConfig { | |||
} | |||
} | |||
|
|||
#[derive(Clone, Serialize, Deserialize)] | |||
#[derive(Clone, Debug, Serialize, Deserialize)] |
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.
Due to another PR merging, please re-implement Debug
and Serialize
by implementing them for MutableConfigValue
.
Same for |
I tried |
One thing bothers me with this approach: you're making the client config a part of the general use RPC which I believe node owners typically have open to anyone. I'm not sure if all node owners will want to make their configs public. Could we make this part of the debug page instead? Node owners that care abour privacy can disable that with enable_debug_rpc = false. It may simplify the implementation as well because you'd only be adding a subpage rather than a full RPC method though I may be wrong. |
Before #8240 was merged, you could have After #8240, |
hehe, ok, I'm behind, I'll rebase on top of master and test again ;) |
None of the fields of Overall, I agree with @wacban, it's a good idea to be a bit more cautious, and make this a debug handler. Would be even better to add a link from |
And because a new handler is good news, please mention it in |
add endpoint /client_config to dump runtime client config
Context
https://pagodaplatform.atlassian.net/browse/ND-273
Testing and QA
tested by starting a localnet and tested endpoint on localnet
