OneFS NFS over TLS Configuration and Management

The previous article in this series introduced the protocol mechanics, security modes, and policy model behind OneFS 9.16’s native support for encrypting NFS traffic in flight using Transport Layer Security (TLS), implementing RFC 9289, RPC-over-TLS. In contrast, this article covers the practical side: The CLI and Platform API (pAPI) commands used to configure it, certificate management, client mount requirements, and troubleshooting workflow.

Cluster-wide settings can be viewed and modified via the ‘isi nfs settings global’ CLI command set, as follows:

To view the current per-zone TLS settings:

# isi nfs settings global view | grep TLS

NFS TLS Mode: none:tls:mtls

NFS TLS Min Version: 1.3

NFS TLS Ciphers: -

NFS TLS OCSP Mode: none

NFS TLS OCSP Address: -

To require TLS or mTLS cluster-wide, disallowing plaintext NFS:

# isi nfs settings global modify --nfs-tls-mode tls:mtls

To set the minimum negotiable TLS version:

# isi nfs settings global modify --nfs-tls-min-version 1.3

The equivalent operation endpoints are exposed via version 27 of the OneFS Platform API (pAPI):

GET  /platform/27/protocols/nfs/settings/global
PUT  /platform/27/protocols/nfs/settings/global

For example:

PUT /platform/27/protocols/nfs/settings/global

{

"nfs_tls_mode": "tls:mtls",

"nfs_tls_min_version": "1.3"

}
Option Values Default Description
nfs_tls_mode none, tls, mtls
(colon-separated list)
none:tls:mtls Set of transport-security modes permitted cluster-wide.
nfs_tls_min_version 1.2, 1.3 1.3 Minimum negotiable TLS version. TLS 1.1 and earlier are always rejected.
nfs_tls_ciphers OpenSSL cipher string PFS-capable OpenSSL default Cipher suites permitted for TLS 1.2 and TLS 1.3 negotiation.
nfs_tls_ocsp_mode none, strict, no_responder_ok, no_response_ok none OCSP revocation-checking behavior for mTLS client certificates.
nfs_tls_ocsp_address URL string (empty) OCSP responder URL.

The ‘nfs_tls_mode’ value directly determines what any export on the cluster is permitted to require, since the effective per-export policy can never exceed this ceiling:

Value Behavior
none:tls:mtls (default) Any mode is permitted; the client chooses plaintext, TLS, or mTLS.
tls:mtls Encryption is required; the client must mount with xprtsec=tls or xprtsec=mtls.
mtls Mutual TLS is required; the client must present a certificate.

Each NFS export carries its own ‘xprtsec’ allowlist, a colon-separated set drawn from ‘none’, ‘tls’, and ‘mtls’, which independently constrains the transport-security modes a client may use to mount that specific export. The effective policy enforced for a given export is always the intersection of this allowlist and the cluster-wide ‘nfs_tls_mode’ ceiling described above.

Per-export policy is configured via the CLI as follows:

To require TLS or mTLS on an existing export:

# isi nfs exports modify <id> --xprtsec tls:mtls

To require mutual TLS specifically:

# isi nfs exports modify <id> --xprtsec mtls

To set the cluster-wide default for newly created exports:

# isi nfs settings export modify --xprtsec tls:mtls

To view the configured policy on an export:

# isi nfs export view 1 | grep Xprtsec

Xprtsec (Transport Security): none:tls:mtls

Similarly, the equivalent Platform API (pAPI v27) operations:

POST /platform/27/protocols/nfs/exports

{ "paths": ["/ifs/secure"], "xprtsec": "tls:mtls" }
PUT /platform/27/protocols/nfs/exports/5

{ "xprtsec": "mtls" }

A configuration change to an export whose resulting intersection of the cluster-wide ‘nfs_tls_mode’ and an export’s ‘xprtsec’ would be empty (eg. a cluster-wide mode of ‘none’ with an export requiring ‘tls:mtls’) is rejected at configuration time with an explicit error. This prevents an export from inadvertently becoming inaccessible to any client. The following table includes the resulting effective policy for combinations of the two settings:

Cluster nfs_tls_mode Export xprtsec Effective Policy Result
none:tls:mtls none:tls:mtls {none, tls, mtls} Client chooses any mode
none:tls:mtls tls:mtls {tls, mtls} At least TLS required
none:tls:mtls mtls {mtls} mTLS required
none:tls tls:mtls {tls} TLS required (mTLS not enabled cluster-wide)
none tls:mtls { } — empty Rejected at configuration time

