-
Notifications
You must be signed in to change notification settings - Fork 276
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
[discussion] Revise configuration endpoints according to the RFC #4063
Comments
Consensus critical parameters are now configured on-chain, so i'm not sure this section is still relevant. |
Other than that i have no objections or additional comments. |
Fine to me as well |
Looks fine to me too |
Signed-off-by: Dmitry Balashov <[email protected]>
Signed-off-by: Dmitry Balashov <[email protected]>
If it's a subset, I think a Otherwise, I think it's a good design! |
Signed-off-by: Dmitry Balashov <[email protected]>
Signed-off-by: Dmitry Balashov <[email protected]>
Signed-off-by: Dmitry Balashov <[email protected]>
Signed-off-by: Dmitry Balashov <[email protected]>
Signed-off-by: Dmitry Balashov <[email protected]>
Signed-off-by: Dmitry Balashov <[email protected]>
…figuration (#4100) Co-authored-by: ⭐️NINIKA⭐️ <[email protected]> Signed-off-by: Dmitry Balashov <[email protected]>
…ha#4064, hyperledger-iroha#4079: re-architect logger and dynamic configuration (hyperledger-iroha#4100) Co-authored-by: ⭐️NINIKA⭐️ <[email protected]> Signed-off-by: Dmitry Balashov <[email protected]>
…ha#4064, hyperledger-iroha#4079: re-architect logger and dynamic configuration (hyperledger-iroha#4100) Co-authored-by: ⭐️NINIKA⭐️ <[email protected]> Signed-off-by: Dmitry Balashov <[email protected]> Signed-off-by: Asem-Abdelhady <[email protected]>
…ha#4064, hyperledger-iroha#4079: re-architect logger and dynamic configuration (hyperledger-iroha#4100) Co-authored-by: ⭐️NINIKA⭐️ <[email protected]> Signed-off-by: Dmitry Balashov <[email protected]>
Description
According to the Configuration Overhaul RFC (#2585), the current configuration endpoints should be revised.
Current Design
From the Configuration Endpoints section of the RFC
Detailed Proposal
For the reasoning please refer to the Proposal 9 of the RFC.
GET
/POST
/configuration
for fetching and updating the subset of configuration parameters. The subset and format should be the same between the two endpoints for the sake of uniformity.The only dynamic parameter as of now is
logger.level
(according to the updated naming of parameters). Therefore, the following JSON request might be used to update the value withPOST /configuration
:The same will be returned by
GET /configuration
.Caveats
In that place of the docs it is recommended to get peers' configuration in the network through the configuration endpoint. It suggests me that probably retrieval of the configuration might include more fields than only dynamic ones.
Also
There is an issue:
configuration
endpoint #3107, which suggests using sub-routing in a way it is used in
GET /status
endpoint. In general, I don't see a conflict here and it might be adopted for the new configuration endpoints:Samples
Getting whole configuration:
Getting a
logger
part:Getting
logger.level
precisely:"DEBUG"
Updating
logger
parameters:The text was updated successfully, but these errors were encountered: