Skip to content

Add automatic Buf validation to frontend RPCs - #12364

Draft
stephanos wants to merge 6 commits into
temporalio:mainfrom
stephanos:stephanos/proto-validation
Draft

stephanos wants to merge 6 commits into
temporalio:mainfrom
stephanos:stephanos/proto-validation

Conversation

@stephanos

@stephanos stephanos commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What changed?

Add frontend Buf validation with generated WorkflowService, AdminService, and OperatorService message dispatch, consume annotated API-Go, and include Buf descriptors in Server proto export.

Why?

Automatically enforce API annotations on requests using Buf field diagnostics and softassert invalid successful responses while preserving them.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Full GitHub CI passes (52 successful checks), including the functional matrix, SDK features, mixed-brain, regeneration/build, linters, and SaaS compatibility; focused tests and six Nexus validation cases also pass locally with GOWORK=off.

Potential risks

Depends on API #879 → API-Go #320; SDK v1.49 supports the current API-Go converters, and the temporary published fork replacement makes CI exercise the annotations and must become an official API-Go version before merge.

This branch has not been deployed

No deployments
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.

1 participant