Where NATS uses cryptography: clients, clustering, leaf nodes

NATS uses TLS on client, cluster route, leaf node and gateway connections, public keys for operator, account and user credentials, and symmetric ciphers for JetStream encryption at rest. This entry maps each place so you can record it in your inventory.

On this page

Where NATS uses cryptography and why an inventory entry matters now

Start your NATS post-quantum review by recording every place the server and its clients use cryptography. In NATS, the main areas are client connections, cluster route links, leaf node connections, gateway connections, operator-mode credentials, and JetStream encryption at rest. Each has its own TLS block in the configuration, so an inventory that treats NATS as one thing will miss settings that differ between connection types. The security lead who owns the inventory should list each connection type, the tls block that governs it, and the certificate and key files it references, such as cert_file, key_file and ca_file. The platform engineer should confirm which of these are enabled in each cluster, since NATS starts connections in plaintext by default unless TLS is configured.

An inventory entry matters because the public-key material in each area is what a later migration has to replace or extend, and you cannot plan that work without knowing where it sits. Certificates and the public keys they carry are one dependency. Pinned certificates are another: the TLS reference documents pinned_certs as hex-encoded SHA256 fingerprints of DER-encoded public keys, so a change in key type can break a pinned deployment. Operator-mode credentials are JWTs signed with NKey (Ed25519) key pairs, and the server verifies the chain using only the operator public key. JetStream encryption at rest uses symmetric ciphers, which the docs name as ChaCha20-Poly1305 by default or AES-GCM. For each entry, record the owner, the configuration location and the version in use, and date the record, since the NATS documentation has already disagreed with itself on at least one default. The rest of this group covers those dependencies, support and upgrades in turn.

Every place NATS uses cryptography, by area

This table maps each NATS area that uses cryptography to what it protects, the algorithm family the documentation names, whether it depends on public-key algorithms, and the setting that controls it. Rows marked as not documented show where the vendor has published no statement, so confirm those with Synadia or in your own build before recording an answer.

AreaWhat it protects and algorithm familyDepends on public keys?Where it is set
Client TLSConnections from applications to the server. Key exchange and certificates via TLS; curve_preferences can add the X25519MLKEM768 hybrid for key exchange (NATS Server 2.12.0 and later).Yes, for server certificates and any client certificatestls block: cert_file, key_file, ca_file, curve_preferences
Cluster TLSServer-to-server route connections. Mutual TLS, with verify always enabled for routes, so each node presents and checks certificates.Yes, for certificates on both sides of each routecluster tls block: cert_file, key_file, ca_file, curve_preferences
Leaf node TLSLinks from leaf nodes to a hub cluster. Uses the same TLS option set as client and cluster connections.Yes, for certificates used in the leaf connectionleafnodes tls block: cert_file, key_file, ca_file, curve_preferences
Gateway TLSConnections between gateway clusters. Configured separately from client, cluster and leaf node TLS; confirm exact option names in the gateway reference for your version.Yes, for certificates where mutual TLS is usedgateway tls block (confirm keys for your version)
Operator and account JWTs with NKeysCredentials and the operator, account and user signature chain. NKeys are Ed25519 key pairs; the NATS docs and the nkeys README describe no post-quantum signature support.Yes, Ed25519 signatures on every JWT in the chainOperator and account JWTs; the server holds the operator public key for verification
JetStream encryption at restStream data stored on disk. Symmetric ciphers: ChaCha20-Poly1305 by default, or AES-GCM when cipher is set to aes. Key protection depends on how the operator manages the encryption key.Not for the stream cipher itself; confirm how the encryption key is wrapped or stored in your environmentJetStream encryption settings; cipher option (chacha or aes)
Synadia FIPS buildLicensed build for strict FIPS 140-3 approved algorithm use, relying on Go's native cryptographic module. Auth callout is disabled in this build because it relies on X25519, which Synadia says is not currently NIST approved for strict FIPS environments.Depends on the build's approved algorithm set; Synadia makes no statement on FIPS 140-3 certification statusObtained from Synadia; validate with go version -m and a check for fips140=only
Management access and firmware signing (open-source server)Not documented by the vendor in the sources reviewed. Confirm with Synadia or the project how admin access and release artifact signing are handled.Not documentedNot documented; ask the vendor

