Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[P2P, Testing] Ensure node refuses unencrypted connections (#598)
## Description Libp2p supports transport security via its [noise](https://noiseprotocol.org/) and [TLS](https://en.wikipedia.org/wiki/Transport_Layer_Security) and defaults to requiring peers to support at least one transport security protocol. This PR adds a test which asserts this behavior by starting up a P2P module and attempting to connect to it via a separate, insecure libp2p host. ## Issue Fixes #544 ## Type of change Please mark the relevant option(s): - [ ] New feature, functionality or library - [ ] Bug fix - [ ] Code health or cleanup - [ ] Major breaking change - [ ] Documentation - [x] Other: Regression test ## List of changes - Added a test which asserts that transport encryption is required (i.e. unencrypted connections are refused) ## Testing - [x] `make develop_test` - [ ] ~~[LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md) w/ all of the steps outlined in the `README`~~ ## Required Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have added, or updated, [`godoc` format comments](https://go.dev/blog/godoc) on touched members (see: [tip.golang.org/doc/comment](https://tip.golang.org/doc/comment)) - [ ] I have tested my changes using the available tooling - [ ] I have updated the corresponding CHANGELOG ### If Applicable Checklist - [ ] I have updated the corresponding README(s); local and/or global - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added, or updated, [mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding README(s) - [ ] I have added, or updated, documentation and [mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*` if I updated `shared/*`README(s) --------- Co-authored-by: Daniel Olshansky <[email protected]> Co-authored-by: Dmitry K <[email protected]> Co-authored-by: github-actions <[email protected]>
- Loading branch information