Protect Service-Mode Payloads
Use payload protection when a workflow's business values should stay unreadable to the runtime and its operators. A configured SDK client seals supported values before sending them to Native Server. Workers open inputs and seal new values using keys held by your application. Enable protection only on the clients and workers serving the chosen workload.
Use Native Server 3.33.1 or later that advertises protected_signal_validation_v1 in cluster info and the corresponding SDK release. The examples start a protected workflow with one key, stop its worker, then start a replacement with both keys and send a signal using the new write key.
Run a key rotation example
Rotate without losing replay access
Generate the new key and distribute both keys to every caller and worker in the namespace. Switch the active write key only after those processes can read both versions. Restart processes that load keys at startup. A replacement worker uses the old key to replay retained input and the new key to seal its result.
Keep old keys while any retained history, external object or backup needed for restoration still uses them. A missing key produces payload_key_unavailable. Retained payloads keep their original ciphertext and key IDs.
Know what is protected
Protection covers durable workflow and ordinary activity inputs and results, recorded side-effect results, and application signals, updates and worker-backed queries. Child and continue-as-new runs inherit protection. External payload storage receives ciphertext. Operator tools can indicate that a value is protected.
IDs, names, namespaces, queues, searchable fields, memo and application error text stay visible. Activity heartbeat details, checkpoints and managed ingress fall outside this protection scope. Keep sensitive data out of those fields and logs.