Skip to content

Nexus Per Endpoint Encryption - #525

Draft
Quinn-With-Two-Ns wants to merge 1 commit into
temporalio:mainfrom
Quinn-With-Two-Ns:nexus-per-endpoint-encryption
Draft

Quinn-With-Two-Ns wants to merge 1 commit into
temporalio:mainfrom
Quinn-With-Two-Ns:nexus-per-endpoint-encryption

Conversation

@Quinn-With-Two-Ns

@Quinn-With-Two-Ns Quinn-With-Two-Ns commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What was changed

Added a Nexus encryption sample demonstrating how to use NexusSerializationContext to select an AES-GCM encryption key based on the Nexus endpoint handling an operation. The same context can also support key selection by service, operation, or a combination of those values.

The sample includes synchronous and workflow-backed asynchronous operations across two endpoints, along with tests and setup instructions. It also documents the limitation that operations attached to the same workflow execution share one serialized result and therefore must resolve to the same encryption key.

Why?

Context-aware serialization lets applications protect Nexus payloads according to where they are sent. For example, services can isolate payloads across endpoints, services, operations, tenants, or security domains without creating separate data-converter implementations for each one.

This sample gives users a practical reference for implementing that pattern safely, including guidance for workflow executions shared by multiple attached Nexus operations.

@Quinn-With-Two-Ns
Quinn-With-Two-Ns force-pushed the nexus-per-endpoint-encryption branch from 46c9c34 to d902861 Compare August 7, 2026 18:28
@Quinn-With-Two-Ns Quinn-With-Two-Ns changed the title Per endpoint encryption Nexus Per Endpoint Encryption Aug 7, 2026
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