Skip to content

Update confidential relay protocol types for remote-only secret fetching#1903

Open
nadahalli wants to merge 1 commit intomainfrom
tejaswi/relay-secrets-params
Open

Update confidential relay protocol types for remote-only secret fetching#1903
nadahalli wants to merge 1 commit intomainfrom
tejaswi/relay-secrets-params

Conversation

@nadahalli
Copy link
Contributor

@nadahalli nadahalli commented Mar 17, 2026

Summary

  • Adds WorkflowOwner and WorkflowExecutionID to SecretsRequestParams. The relay DON handler needs these to build a valid vault secrets.get request (owner matching and execution ID validation).
  • Removes MasterPublicKey and Threshold from SecretsResponseResult. The enclave has both from its own config (EnclaveConfig.MasterPublicKey and EnclaveConfig.T, populated from on-chain DON config after DKG). The relay handler is a pass-through for encrypted shares only.

Part of the remote-only secret fetching work where the enclave fetches secrets dynamically at runtime via enclave -> gateway -> relay DON -> VaultDON, instead of the executor prefetching them before dispatch.

@nadahalli nadahalli requested a review from a team as a code owner March 17, 2026 14:52
Copilot AI review requested due to automatic review settings March 17, 2026 14:52
@github-actions
Copy link

👋 nadahalli, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link

github-actions bot commented Mar 17, 2026

⚠️ API Diff Results - github.com/smartcontractkit/chainlink-common

⚠️ Breaking Changes (2)

pkg/capabilities/actions/confidentialrelay.SecretsResponseResult (2)
  • MasterPublicKey — 🗑️ Removed

  • Threshold — 🗑️ Removed

✅ Compatible Changes (2)

pkg/capabilities/actions/confidentialrelay.SecretsRequestParams (2)
  • WorkflowExecutionID — ➕ Added

  • WorkflowOwner — ➕ Added


📄 View full apidiff report

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the confidential relay protocol request type so the relay DON handler can include workflow ownership and execution metadata when building a vault secrets.get request.

Changes:

  • Extend SecretsRequestParams with WorkflowOwner.
  • Extend SecretsRequestParams with WorkflowExecutionID.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Attestation string `json:"attestation,omitempty"`
WorkflowID string `json:"workflow_id"`
WorkflowOwner string `json:"workflow_owner"`
WorkflowExecutionID string `json:"workflow_execution_id"`
@nadahalli nadahalli force-pushed the tejaswi/relay-secrets-params branch from 6ca4d25 to acb562e Compare March 17, 2026 15:05
@nadahalli nadahalli changed the title Add WorkflowOwner and WorkflowExecutionID to SecretsRequestParams Update confidential relay protocol types for remote-only secret fetching Mar 17, 2026
…ublicKey/Threshold from response

SecretsRequestParams: added WorkflowOwner and WorkflowExecutionID.
The relay DON handler needs these to build a valid vault secrets.get
request (owner matching, execution ID validation).

SecretsResponseResult: removed MasterPublicKey and Threshold.
The enclave uses its own config for both (EnclaveConfig.MasterPublicKey
and EnclaveConfig.T from on-chain DON config, populated after DKG).
The relay handler is a pass-through for encrypted shares only.
@nadahalli nadahalli force-pushed the tejaswi/relay-secrets-params branch from acb562e to f480e53 Compare March 17, 2026 15:08
@nadahalli nadahalli requested a review from a team March 17, 2026 15:09
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