Skip to content

Document the arcadedb.ha.tls.* settings: mTLS on the Raft gRPC transport (from v26.9.1) #445

Closed

Description

@robfrank

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:

  1. The certificate needs BOTH serverAuth and clientAuth EKUs. Every node both accepts and initiates Raft connections, so with mutualAuth=true the 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.
  2. 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.
  3. mutualAuth=false does not make trustCertCollectionFile optional. 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.
  4. This is a separate axis from arcadedb.ssl.*. The existing ha-ssl section 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 the X-ArcadeDB-Cluster-Token check on the HTTP side.
  5. 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 clusterTokenPath pattern.

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 WARNING if the private key file is world-readable.

Activity

  1. added
    documentation
    on Aug 30, 2026
  2. self-assigned this
    on Sep 7, 2026
  3. added
    in progress
    on Sep 7, 2026
  4. added a commit that references this issue on Sep 7, 2026
  5. robfrank commented on Sep 7, 2026

    @robfrank
    ContributorAuthor

    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 (both serverAuth and clientAuth usages, 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.

  6. removed
    in progress
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions