Skip to content

confidential workflows e2e tests - #23397

Merged
vreff merged 33 commits into
developfrom
conf-e2e
Aug 19, 2026
Merged

confidential workflows e2e tests#23397
vreff merged 33 commits into
developfrom
conf-e2e

Conversation

@vreff

@vreff vreff commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Adds an end-to-end test for confidential workflows, using the enclave test harness from chainlink-confidential-compute.

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@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.

@trunk-io

trunk-io Bot commented Aug 12, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@vreff
vreff requested a review from a team as a code owner August 12, 2026 20:34
@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

CORA - Pending Reviewers

All codeowners have approved! ✅

Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown

For more details, see the full review summary.

se3000
se3000 previously requested changes Aug 18, 2026
Comment on lines +334 to +335
# to that repo's fake-enclave runner. Check it out at the same revision the
# plugin is built from so the capability and the enclave app always match.

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.

Would it be worth making sure that the two revisions never diverge? Could read it from system-tests/tests/go.mod instead of what is listed as the public plugin.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We want to use the public plugin sha to build the capability binary, because that is what actually gets used in the chainlink node. The revision used in system-tests/tests/go.mod is what consumes the testhelpers/harness, which is a different go module and is used for a different purpose.

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.

Do they not have to match?

Comment thread system-tests/tests/smoke/cre/confidential_workflows_test.go Outdated
t.Helper()

root := os.Getenv("CONFIDENTIAL_COMPUTE_ROOT")
require.NotEmpty(t, root,

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.

Maybe make this a t.Skip instead so it doesn't fail locally for people?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done: 25f22a3

return fmt.Sprintf("%s://%s:%d%s", incoming.Protocol, host, incoming.ExternalPort, incoming.Path)
}

// injectVaultPublicKey writes the vault DON's DKG public key and threshold into

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.

Comment looks out of place. Move it to above injectVaultPublicKey.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done: 8360703


// DefaultGatewayWhitelistConfig builds the Gateway Connector's outbound allowlist:
// the caller's extra ports plus the fake service ports the config declares. Shared
// by `cre env start` and by tests that call StartCLIEnvironment directly, so both

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.

Seems no one one outside this file calls this on this branch, so we could make it private and update the comment to remove saying it is shared "and by tests"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done: d6ddce0

Comment thread system-tests/tests/smoke/cre/confidential_workflows_test_helpers.go Outdated
}
}

// UseFakeEnclaveForTest reports whether the harness selected fake enclaves.

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.

Nit: Necessity of this one line function is questionable:
UseFakeEnclaveForTest() (helpers.go:360) is a pure one-line wrapper over testhelpers.UseFakeEnclave(), and the test file already calls testhelpers.UseFakeEnclave() directly (test.go:79). Drop the wrapper, call the source in both places.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done: 7f312e0

@vreff
vreff requested a review from se3000 August 18, 2026 13:26
…rs.go

Co-authored-by: Steve Ellis <email@steveell.is>
if err != nil {
return publicKey, errors.Wrap(err, "failed to create request to get workflow keys")
}
req.AddCookie(apiClient.Cookies[0])

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.

Unguarded index, could panic.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fix: d305f34

Comment thread system-tests/lib/cre/registry_update.go Outdated
@cl-sonarqube-production

Copy link
Copy Markdown

@se3000
se3000 dismissed their stale review August 19, 2026 14:00

fixed

@vreff
vreff added this pull request to the merge queue Aug 19, 2026
Merged via the queue into develop with commit 6837c88 Aug 19, 2026
230 of 231 checks passed
@vreff
vreff deleted the conf-e2e branch August 19, 2026 18:54
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