Repository navigation
Conversation
jframe
force-pushed
the
enclave-7-provisioning
branch
from
December 2, 2026 23:42
51a0b56 to
d8e5aec
Compare
EnclaveProvisioningAcceptanceTest runs web3signer enclave seal and provision from the installed distribution against the in-process enclave signer, then signs through Web3Signer. It is the one test of the real host and enclave signer together.
…ner, shared enclave test helpers Adds a test where the real enclave signer rejects keys whose sealed secrets were swapped, and one where a second bundle with its own master key is added to the keys Web3Signer already loaded. The signing and health check helpers move to EnclaveAcceptanceTestBase, shared with EnclaveKeysAcceptanceTest.
provision waits 10 s for the signer, well inside EnclaveTool's 60 s timeout, so a signer that never answers fails with the tool's own error. A timeout now reports the command's output.
jframe
force-pushed
the
enclave-7-provisioning
branch
from
December 3, 2026 01:00
9273380 to
8a794b1
Compare
… key, and shared distribution lookup - seal a key's secret under another key's public key, so it decrypts but fails the enclave's public key check - provision a bundle carrying another bundle's data key: nothing loads, then the right bundle still provisions - the keys check error clears after keys are provisioned late - EnclaveTool stops its command when interrupted, and shares the installed distribution lookup with Web3SignerProcessRunner - match whole status lines, list keys with AssertJ
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Adds
EnclaveProvisioningAcceptanceTest, an acceptance test that seals keys, provisions them into the real enclave signer, and signs with them through Web3Signer. It runs the same steps an operator would:web3signer enclave seal --platform devturns the keystores into a key bundle.InProcessEnclaveSigner) on the dev platform.web3signer enclave provisionloads the bundle into the signer.--Xenclave-signer-addressand no local keys.The tests:
provisionreports3 loaded, 0 duplicates, 0 rejected of 3, andstatusshows the dev platform and 3 keys. Web3Signer lists exactly the sealed keys, and each signature matchesBLS.signwith the original secret key.keys-check/enclave-bulk-loadingandenclave-signerare UP, and the boot id in the health check is the onestatusprinted.enclave-signercheck is DOWN withNOT_LOADEDuntil the provision runs. Then every key signs without a/reloadrequest, and the check is back to UP withCURRENT.0 loaded, 3 duplicates, and Web3Signer holds exactly the 3 keys.2 loaded … the enclave holds 5 keys, and Web3Signer picks up the new keys without a reload. All 5 keys are listed and sign.provisionexits 1 withProvisioning incomplete: 1 loaded, 0 duplicates, 2 rejected of 3, and Web3Signer lists and signs with only the intact key.provisionreports2 loaded, 0 duplicates, 1 rejected of 3, and Web3Signer lists only the other two keys.The enclave loaded no key and rejected 3: the data key most likely does not match. The correct bundle then provisions into the empty signer, and Web3Signer lists and signs with its keys.The commands run from the installed distribution (
build/install/web3signer/bin/web3signer) through a small DSL helper,EnclaveTool, which keeps their stdout and stderr apart. It finds the distribution withInstalledDistribution, whichWeb3SignerProcessRunnernow uses too.acceptance-testsnow depends on theenclave-signertest fixtures forInProcessEnclaveSigner. The signing and health check assertions move toEnclaveAcceptanceTestBase, whichEnclaveKeysAcceptanceTestnow extends as well.This is the only test that runs the host side (
enclave-hostand the enclave subcommands) and the real enclave signer together. The other host and eth2 tests use fake enclaves.Fixed Issue(s)
Part of #1301.
Documentation
doc-change-requiredlabel to this PR if updates are required. Test only.Changelog
Testing
Note
Low Risk
Test-only changes to acceptance tests and test DSL; no production signing or enclave runtime code modified.
Overview
Adds end-to-end acceptance coverage for the operator workflow:
web3signer enclave seal→enclave provision→ Web3Signer signing againstInProcessEnclaveSigner(real dev enclave, notFakeEnclaveSigner).New test DSL pieces:
EnclaveToolruns enclave CLI subcommands from theinstallDistbinary and captures stdout/stderr;InstalledDistributioncentralizes locatingbuild/install/web3signer/bin/web3signer(also adopted byWeb3SignerProcessRunner).EnclaveAcceptanceTestBaseholds shared signing, polling, and health-check helpers;EnclaveKeysAcceptanceTestnow extends it instead of duplicating helpers.EnclaveProvisioningAcceptanceTestexercises happy paths (provision before/after signer start, second bundle, duplicate provision), plus failure cases (corrupted secrets, pubkey/secret mismatch, wrong data key).acceptance-testsgains aenclave-signertest-fixtures dependency forInProcessEnclaveSigner.Reviewed by Cursor Bugbot for commit 1bb28a0. Bugbot is set up for automated code reviews on this repo. Configure here.