Administrative control of NFS over TLS is governed by role-based access control (RBAC). Configuring TLS-specific settings requires the “ISI_PRIV_NFS_TLS” privilege, held only by the SystemAdmin role by default; reading the current configuration stays available to ordinary NFS operators.

OneFS NFS over TLS reuses OneFS’s existing certificate management infrastructure rather than introducing a dedicated certificate store or separate tooling. The cluster’s server certificate, required for both TLS and mutual TLS, is a standard X.509v3 certificate with a Subject Alternative Name matching the server’s hostname or IP address, stored in the “system_server” certificate store shared with other OneFS services, and imported via the standard certificate management command set:

# isi certificate server import <cert-file> <key-file>

For mutual TLS specifically, CA certificates used to verify client certificates are stored in the “system_ca” certificate store and imported separately:

# isi certificate authority import <ca-cert-file>

Multiple server certificates may coexist in the “system_server” store, with the appropriate certificate selected automatically at handshake time based on the client’s SNI (Server Name Indication) hostname; because SmartConnect zone names naturally map each zone to its own certificate, no per-zone certificate configuration step is required beyond the initial import. Newly imported certificates are detected automatically via the MCP gconfig monitor and are hot-reloaded without disrupting existing TLS sessions, which continue to use the certificate presented at the time they were established. CELOG raises an alert when a certificate approaches expiration, with a configurable default threshold of one month.

The OneFS 9.16 NFS over TLS security properties and considerations include the following:

  • TLS version and cipher control: TLS 1.3 is the default minimum version, with TLS 1.2 available as an explicit administrator opt-in; TLS 1.1 and earlier are rejected unconditionally. Perfect Forward Secrecy is enforced through an ECDHE-only cipher policy, and the permitted cipher suite set is independently configurable cluster-wide.
  • FIPS 140-2 alignment: when OneFS FIPS mode is active, non-FIPS-validated cryptographic algorithms are automatically excluded from the negotiable cipher set, for example CHACHA20-POLY1305, with no NFS-specific FIPS configuration required beyond enabling cluster-wide FIPS mode.
  • Fail-secure design: a failed or incomplete TLS handshake always results in connection rejection rather than a fallback to plaintext, and private key material is never written to logs, diagnostic bundles, or core dumps.
  • Dedicated privilege scoping: TLS configuration changes require the dedicated ISI_PRIV_NFS_TLS privilege, distinct from general NFS administration privileges.

From the client side, NFS over TLS requires a Linux client running kernel 6.5 or later with RPC-over-TLS support, including the tlshd user-space handshake daemon installed and running. The cluster’s CA certificate, or the certificate itself for a self-signed deployment, must be present in the client’s trust store. Mounting with TLS or mutual TLS is requested via the standard xprtsec mount option:

# Server-authenticated TLS, NFSv4.2

mount -t nfs -o vers=4.2,xprtsec=tls <server>:/ifs/data /mnt

 

# Mutual TLS, NFSv4.2

mount -t nfs -o vers=4.2,xprtsec=mtls <server>:/ifs/data /mnt

 

# Server-authenticated TLS, NFSv3

mount -t nfs -o vers=3,xprtsec=tls <server>:/ifs/data /mnt

Clients that do not request TLS are entirely unaffected by this capability; TLS and non-TLS connections coexist on the same NFS port, and no firewall or network configuration changes are required to adopt the feature.

Existing clients that never ask for TLS are completely unaffected, with no reconfiguration nor behavior change. When something does go wrong on the TLS side, the troubleshooting sequence is typically to:

  1. Capture the exact mount command, NFS version, and “xprtsec” mode being requested.
  2. Check whether the cluster-wide mode and the export’s allow-list actually intersect.
  3. Validate both certificates end to end, including SAN matching, trust chain, expiry, and revocation state.
  4. Confirm the client’s kernel and tlshd are in good shape.
  5. Inspect the ‘/var/log/nfs.log’ file on the cluster side, plus the NFS client’s ‘tlshd’ journal (via the ‘journalctl -u tlshd.service’ CLI command), for specifics of the actual handshake failure.

Structured TLS log events carry a connection correlation identifier specifically so related entries can be stitched together across that investigation, and escalation packages should carry certificate metadata, but never private key material.

Leave a Reply

Your email address will not be published. Required fields are marked *