Which NATS protocols and connection types use TLS

NATS configures TLS separately for each connection type, so an inventory has to cover each one on its own. The four types below are client, cluster route, leaf node and gateway, and each has its own tls block with the same family of settings.

Client connections

Client connections carry application traffic from publishers and subscribers to the server. They are configured in the client TLS block, which exposes cert_file, key_file, ca_file, cipher_suites, curve_preferences, min_version, verify, handshake_first, pinned_certs and ocsp_peer. Check whether verify is enabled and whether pinned_certs is used, since pinning ties the connection to specific public keys. Confirm handshake_first is set deliberately, because NATS starts connections in plaintext by default.

NATS TLS reference

Cluster route connections

Cluster routes link servers within the same cluster to each other. The cluster TLS block carries the same settings as the client block, and NATS states that verify is always enabled for routes. The cert_file serves as both the client and server certificate for mutual TLS, so one certificate's key type affects both directions. Confirm the cluster block's cipher_suites and curve_preferences match what your other connection types allow.

Cluster TLS reference

Leaf node connections

Leaf nodes connect a local NATS server to a hub, often across a network boundary such as an edge site. The leaf node TLS block lists the same options as the client and cluster blocks. Because leaf links often cross less controlled networks, confirm which certificates the hub trusts through ca_file and whether verify is set on both ends. Inventory each leaf link separately, since each one may have its own certificates.

Leaf node TLS reference

Gateway connections

Gateways link separate NATS clusters, typically across regions or organizations. Gateway TLS is configured on its own block, so it does not inherit settings from the client or cluster blocks. Confirm the gateway's min_version, cipher_suites and certificate chain independently, and record them as their own inventory entry. Since the gateway crosses cluster boundaries, the trust store it relies on should be reviewed by the team that owns the remote cluster.

NATS security concepts

Plaintext and the 50 ms fallback

The default for every connection is plaintext, so TLS is only used when it is explicitly configured. With handshake_first set to auto, the server falls back to a plaintext INFO if no TLS bytes arrive within 50 ms. Any connection that can fall back should be listed in the inventory as one that may run without encryption. Verify the setting on every connection type, since a single block left at its default can leave one link unencrypted.

NATS encryption guide

Which certificates and keys NATS uses, and where they are stored

NATS documents a separate TLS block for each connection type: client, cluster route, leaf node and gateway. Each block names its certificate and key as files on the server host through the cert_file, key_file and ca_file settings, so the operator who manages the server configuration decides where those files sit and when they are replaced. The cluster page notes that cert_file serves as both the client and server certificate for mutual TLS between routes.

  • Client connections: the tls block in the server configuration references cert_file, key_file and ca_file for client-facing listeners.
  • Cluster routes: the cluster TLS block uses the same options, and verify is always enabled for routes.
  • Leaf nodes: the leaf node TLS block lists the same settings, so leaf links carry their own certificate files.
  • Gateways: gateways are documented with their own TLS configuration, separate from the other three types.
  • Rotation: the file owner replaces the PEM files and reloads or restarts the server, so the rotation schedule belongs to whoever manages the host or configuration management system.

Check each tls block in every server configuration file, including cluster, leaf and gateway blocks, and record the path, owner and renewal process for each cert_file and key_file.

How administrators and tools reach NATS, and what protects each path

Administrators and tools reach a NATS deployment through several distinct paths, and each one has its own TLS configuration. The NATS security documentation describes separate TLS settings for each connection type: client connections, cluster routes, leaf node connections and gateways. Client TLS is set in the tls block of a client listener, cluster TLS in the cluster block, and leaf node TLS in the leafnodes block. Inventory each of these blocks in every server configuration you run, because a deployment can have some paths encrypted and others left at defaults. By default NATS starts every connection in plaintext, so an unset tls block is a path that is not protected by transport encryption.

