Repository navigation
Description
ArcadeData/arcadedb#6918 (issue #3890) adds optional mTLS to the Raft gRPC transport - the channel carrying AppendEntries, RequestVote and the Ratis admin/client calls. Five new server-scoped settings, all undocumented here.
The setting descriptions in GlobalConfiguration carry the operator-facing essentials, but the docs need the deployment story around them, and one existing paragraph is now out of date.
New settings
| Setting | Type | Default | Notes |
|---|---|---|---|
arcadedb.ha.tls.enabled |
Boolean | false |
Master switch. When true the three file settings must all name a readable PEM file or the node refuses to start. |
arcadedb.ha.tls.certChainFile |
String | "" |
This node's certificate + intermediate CAs. Required when enabled. |
arcadedb.ha.tls.privateKeyFile |
String | "" |
PKCS#8 key matching the cert chain. Required when enabled. |
arcadedb.ha.tls.trustCertCollectionFile |
String | "" |
Cluster CA collection. Required when enabled. |
arcadedb.ha.tls.mutualAuth |
Boolean | true |
false gives server-only TLS. |
What the docs should cover
Non-obvious things an operator will otherwise get wrong:
- The certificate needs BOTH
serverAuthandclientAuthEKUs. Every node both accepts and initiates Raft connections, so withmutualAuth=truethe same certificate is presented as the TLS server certificate and as the client certificate. A CA that issues single-purpose certificates produces a handshake failure the startup file checks cannot catch - the file is readable and simply the wrong kind of certificate. - The SAN must match the dial address, i.e. the host as it appears in
arcadedb.ha.serverList. On Kubernetes that is the pod's stable headless-service DNS name, not the pod IP. mutualAuth=falsedoes not maketrustCertCollectionFileoptional. The dialling node still needs the cluster CA to validate the certificate presented by the node it dials. This reads like an "off switch makes things optional" case and is not one.- This is a separate axis from
arcadedb.ssl.*. The existingha-sslsection covers TLS on the HTTP side channels (snapshot download, cross-node verify). The new settings cover the gRPC Raft port. Enabling one does nothing for the other, and gRPC TLS does not replace theX-ArcadeDB-Cluster-Tokencheck on the HTTP side. - Recipes, since the issue deliberately scoped these out of the code: openssl and cert-manager/Vault for issuing a cluster CA and per-node certs with the right SANs and EKUs, plus a Kubernetes Secret mount example alongside the existing
clusterTokenPathpattern.
Existing text that is now wrong
In src/main/asciidoc/how-to/operations/ha.adoc, the Peer allowlist bullet under ===== Security says:
It is not a substitute for mTLS: deploy HA behind a private network, NetworkPolicy, or service mesh on untrusted networks.
mTLS now exists as a first-class option, so this should point at the new settings instead of implying the user has to bring their own service mesh. The arcadedb.ha.tls.enabled description makes the same relationship explicit from the other side: the allowlist is IP-based, defeated by a spoofed source address or a compromised peer, and is a best-effort default rather than a substitute for TLS.
Suggested placement
A new ===== mTLS for the Raft gRPC transport (from v26.9.1) subsection in ha.adoc, next to the existing [[ha-ssl]] section, with a cross-reference between the two so the HTTP/gRPC distinction is unmissable. Worth a mention from the Kubernetes guide too, since cert-manager is the natural issuer there.
Known limitations to state
Both out of scope in #3890, so the docs should say so rather than leave operators looking:
- No certificate rotation without a restart. Changing any of these settings requires restarting the node.
- No KMS integration. Keys are read from files on disk. The server logs a
WARNINGif the private key file is world-readable.
Activity
docs(#445): mTLS on the Raft gRPC transport (arcadedb.ha.tls.*) (#451)
robfrank commentedon Sep 7, 2026
The Raft gRPC transport's new mTLS settings (
arcadedb.ha.tls.*, added in 26.9.1) were undocumented — operators had no guide for issuing the right kind of certificate or wiring it up on Kubernetes. PR #451 adds a full section to the High Availability guide covering how to turn it on, the certificate requirements that are easy to get wrong (bothserverAuthandclientAuthusages, a SAN matching the dial address), why turning off mutual authentication doesn't make the trust file optional, and recipes for issuing certificates with openssl or cert-manager and mounting them on Kubernetes. It also fixes an older paragraph that said mTLS wasn't available.❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.