1.6.0-beta7 November 10th, 2026
Akka.NET 1.6.0-beta7 adds opt-in TLS to Akka.IO TCP, Akka.Streams TCP and Artery remoting, fixes two Akka.Persistence ordering bugs, and ships a DotNetty-to-Artery migration guide. Read the v1.6 getting started guide for the full upgrade path.
Akka.IO / TLS
- TCP now supports opt-in TLS. Pass
TlsClientSettingstoTcp.ConnectorTlsServerSettingstoTcp.Bindand the connection is encrypted and authenticated before any bytes flow. Server-only TLS authenticates the server; mutual TLS has both peers present and validate a certificate. A command withoutTlsuses plaintext TCP exactly as before, and Akka.IO never falls back to plaintext when a configured handshake fails. (#8771) - Peer trust is an explicit policy:
TlsPeerPolicy.SystemTrust()uses the OS chain,PinnedCertificates(...)trusts a leaf thumbprint, andCustomTrust(callback)hands the decision to your code. Compose extra checks with.And(...)-TlsCertificateValidation.ValidateHostname(),ValidateSubject(...),ValidateIssuer(...)- to narrow an already-trusted peer.SystemTrust()ignores only a name-mismatch error and does not check a host name by itself, so addValidateHostname()when DNS identity matters. (#8771) - New public types:
TlsClientSettingsandTlsServerSettings(immutable, withServerOnly/Mutualfactories,WithHandshakeTimeoutandWithProtocols),TlsPeerPolicy,TlsCertificateValidationand theTlsCertificateValidationCallbackdelegate. Certificates stay caller-owned and must outlive the actor system. (#8771) - An outgoing
Tcp.Connectedis sent only after the handshake succeeds, and a failed or timed-out handshake (10s default,WithHandshakeTimeout) arrives as the existingTcp.CommandFailed. An incoming connection reaches its handler only after its handshake succeeds; the listener stays available for other clients. (#8771) TlsCertificateLoaderloads PKCS#12 certificates from a file or byte array, or finds one in an X.509 store. It requires an accessible RSA or ECDSA private key and returns a caller-owned certificate - keep it alive until the actor system and every transport using it have stopped. (#8787)- Migration:
ITransportConnectionimplementors must addInitializeAsync(CancellationToken)andStart(), andTcpTransportConnectionconstructors no longer start pumps automatically. This affects only the v1.6 beta API; v1.5 is unchanged. See the v1.6 breaking-change ledger. (#8771)
Akka.Streams
Tcp.BindTls,Tcp.BindAndHandleTlsandTcp.OutgoingConnectionTlsadd TLS listeners and outgoing connections, using the sameTlsClientSettings/TlsServerSettingsas Akka.IO.BindAndHandleTlscompletes when the listener is ready, and an outgoing graph's materialized value completes after authentication. Existing plaintextBind,BindAndHandleandOutgoingConnectionkeep their current behavior, and TLS does not change back-pressure or half-close semantics. (#8788, addresses #2750)- A failed TCP command now surfaces its original exception as the
InnerExceptionof theStreamTcpExceptioninstead of dropping it, so a TLS handshake failure reports why it failed. (#8788)
Akka.Remote / Artery (experimental)
- Artery can now run over TLS. Add one
ArteryTlsSetupcarrying an immutableArteryTlsSettingsprofile to the actor-system setup and Artery uses TLS for inbound connections and every outbound channel - control, ordinary and large-message traffic. Without it, Artery stays on plaintext TCP, and a failed handshake closes the connection rather than retrying as plaintext. Profiles and validation callbacks are configured in code; there is no Artery TLS HOCON schema. (#8791, refs #4436) - Deployment note: TLS is all-or-nothing per transport. A TLS-enabled Artery node cannot associate with a plaintext Artery node, and a TLS-enabled Akka.IO listener will not accept plaintext clients. Configure every participating node the same way. (#8771, #8791)
- Akka.Hosting's
WithArteryRemotingexposes the same profile. It enables Artery, allows explicit bind host and port overrides, preserves an already selected Cluster, Remote or custom actor-ref provider, and adds or replaces the typed TLS setup whenTlsis set. (#8791)
Akka.Persistence
- Stashed commands now run in send order when an async
Persist/PersistAllhandler, or the asynconCompleteAsynccallback ofPersistAll, completes asynchronously. Two unstashes used to fire for the same invocation in the same turn, and because eachUnstash()puts the oldest stashed command at the front of the mailbox, the second overtook the first. The same double unstash hitPersistAsync,PersistAllAsyncandDeferAsyncwith async handlers. Synchronous handlers behave as before. (#8941, fixes #8942) Desequencedis now exempt from serialization verification. Withakka.actor.serialize-messages = on, every journal write reply was round-tripped through theSystem.ObjectJSON fallback before reaching the persistent actor, so the persist callback received a JSON copy of the event instead of the instance that was persisted. For a C# 15 union event that copy arrived withValue == null, so the handler saw an empty event. (#8912, fixes #8910)
Docs
- New TLS for Akka.IO, Akka.Streams, and Artery guide covers server-only and mutual TLS, trust policies, certificate lifetime, and the Streams and Artery APIs. (#8771, #8787, #8788, #8791)
- New Migrating From DotNetty to Artery guide covers the transport change, cluster transition, address changes, Hosting, and bind-address limitations. (#8913)
Internal
- Native AOT verification uses the serviced .NET 10 SDK 10.0.403. (#8914)
1 contributor since release 1.6.0-beta6
| COMMITS | LOC+ | LOC- | AUTHOR |
|---|---|---|---|
| 8 | 5511 | 284 | Aaron Stannard |