Leaf node connections and cluster routes are the paths that link servers to one another, and the documentation lists the same settings for both as for client connections, including cert_file, key_file, ca_file, min_version, verify and pinned_certs. The cluster TLS reference adds that verify is always enabled for routes, and that cert_file serves as both the client and server certificate for mutual TLS. Operator-mode credentials are a separate layer. In operator mode, NATS credentials are JWTs signed with NKey (Ed25519) key pairs, and the server needs only the operator public key to verify the chain of operator, account and user signatures. Confirm which operator public keys your servers trust and who holds the corresponding private keys, since those keys sign every account and user credential.

The facts you have do not document a separate web interface or an API management TLS configuration for NATS, so do not assume one exists. Confirm in your own deployment whether any monitoring endpoint, management tool or proxy you place in front of NATS exposes an interface, and if so, which TLS settings protect it. Check the NATS documentation for your server version and inspect your own configuration files rather than relying on this section. The TLS settings reviewed here show which certificate and key types are in use, which is the starting point for the key dependency questions covered elsewhere on this page.

Whether NATS server releases and licenses are signed and verified

NATS server releases, licensing and the FIPS build reach you through different channels, and the facts document each one separately. Use these cards to record what the open-source release channel provides, what the Apache-2.0 license covers, where to report a security issue, and what the Synadia FIPS build involves. Where the facts are silent on signing, the cards say so and name what to confirm with the vendor.

Open-source server release channel

The open-source server is published through GitHub releases in the nats-io organization. The facts identify v2.12.0 as the release that added the X25519MLKEM768 curve option, and that build was made with Go 1.25.1. Record the exact tag and the Go version in your inventory, because the set of accepted curve names and cipher suites depends on the Go version used to build the server. Download from the release page, not from mirrors, and keep the tag alongside your deployment record.

v2.12.0 release

Apache-2.0 license terms

The nats-server README states that the project is licensed under Apache-2.0 and names no single company as owner, and NATS is described as part of the Cloud Native Computing Foundation. The open-source license governs use and redistribution of the code, not whether a given binary is authentic. Confirm with your legal team which terms apply to your deployment, and keep the README version you reviewed as evidence.

nats-server README

Security reporting address

The nats-server README gives security@nats.io as the address for reporting security issues. Use it for vulnerabilities in the open-source server, and record the address and the date you checked it, which was 2026-12-03 for these facts. Include the server version and build details in any report so the maintainers can reproduce the issue against the exact release you run.

Synadia licensed FIPS build

Synadia offers licensed NATS server builds for environments that need strict enforcement of FIPS 140-3 approved algorithms, relying on Go's native cryptographic module. Customers obtain these builds by contacting Synadia rather than from the public release channel. The Synadia page says auth callout is disabled in that build because it relies on X25519, and it makes no statement on FIPS 140-3 certification status. It also does not mention post-quantum algorithms or a roadmap, so confirm those points directly with Synadia.

Synadia FIPS page

Signing and verification not documented

The facts do not document firmware or software image signing for the open-source server, and they do not describe how release artifacts are signed or how a downloaded binary is verified against a signature. For the FIPS build, the Synadia page gives a check you can run yourself: go version -m on the binary and a search for fips140=only. Ask the vendor which signing method covers each release channel, where the verification keys are published, and whether a signed build is available for your deployment.

What to record for each NATS cryptographic item

This table lists the fields to collect for each NATS cryptographic setting, whether it sits in a client, cluster route, leaf node or JetStream configuration. Read each row as a column in your inventory: the first column names the field, and the second shows what the NATS documentation and release facts let you collect for it. Fields the facts do not cover are marked for confirmation in your own environment.

