Skip to content

History Signing#35

Merged
cicoyle merged 4 commits into
dapr:mainfrom
JoshVanL:history-signing
Mar 26, 2026
Merged

History Signing#35
cicoyle merged 4 commits into
dapr:mainfrom
JoshVanL:history-signing

Conversation

@JoshVanL
Copy link
Copy Markdown

Extends the backend service proto with messages needed for chain-of-custody signing of workflow history events. Each orchestrator execution signs the new event range and chains to the previous signature. Certificates are deduplicated in a separate table and referenced by index.

  • SigningCertificate: stores DER-encoded X.509 certificate per identity
  • HistorySignature: signing metadata covering a contiguous event range, linked via previousSignatureDigest to form a verifiable chain
  • WorkflowStateMetadata: extended with signatureLength and signingCertificateLength fields

Proposal: dapr/proposals#102

Extends the backend service proto with messages needed for chain-of-custody
signing of workflow history events. Each orchestrator execution signs the new
event range and chains to the previous signature. Certificates are
deduplicated in a separate table and referenced by index.

- SigningCertificate: stores DER-encoded X.509 certificate per identity
- HistorySignature: signing metadata covering a contiguous event range,
  linked via previousSignatureDigest to form a verifiable chain
- WorkflowStateMetadata: extended with signatureLength and
  signingCertificateLength fields

Proposal: dapr/proposals#102

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL requested a review from a team as a code owner March 19, 2026 15:30
Copilot AI review requested due to automatic review settings March 19, 2026 15:30
Copy link
Copy Markdown

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

Extends backend_service.proto with new proto messages and metadata fields to support chain-of-custody signing for workflow history, including signature chaining and certificate de-duplication.

Changes:

  • Extend WorkflowStateMetadata with counts for stored history signatures and signing certificates.
  • Add SigningCertificate to store X.509 cert material once and reference it by index.
  • Add HistorySignature to record per-range digests and signatures chained to a previous signature digest.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto Outdated
Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL requested review from Copilot and removed request for Copilot March 19, 2026 15:47
Copy link
Copy Markdown

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

Extends the backend service protobuf schema to support chain-of-custody signing for workflow history by introducing signature metadata messages and tracking counts in workflow state metadata.

Changes:

  • Add signatureLength and signingCertificateLength to WorkflowStateMetadata for tracking stored signing artifacts.
  • Introduce SigningCertificate for deduplicated certificate (chain) storage referenced by index.
  • Introduce HistorySignature to represent signatures over contiguous history event ranges with chaining to the prior signature.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto Outdated
Comment thread protos/backend_service.proto
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL changed the title WIP: History Signing History Signing Mar 20, 2026
@cicoyle cicoyle merged commit ac3d90b into dapr:main Mar 26, 2026
1 check passed
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