Skip to content

Conversation

@vreff
Copy link
Contributor

@vreff vreff commented Aug 12, 2025

This PR:

  • Adds the CRE node's workflowKey to its Keystore, if it is present.
  • Provides workflow encryption public keys, if they are available, from the integration test framework with GetWorkflowPublicKeys (used in downstream tests).

JIRA

@vreff vreff changed the title Add workflow key to standardcapabilities keystore, and update other keystore impls Add workflow key to standardcapabilities keystore Aug 15, 2025
@vreff vreff marked this pull request as ready for review August 22, 2025 13:22
@vreff vreff requested review from a team as code owners August 22, 2025 13:22
pavel-raykov
pavel-raykov previously approved these changes Aug 26, 2025
workflowKeys, err := node.KeyStore.Workflow().GetAll()
require.NoError(t, err)

// Workflow nodes should ony have at most 1 workflow key.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Only

keystore, err = core.NewSingleAccountSigner(&core.P2PAccountKey, key)
if err != nil {
return nil, fmt.Errorf("failed to create single account signer for P2P key: %w", err)
if len(workflowKeys) > 0 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we log a warning if the number of keys is more than 1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vreff vreff dismissed stale reviews from pavel-raykov and cedric-cordenier via e7001bb August 26, 2025 12:26
@pavel-raykov pavel-raykov enabled auto-merge August 26, 2025 12:28
@cl-sonarqube-production
Copy link

@pavel-raykov pavel-raykov added this pull request to the merge queue Aug 27, 2025
Merged via the queue into develop with commit 3e53bfa Aug 27, 2025
151 checks passed
@pavel-raykov pavel-raykov deleted the PRIV-126-workflow-key branch August 27, 2025 12:41
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.

4 participants