FieldWhat to recordWhere it comes from
Product and versionnats-server version, for example 2.12.0The server binary version, checked with the server's version output
Build Go versionGo version the server was built with, for example Go 1.25.1 for v2.12.0go version -m on the server binary, which also shows whether the build uses fips140=only
OwnerTeam or person accountable for each NATS cluster, leaf node and clientYour own ownership records, not stated in NATS documentation
Location in configurationThe tls block for client, cluster, leafnode or gateway, with the config file pathThe server configuration file for each connection type
ProtocolTLS version floor, from min_version or the default of TLS 1.2min_version in the tls block; the server rejects values below TLS 1.2
Cipher and curve settingscipher_suites, curve_preferences and allow_insecure_cipher_suites values, or the unset defaultsThe tls block; unset curve_preferences uses the ML-KEM hybrid curves first, and insecure suites stay off unless enabled
Algorithm and key sizeSignature and key type for each certificate and NKey, such as RSA or Ed25519The certificate in cert_file and the NKey or JWT in use; confirm key size with your certificate tooling
Certificate issuer and expiryIssuer name and expiry date of each certificate referenced by cert_file, ca_file or certsYour certificate store or openssl x509 output on each certificate
Configurable or fixedWhether the setting can be changed in configuration or is fixed in the buildConfigurable for TLS settings through the tls block; signature algorithms for NKeys and JWTs are not configurable as NATS documents them
Confidentiality periodHow long the protected data must stay confidential, set by your data ownersYour data classification, not a NATS setting; confirm with the data owner

Which NATS items depend on public-key algorithms

Several NATS items depend on public-key algorithms, and an inventory should list each one separately because they fail or change in different ways. The first group is TLS. The key exchange that sets up each client, cluster route, leaf node and gateway connection uses elliptic-curve key agreement, and certificate authentication uses the public key in each server and client certificate. The TLS reference also lists pinned_certs, which compares SHA256 fingerprints of DER-encoded public keys, and ocsp_peer, which checks peer certificates against an OCSP responder. Both depend on the certificate public keys in use, so a change to certificate algorithms affects them directly.

The second group is NKey signing in operator mode. NATS credentials are JWTs signed with NKey Ed25519 key pairs, and the chain of operator, account and user signatures is what the server checks against the operator public key. Confirm which keys sign your operator, account and user JWTs and where those keys are stored, because they set how far a later change would reach. The NKeys documentation describes Ed25519 signatures and does not mention post-quantum signature schemes, so NKey-based identity should be recorded as public-key dependent in the inventory.

JetStream encryption at rest is different. The encryption guide says stream data on disk defaults to ChaCha20-Poly1305, with cipher: aes selecting AES-GCM. Both are symmetric ciphers, so this item is not a public-key dependency, though key handling for it should still be recorded. For the full analysis of which RSA and elliptic-curve dependencies exist, and which stronger settings are available today, see the sibling topic on NATS public-key dependencies.

How to gather NATS cryptographic settings for your inventory

