Skip to content

Vault ocr3 changes#22270

Open
cedric-cordenier wants to merge 1 commit intodevelopfrom
vault-ocr3-changes
Open

Vault ocr3 changes#22270
cedric-cordenier wants to merge 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 2 times, most recently from da218a9 to 9cff59c Compare April 30, 2026 17:44
- Including support for Vault and DKG
@cl-sonarqube-production
Copy link
Copy Markdown

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.

2 participants