temporalio / temporalio/temporal
Support validated/authenticated payloads
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.2k
- Forks
- 1.9k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 228
Description
Describe the solution you'd like
Users send encrypted payloads, but server accepts all forms of payloads. Many users want to restrict payloads to only ones they create.
This can be done a few ways. To me the most obvious/simplest approach is that we have server/namespace-level public keys from a user (w/ full CRUD API, RSA or ECDSA only at first probably) with an identifier for each key and if any have been configured, use https://pkg.go.dev/go.temporal.io/api/proxy#VisitPayloads via interceptor to ensure that every non-search-attribute payload has a keyId payload metadata entry for a known key, and a signature payload metadata entry that uses that public key to validate that signature against the data contents. Cloud can have its own way to configure server/namespace-level keys.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the proposed use of go.temporal.io/api/proxy.VisitPayloads and determine how server- or namespace-level key configuration and CRUD would fit. Define the supported key types, metadata and signature validation behavior, including the Cloud configuration boundary. Done requires an agreed design and implementation scope; the issue names no files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, backend, cryptography, security
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100