Add a 'trustEnclaves' setting to confidential relay for testing#22921
Add a 'trustEnclaves' setting to confidential relay for testing#22921vreff wants to merge 6 commits into
Conversation
|
I see you updated files related to
|
|
✅ No conflicts with other open PRs targeting |
CORA - Analysis SkippedReason: The number of code owners (4) is less than the minimum required (5) and/or the number of CODEOWNERS entries with changed files (5) is less than the minimum required (2). |
This reverts commit 8bb0c1b.
|
nadahalli
left a comment
There was a problem hiding this comment.
I have always strived to not add "test parameters" to signatures, but I guess in this case, this is the best way of doing it.
Yeah, not sure there's a better solution here. LMK if you think of one. |
i wonder if it makes sense to add some NitroValidator interface which we can store in Handler, where the real impl calls nitro.ValidateAttestation/nitro.ValidateAttestationWithRoots, and a relaxed version used for tests can do something else. then it would be handled at instantiation. perhaps not much cleaner? |
Right. It would only be spawned by a toml configuration still, but maybe I can re-arrange this to be a handler that gets passed in rather than a bool. |




Adds a
trustEnclavesboolean to the confidential relay toml config. This enables E2E testing to use fake enclaves rather than real ones.