This sequence collects the TLS settings, certificate files, versions and operator-mode trust setup for each NATS connection type, so you have a dated record of where cryptography is configured. Run it against each server and cluster in scope, and keep the output with the configuration it came from. Some facts, such as the vendor's plans, can only be confirmed by asking.

  1. Export the server configuration and tls blocks

    Export the running configuration for each nats-server instance, either from the config file it was started with or from the directory where your deployment tooling keeps it. Pull out the tls block under each connection type: client, cluster (routes), leaf node and gateway. NATS documents separate TLS configuration for each of these, so do not assume one block covers the others. Confirm the file is the one the running process loaded, not an older copy, and record the path and the date you exported it. The step is done when you have one file per instance with all four blocks, or a note that a block is absent because that connection type is not used.

  2. Record server and go build versions

    Record the nats-server version by running the binary with its version flag on each host, since the same version string can be deployed in different builds. Then run go version -m on the nats-server binary to read the Go toolchain it was built with. The Go version matters because the accepted cipher_suites names must match the Go version used to build the server, and the 2.12.0 release was built with Go 1.25.1. The step is done when each instance has a server version and a Go version recorded against its hostname.

  3. List cipher suites, curves and minimum versions

    For each tls block, record the values of cipher_suites, curve_preferences and min_version. If a setting is not present, record it as unset instead of leaving it blank, because the default applies. When min_version is unset, the server uses TLS 1.2 as its minimum, and values below TLS 1.2 are rejected. When curve_preferences is unset, the server uses its own default list, which places the ML-KEM hybrid curves first, and that default list omits X25519 when Go FIPS 140 mode is enabled. Also record allow_insecure_cipher_suites, which defaults to false. The step is done when every tls block has a line for each of these settings.

  4. Inventory certificate files and fingerprints

    List the cert_file, key_file and ca_file paths referenced by each tls block, along with the certificate's public key algorithm, its expiry date and a SHA256 fingerprint of the certificate. Where pinned_certs or ocsp_peer is configured, record that too, because both depend on the public keys in those certificates. For cluster routes, note that cert_file serves as both client and server certificate for mutual TLS. Store the fingerprints beside the exported configuration so a later check can compare them. The step is done when each certificate referenced in step one appears with its algorithm, expiry and fingerprint.

  5. Review operator mode JWT and NKey setup

    If you run NATS in operator mode, record the operator public key the server uses to verify the chain of operator, account and user signatures. Credentials in that mode are JWTs signed with NKey (Ed25519) key pairs, so list which accounts and users depend on those keys and where the signing seeds are stored. Note that the NKeys project describes Ed25519 signatures and does not mention post-quantum signatures. The step is done when you have the operator public key, a list of signing key locations, and a note of whether the deployment uses operator mode at all.

  6. Check the Synadia FIPS build binary

    If a host runs the Synadia FIPS build, rather than the open-source server, confirm it with go version -m on that binary, then run a grep for fips140=only against the output to see whether the build reports the strict FIPS mode. Synadia says this build disables auth callout because it relies on X25519, which it describes as not currently NIST approved for strict FIPS environments. Synadia also says it makes no statements about FIPS 140-3 certification status, so record the result of the grep as a build fact, not as a certification. The step is done when each FIPS host has the grep result recorded with its binary path and date.

  7. Put questions to the vendor

    Some items cannot be read from a running server, so send them to NATS or Synadia in writing and keep the replies with the inventory. Ask whether any post-quantum signature support is planned for certificates, NKeys or JWTs, since the NATS docs describe only hybrid key exchange for TLS today. Ask which Go toolchain versions and build configurations the vendor tests, and whether a FIPS build will carry post-quantum key exchange. Ask about the handshake_first default, since the TLS reference and the encryption guide give different default timeouts as of 2026-12-03. The step is done when each question has a dated written reply or a note that no reply has arrived.

Questions engineers and vendor-risk reviewers ask about NATS cryptography

Is NATS quantum safe?

The supported answer is narrower than that word suggests: NATS Server 2.12.0 added an X25519MLKEM768 option to its TLS curve preferences, which allows a hybrid key exchange that combines ML-KEM with the classical X25519 curve. That option covers only the TLS key exchange on client, cluster route, leaf node and gateway connections. The NATS documentation and release notes, as of 2026-12-03, do not describe post-quantum signatures for certificates, NKeys or JWTs. No vendor or project statement in the supplied facts calls NATS quantum safe, and this page does not make that claim. Confirm the exact coverage of your own deployment against each connection type.

Which NATS Server version added the hybrid curve option?

NATS Server 2.12.0 added the X25519MLKEM768 option to the TLS curve preferences, through the change tracked as pull request 7280. The same release was built with Go 1.25.1. The pull request was opened to fix issue 7279, which reported that the server would not boot with curve_preferences set to X25519Kyber768. Versions before 2.12.0 do not include this option in the supplied facts, so check the release notes for the version you run before relying on the setting.

Does the default NATS configuration include hybrid key exchange?

The documentation lists curve_preferences as unset by default on the client, leaf node and cluster pages, and the server source shows that when the setting is unset, the default curve list places the three ML-KEM hybrid curves first, followed by X25519, CurveP256, CurveP384 and CurveP521. In practice, a version whose defaults include the hybrid curves will negotiate them when a peer supports them, while the list omits X25519 when Go FIPS 140 mode is enabled. Confirm the default on your version by reading the server's effective configuration, and set curve_preferences explicitly in the relevant tls block if you need a fixed list. The setting is hot reloadable.

Do NATS signatures, NKeys or JWTs support post-quantum algorithms?

