Skip to content

[CRE-4087] Add support for Vault OCR3 and DKG Plugins to the capabilities registry#22270

Merged
cedric-cordenier merged 1 commit intodevelopfrom
vault-ocr3-changes
May 5, 2026
Merged

[CRE-4087] Add support for Vault OCR3 and DKG Plugins to the capabilities registry#22270
cedric-cordenier merged 1 commit intodevelopfrom
vault-ocr3-changes

Conversation

@cedric-cordenier
Copy link
Copy Markdown
Contributor

Requires

Supports

Copilot AI review requested due to automatic review settings April 30, 2026 15:30
@cedric-cordenier cedric-cordenier requested review from a team as code owners April 30, 2026 15:30
@github-actions
Copy link
Copy Markdown
Contributor

👋 cedric-cordenier, 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
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

✅ No conflicts with other open PRs targeting develop

Copy link
Copy Markdown
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

Risk Rating: MEDIUM — introduces new OCR3.1/DKG config generation paths and a version switch in capabilities-registry config expansion.

This PR extends CRE deployment tooling to support OCR3.1 (including DKG and Vault plugin offchain configs) and allows capabilities-registry OCR config expansion to select the OCR version per entry.

Changes:

  • Add OCR3.1 registry helpers (ComputeOCR3_1Config, ComputeDKGConfig) and support deriving OCR3.1 offchain config bytes from structured config (DKG/Vault) when no override is provided.
  • Refactor DKG OCR3.1 config generation to reuse the shared OCR3.1 config builder and centralize identity derivation.
  • Update capabilities-registry OCR config expansion to support __ocrVersion__ selection (ocr3, ocr3_1, ocr3_1_DKG) and adjust test expectation text.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
deployment/cre/ocr3/ocr3_1/registry.go New entrypoints to compute OCR3.1 and DKG configs using JD-fetched node info.
deployment/cre/ocr3/ocr3_1/oracle_config.go New structured offchain config types (DKG/Vault) with marshaling support.
deployment/cre/ocr3/ocr3_1/config_dkg.go Refactors DKG config generation to reuse shared OCR3.1 builder and adds identity derivation helper.
deployment/cre/ocr3/ocr3_1/config.go Adds fallback logic to marshal offchain config from V3_1OracleConfig when no override is provided.
deployment/cre/capabilities_registry/v2/changeset/configure_capabilities_registry.go Adds OCR version switching and parsing for OCR3.1/DKG configs during expansion.
deployment/cre/capabilities_registry/v2/changeset/expand_ocr3_configs_test.go Updates an assertion string to match new error wording.

Comment on lines +39 to +44

pkBytesFixed := [ed25519.PublicKeySize]byte{}
nCopied := copy(pkBytesFixed[:], pkBytes)
if nCopied != ed25519.PublicKeySize {
return nil, nil, fmt.Errorf("wrong num elements copied from ocr2 offchain public key. expected %d but got %d", ed25519.PublicKeySize, nCopied)
}
Comment thread deployment/cre/ocr3/ocr3_1/config.go
Comment thread deployment/cre/ocr3/ocr3_1/oracle_config.go
@trunk-io
Copy link
Copy Markdown

trunk-io Bot commented Apr 30, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@cedric-cordenier cedric-cordenier force-pushed the vault-ocr3-changes branch 5 times, most recently from ba5c3c6 to 9cc7317 Compare May 5, 2026 09:19
@cedric-cordenier cedric-cordenier changed the title Vault ocr3 changes [CRE-4087] Add support for Vault OCR3 and DKG Plugins to the capabilities registry May 5, 2026
@cl-sonarqube-production
Copy link
Copy Markdown

@cedric-cordenier cedric-cordenier enabled auto-merge May 5, 2026 14:15
@cedric-cordenier cedric-cordenier added this pull request to the merge queue May 5, 2026
Merged via the queue into develop with commit a96aa71 May 5, 2026
211 checks passed
@cedric-cordenier cedric-cordenier deleted the vault-ocr3-changes branch May 5, 2026 14:50
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