This topic provides an overview of the two distinct encryption systems available in Consul. Gossip encryption and Mutual TLS encryption are the foundations of a secure Consul datacenter.
The guidelines in the Consul security model for operating a secure Consul deployment recommends using both encryption systems.
Consul uses a gossip protocol to perform the following cluster operations:
The gossip protocol, as well as its membership management and message broadcasting features, use the Serf library.
In a default Consul configuration, the gossip protocol uses port 8301
for LAN communications and port 8302
for WAN communications between federated datacenters. Enabling gossip encryption on a Consul datacenter is required to secure traffic on these two ports.
Gossip encryption is symmetric and based on a single key that is shared across all members of the datacenter. You can configure gossip encryption in Consul using the following parameters:
encrypt
.encrypt_verify_incoming
. Only used when upshifting from unencrypted to encrypted gossip on a running cluster.encrypt_verify_outgoing
. Only used when upshifting from unencrypted to encrypted gossip on a running cluster.To learn more about enabling gossip encryption on your Consul datacenter and rotating gossip keys, refer to manage gossip encryption.
Consul uses several communication protocols over different ports that you can secure using mTLS:
8300
.8500
and port 8501
.8502
and port 8503
.Consul uses mTLS to verify the authenticity of server and client agents. It requires that all clients and servers have key pairs that are generated by a single Certification Authority (CA). We recommend using a private CA that is not shared with other applications.
You can configure mTLS in Consul using the tls
stanza in agent configuration files.
You can configure mTLS encryption for each protocol separately using the following parameters in the agent configuration file:
tls.defaults
provides default settings that Consul applies to every interface unless explicitly overridden by protocol-specific configurations.tls.internal_rpc
provides settings for the internal server RPC interface.tls.https
provides settings for the HTTP/HTTPS interface.tls.grpc
provides settings for the gRPC/xDS interface.To learn more about enabling mTLS on your Consul datacenter, refer to Manage mTLS encryption.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4