You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow network to keep working after renewing certs with the same key (#5268)
* Allow network to keep working after renewing certs with the same key pair in BFT
Signed-off-by: David VIEJO <[email protected]>
* Refactor certificate verification in dialers
- Updated the `VerifyCertificate` function in `PredicateDialer` to use the provided `verifyFunc` instead of a hardcoded function.
- Removed the logging and verification function in `StandardDialer`, setting it to `nil` for simplicity.
This change enhances flexibility in certificate verification while cleaning up unnecessary code.
Signed-off-by: David VIEJO <[email protected]>
* Remove logging and some comments
Signed-off-by: David VIEJO <[email protected]>
* Improve logging
Signed-off-by: David VIEJO <[email protected]>
* Update
Signed-off-by: David VIEJO <[email protected]>
* Add BFT test to verify renewal of certificates is working
Signed-off-by: David VIEJO <[email protected]>
* Refactor certificate handling in SmartBFT and Cluster services
- Renamed `renewOrdererCertificates` to `renewOrdererTLSCertificates` for clarity.
- Introduced `renewOrdererEnrollmentCertificates` to handle enrollment certificate renewal.
- Moved public key extraction logic to `util.go` and updated references in `consenter.go` and `clusterservice.go` to use the new method.
- Improved logging for certificate processing errors.
This refactor enhances code clarity and maintains consistency in certificate management across the codebase.
Signed-off-by: David VIEJO <[email protected]>
* Enhance certificate comparison functionality in Cluster service
- Refactored the `compareCertPublicKeys` function to `CompareCertPublicKeys` for improved clarity and consistency across the codebase.
- Updated references in `clusterservice.go` and `util.go` to utilize the new function.
- Added comprehensive unit tests for `CompareCertPublicKeys`, covering scenarios with certificates having the same public keys but different bytes, as well as handling errors gracefully for malformed certificates.
These changes improve the robustness of certificate handling and verification in the Cluster service.
Signed-off-by: David VIEJO <[email protected]>
* Update logging configuration in SmartBFT end-to-end tests
- Modified the logging specification for orderer runners in `smartbft_test.go` to focus on SmartBFT and gRPC debug logs, enhancing the clarity of test outputs.
Signed-off-by: David VIEJO <[email protected]>
* Updates based on the comments
Signed-off-by: David VIEJO <[email protected]>
* Add chaincode deployment and invocation tests in SmartBFT integration tests
- Implemented chaincode deployment and multiple invocation queries in the end-to-end SmartBFT configuration test.
- Removed unused certificate renewal functions to streamline the code.
These enhancements improve the testing coverage for SmartBFT and ensure proper chaincode functionality.
Signed-off-by: David VIEJO <[email protected]>
* Fixed formatting
Signed-off-by: dviejokfs <[email protected]>
* Remove unused logging statement in SmartBFT certificate renewal process to streamline code and improve clarity.
Signed-off-by: David VIEJO <[email protected]>
---------
Signed-off-by: David VIEJO <[email protected]>
Signed-off-by: dviejokfs <[email protected]>
0 commit comments