The supplied facts say no for the current documentation. The NKeys repository describes NKeys as a public-key signature system based on Ed25519 and does not mention post-quantum cryptography. In operator mode, credentials are JWTs signed with NKey pairs, and the NATS security documentation and release notes do not describe ML-DSA or SLH-DSA support for certificates, NKeys or JWTs as of 2026-12-03. The hybrid curves apply only to TLS key exchange. Treat signing and identity as a separate inventory item that depends on public-key algorithms.

Does upgrading NATS for post-quantum key exchange cost extra?

The supplied facts do not give a price or effort figure for a NATS upgrade, and this page does not estimate one. The cost components to examine are these. The server upgrade to 2.12.0 or later and the TLS configuration change are the main engineering work, and both are done by your team or a partner. Clients must also support the hybrid curves, so review client libraries and the connections they open. Synadia's licensed builds for strict FIPS 140-3 environments are a separate commercial item, and the supplied facts say to contact Synadia to obtain them. Ask any vendor for a written quote that separates the one-time migration work from recurring license and support fees.

What can our own team do without outside help?

Your team can do the inventory and the configuration work without an outside party. Start by listing every tls block for client, cluster route, leaf node and gateway connections, and record the cert_file, key_file, ca_file, cipher_suites, curve_preferences and min_version values for each. Check the version of every server and client library, since the hybrid curve option depends on version. Then review the NKey and JWT signing keys in operator mode, which the supplied facts show do not have post-quantum support. Test the curve_preferences change in a non-production cluster before enabling it, because the documented handshake timeout defaults disagree between two NATS pages. Outside help is useful for a formal assessment or a regulated evidence package.

What should we ask NATS or Synadia before buying or renewing?

Ask specific questions that the supplied facts leave open. Ask whether post-quantum signatures are planned for certificates, NKeys and JWTs, and when. Ask which NATS Server version first enables each hybrid curve in your build, and whether the default curve list will change. Ask Synadia which algorithms its FIPS 140-3 build permits, since its page says auth callout is disabled there because X25519 is not currently NIST approved for strict FIPS environments, and whether it has a post-quantum roadmap for that build. Ask for any statement about CNSA 2.0 alignment in writing, because the supplied facts contain none. Request that answers be dated, because the Synadia FIPS page makes no statement about certification status.

How do we verify the FIPS build of NATS Server?

Synadia's FIPS page says a customer validates a build with the command go version -m ./nats-server-fips and by checking the output for fips140=only. Run that check on the binary you deploy, not on a copy from another system, and record the result as part of your evidence. The same page says Synadia makes no statement or representation about FIPS 140-3 certification status, so the check confirms how the binary was built, not that a validated module is in use. Keep the build output with your change records and repeat the check after each upgrade.

How DeployOpen works on this

DeployOpen builds a NATS cryptographic inventory by mapping every connection type, its TLS settings and its key material against the configuration that actually runs in your environment. The result is a dated, sourced record of what uses public-key cryptography in client, cluster, leaf node and gateway links, and what each setting currently allows.

How we scope

  • Confirm which NATS Server versions, editions and Go build versions are in use across your environments.
  • List every TLS block in scope: client, cluster route, leaf node and gateway connections, with their owners.
  • Agree the scope in writing before work starts, including which JetStream streams and operator-mode accounts are covered.

How we build

  • Read the live server configuration and record cert_file, key_file, ca_file, curve_preferences and cipher_suites for each block.
  • Trace each certificate and pinned_certs or ocsp_peer dependency back to the public keys it relies on.
  • Record which operator, account and user NKey and JWT chains verify logins, and where JetStream encryption is enabled.

How we hand over

  • Deliver a dated inventory table that lists each connection type, its key exchange, signature and symmetric algorithms.
  • Flag settings where the documentation disagrees with itself, such as the TLS handshake timeout default, for your confirmation.
  • Document what was verified in your environment and what still needs confirmation from Synadia or the NATS project.

How we support

  • Re-run the inventory against new NATS Server releases when you upgrade, since curve and cipher defaults can change.
  • Ongoing support and continuous review are available as a retainer, scoped in writing like the original engagement.
  • Retest configuration changes on request so the inventory stays accurate for your security and vendor-risk reviews.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.