Skip to content

Add a 'trustEnclaves' setting to confidential relay for testing#22921

Open
vreff wants to merge 6 commits into
developfrom
trust-enclaves
Open

Add a 'trustEnclaves' setting to confidential relay for testing#22921
vreff wants to merge 6 commits into
developfrom
trust-enclaves

Conversation

@vreff

@vreff vreff commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io

trunk-io Bot commented Jun 23, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@github-actions

github-actions Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

CORA - Analysis Skipped

Reason: 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).

@cl-sonarqube-production

Copy link
Copy Markdown

@vreff vreff marked this pull request as ready for review June 24, 2026 03:58
@vreff vreff requested review from a team as code owners June 24, 2026 03:58

@nadahalli nadahalli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vreff

vreff commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

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.

@cfal

cfal commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

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?

@vreff

vreff commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants