Skip to content

Commit

Permalink
Improved raft backend template: Added a condition to handle external …
Browse files Browse the repository at this point in the history
…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)
  • Loading branch information
meklon-imhio authored Jan 3, 2024
1 parent c723ec5 commit 5ed64bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/vault_backend_raft.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ storage "raft" {
{% endif %}
{% if not vault_raft_cloud_auto_join_exclusive %}
{% for raft_peer in vault_raft_cluster_members | rejectattr('peer', 'equalto', inventory_hostname) %}
{% if not (vault_tls_disable | bool) %}
{% if not (vault_tls_disable | bool) and vault_tls_client_ca_file != "" %}
retry_join {
leader_api_addr = "{{ raft_peer.api_addr }}"
{% if vault_raft_leader_tls_servername is defined %}
Expand Down

0 comments on commit 5ed64bc

Please sign in to comment.