-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Http debug page (BFT-259, BFT-451) (#124)
## What ❔ Added an HTTP endpoint with basic debug information: - It is disabled by default. To enable it, a line defining it's address in config is required: ` "debugAddr": "<IP Address>:<port>"` - Basic authentication implemented, also optional. Configured by ` "debugCredentials": "<user>:<password>"` in config file. No authentication required if that line is not present. - TLS encryption: certificate and key files are required in case authentication is enabled. Default names are `cert.pem`and `key.pem`but file paths can be specified in config.json: ``` "debugCertPath": "<cert path>", "debugKeyPath": "<key path>", ``` - Current look: <img width="573" alt="image" src="https://github.com/matter-labs/era-consensus/assets/6774709/99ba639a-dd3a-41a0-a3f3-03f2509b8e11"> ## Why ❔ Requested at: - [BFT-259 - implement an http debug page for a node (with network data)](https://linear.app/matterlabs/issue/BFT-259/implement-an-http-debug-page-for-a-node-with-network-data) - [BFT-451 - Do not expose HTTP servers for metrics and debugging if possible](https://linear.app/matterlabs/issue/BFT-451/do-not-expose-http-servers-for-metrics-and-debugging-if-possible)
- Loading branch information
1 parent
2838e24
commit 2dbb9a6
Showing
27 changed files
with
1,064 additions
and
244 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.