Skip to content

Commit 5ed64bc

Browse files
authored
Improved raft backend template: Added a condition to handle external non-controllable CAs like Let's Encrypt where we don't have access to vault_tls_client_ca_file, but still need TLS encryption for clients' connections in listeners. This should resolve any issues related to TLS encryption in such scenarios. (#325)
1 parent c723ec5 commit 5ed64bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/vault_backend_raft.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ storage "raft" {
2929
{% endif %}
3030
{% if not vault_raft_cloud_auto_join_exclusive %}
3131
{% for raft_peer in vault_raft_cluster_members | rejectattr('peer', 'equalto', inventory_hostname) %}
32-
{% if not (vault_tls_disable | bool) %}
32+
{% if not (vault_tls_disable | bool) and vault_tls_client_ca_file != "" %}
3333
retry_join {
3434
leader_api_addr = "{{ raft_peer.api_addr }}"
3535
{% if vault_raft_leader_tls_servername is defined %}

0 commit comments

Comments
 (0)