Conversation
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
|
Merging to
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #23535 +/- ##
=========================================
Coverage 78.15% 78.15%
- Complexity 11679 11680 +1
=========================================
Files 2488 2488
Lines 94711 94703 -8
Branches 10231 10229 -2
=========================================
- Hits 74020 74017 -3
+ Misses 16948 16944 -4
+ Partials 3743 3742 -1
... and 7 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Signed-off-by: Kelly Greco <kelly@swirldslabs.com>
|
Note to self: this cannot be merged until LocalNode is updated to generate keys and not depend on the CN generating keys at startup |
Signed-off-by: Kelly Greco <kelly@swirldslabs.com> # Conflicts: # hedera-node/test-clients/src/main/java/com/hedera/services/bdd/junit/hedera/subprocess/SubProcessNetwork.java
Upon further investigation, LocalNode does not need to be updated. It is already compatible with this change. |
Description:
Platform (CryptoStatic / BasicConfig):
The
loadKeysFromPfxFilesboolean config property is removed entirely. Previously, setting it to false allowed the platform to skip disk-based key loading and instead generate keys deterministically at startup for test environments. That fallback path is now gone — the platform always loads keys from disk viaEnhancedKeyStoreLoader.HAPI Test Framework (NetworkUtils, SubProcessNetwork, WorkingDirUtils):
To keep the HAPI tests working under the new requirement that keys must exist on disk, the changes thread the generated keys through to disk before nodes start:
generateNetworkConfig()now returns aNetworkWithKeysrecord (wrappingNetwork+Map<NodeId, KeysAndCerts>) instead of justNetwork.SubProcessNetworkstores thenodeKeysmap and callswriteNodeSigningKey()afterinitWorkingDir()— both during initialstart()and when adding a node dynamically.WorkingDirUtils.writeSigningKey()is a new method that writes the signing private key ass-private-node{N}.peminto the node'sdata/keys/directory, whereEnhancedKeyStoreLoaderwill find it.Local Node
Local node is not affected because it puts keys on disk prior to starting the CNs.
** Configuration Changes **
Removal of
loadKeysFromPfxFilesfrom settings.txt files that had overrides for local environments.Net effect: Key loading is no longer optional/configurable — the platform always expects PEM/PFX files on disk. The HAPI test framework compensates by writing the generated keys to disk itself before each node boots.
Related issue(s):
Fixes #24635