Table of Contents
1. Check Current Configuration
First, verify that your cluster is using a shared encryption key but has message verification disabled.On Consul Node A
To generate or rotate a gossip encryption key, run:Ensure the same key appears in every server’s
encrypt field.On Consul Node B
encrypt value matches Node A and that both verification flags are set to false.
Restart Agents to View Current State
2. Enable Gossip Encryption
Follow two steps to fully secure gossip traffic:Step 1: Enable Outgoing Verification
Edit each node’sconfig.hcl:
Step 2: Enable Incoming Verification
Update both nodes again:Restarting the Consul agent will momentarily interrupt cluster membership. Perform these steps during a maintenance window.
3. Validate Encryption
After enabling both flags, verify the cluster membership and confirm the encryption status in logs.3.1 Check Cluster Membership
3.2 Confirm Gossip Encryption in Logs
encrypt key in its configuration.