-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CE-654 - TLS Encryption docs + CE-713 - Gossip Encryption key rotation #21509
Changes from 44 commits
2c29ac4
8316b47
4337d55
805eafd
d2eb834
b25aec8
a10099a
bdb1b9a
b380124
57b7dab
0e2366b
0859d97
e0b4e05
ad83a22
9b857af
c0f59fd
baf7582
c81a947
f7842d4
1369c7e
5abe2e8
cc95507
959265f
e831a60
8a28c40
e5a15d1
3d405d4
a7715a7
d2f697b
6bce157
4de0225
51a4993
029baaf
9955d8a
c9f2953
baed998
d8c8a0c
bda2174
eb6bdc8
f50b746
1d242c5
3d11442
4650c43
51b5263
3f485b0
71b093b
d4a5eac
ca80d93
7ec4859
7a71843
0c3356c
f986f2d
f6fb9d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,284 @@ | ||||||||||||||||||||||
--- | ||||||||||||||||||||||
layout: docs | ||||||||||||||||||||||
page_title: Gossip Encryption | ||||||||||||||||||||||
description: >- | ||||||||||||||||||||||
Consul supports encrypting all of its network traffic. Gossip communication between all agents can be encrypted unsing a symmetric key. | ||||||||||||||||||||||
--- | ||||||||||||||||||||||
|
||||||||||||||||||||||
# Gossip Encryption | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
This topics describes how to enable gossip encryption on a Consul datacenter. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
## Enable gossip encryption | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
We recommend enabling gossip encryption to all new deployed Consul datacenters. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
danielehc marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||
If you have an existing datacenter running Consul `0.8.4` and above, it is possible to modify its configuration to support gossip encryption. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
v0.8.x is too old for us to maintain in documentation. That's about 4 years ago. I'm keeping the instruction to "enable on an existing datacenter," just moving some words around. |
||||||||||||||||||||||
|
||||||||||||||||||||||
Below are listed the steps required for both scenarios: | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
- [Enable gossip encryption on a new datacenter](#enable-gossip-encryption-on-a-new-datacenter) | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
1. Use `consul keygen` to generate a new gossip encryption key. | ||||||||||||||||||||||
1. Create a configuration file that includes the `encrypt` parameter set to the newly generated key. | ||||||||||||||||||||||
1. Distribute the configuration file to all the agent nodes that need to be pert of the datacenter and start the Consul agent on all the nodes. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
- [Enable gossip encryption on an existing datacenter](#enable-gossip-encryption-on-an-existing-datacenter) | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
1. Use `consul keygen` to generate a new gossip encryption key. | ||||||||||||||||||||||
1. Create a configuration file that includes the `encrypt` parameter set to the newly generated key and `encrypt_verify_incoming` and `encrypt_verify_outgoing` set to `false`. | ||||||||||||||||||||||
1. Distribute the configuration file to all the agent nodes that need to be pert of the datacenter and perform a rolling restart of all the agents. | ||||||||||||||||||||||
1. Update the `encrypt_verify_outgoing` setting to `true` and perform a rolling restart of all the agents. | ||||||||||||||||||||||
1. Update the `encrypt_verify_incoming` setting to `true` and perform a rolling restart of all the agents. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
If you have multiple datacenters joined in WAN federation, be sure to use _the same encryption key_ in all datacenters. | ||||||||||||||||||||||
|
||||||||||||||||||||||
## Enable gossip encryption on a new datacenter | ||||||||||||||||||||||
|
||||||||||||||||||||||
Enable gossip encryption on a new datacenter is a straightforward process and should be the default approach for all new datacenters you are deploying. To enable gossip encryption you set an encryption key when starting the Consul agent. The key can be set via the `encrypt` parameter. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Repetitive statements can be removed |
||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 1**: Generate an encryption key using `consul keygen`. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keygen | ||||||||||||||||||||||
YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA= | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
You can generate a new gossip key using any method that can creates 32 random bytes encoded in base64. | ||||||||||||||||||||||
|
||||||||||||||||||||||
For example on Linux you can use `openssl` or `dd` to create one. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
- `openssl rand -base64 32` | ||||||||||||||||||||||
- `dd if=/dev/urandom bs=32 count=1 status=none | base64` | ||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 2**: Create a configuration file that includes the `encrypt` parameter set to the newly generated key. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```hcl | ||||||||||||||||||||||
encrypt = "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=" | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
```json | ||||||||||||||||||||||
{ | ||||||||||||||||||||||
"encrypt": "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=" | ||||||||||||||||||||||
} | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 3**: Distribute the configuration file to all the agent nodes that need to be pert of the datacenter and start the Consul agent on all the nodes. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
If gossip encryption is properly configured `Gossip Encryption: true` will be shown in the logs at startup. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeBlockConfig filename="consul.log" hideClipboard highlight="10"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```log | ||||||||||||||||||||||
==> Starting Consul agent... | ||||||||||||||||||||||
Version: '1.19.0' | ||||||||||||||||||||||
Build Date: '2024-06-12 13:59:10 +0000 UTC' | ||||||||||||||||||||||
Node ID: 'e74b1ade-e932-1707-cdf1-6579b8b2536c' | ||||||||||||||||||||||
Node name: 'consul-server-0' | ||||||||||||||||||||||
Datacenter: 'dc1' (Segment: '<all>') | ||||||||||||||||||||||
Server: true (Bootstrap: false) | ||||||||||||||||||||||
Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: 8443, gRPC: -1, gRPC-TLS: 8503, DNS: 53) | ||||||||||||||||||||||
Cluster Addr: 172.19.0.7 (LAN: 8301, WAN: 8302) | ||||||||||||||||||||||
Gossip Encryption: true | ||||||||||||||||||||||
Auto-Encrypt-TLS: true | ||||||||||||||||||||||
ACL Enabled: true | ||||||||||||||||||||||
Reporting Enabled: false | ||||||||||||||||||||||
ACL Default Policy: deny | ||||||||||||||||||||||
HTTPS TLS: Verify Incoming: false, Verify Outgoing: true, Min Version: TLSv1_2 | ||||||||||||||||||||||
gRPC TLS: Verify Incoming: false, Min Version: TLSv1_2 | ||||||||||||||||||||||
Internal RPC TLS: Verify Incoming: true, Verify Outgoing: true (Verify Hostname: true), Min Version: TLSv1_2 | ||||||||||||||||||||||
## ... | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeBlockConfig> | ||||||||||||||||||||||
|
||||||||||||||||||||||
## Enable gossip encryption on an existing datacenter | ||||||||||||||||||||||
|
||||||||||||||||||||||
Gossip encryption can also be enabled on existing datacenters, but requires several extra steps. | ||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 1**: Generate an encryption key using `consul keygen`. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keygen | ||||||||||||||||||||||
YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA= | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 2**: Create a configuration file that includes the `encrypt` parameter set to the newly generated key. Set `encrypt_verify_incoming` and `encrypt_verify_outgoing` to `false`. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeBlockConfig filename="/etc/consul.d/encryption.hcl"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```hcl | ||||||||||||||||||||||
encrypt = "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=" | ||||||||||||||||||||||
encrypt_verify_incoming = false | ||||||||||||||||||||||
encrypt_verify_outgoing = false | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeBlockConfig> | ||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeBlockConfig filename="/etc/consul.d/encryption.json"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```json | ||||||||||||||||||||||
{ | ||||||||||||||||||||||
"encrypt": "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=", | ||||||||||||||||||||||
"encrypt_verify_incoming" : false, | ||||||||||||||||||||||
"encrypt_verify_outgoing" : false | ||||||||||||||||||||||
} | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeBlockConfig> | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 3**: Distribute the configuration file to all the agent nodes that need to be pert of the datacenter and initiate a rolling update of all the | ||||||||||||||||||||||
agents with these new values. After this step, the agents will be able to decrypt gossip but will not yet be able to send encrypted traffic. A rolling update can be made by restarting the Consul agents (clients and servers) in turn. `consul reload` or `kill -HUP <process_id>` is _not_ sufficient to change the gossip configuration. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 4**: Update the `encrypt_verify_outgoing` setting to `true` and perform another rolling update of all the agents by restarting Consul on each agent. The agents will now be sending encrypted gossip but will still allow incoming unencrypted traffic. Complete the process on all the nodes before moving to the next step. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeBlockConfig filename="/etc/consul.d/encryption.hcl"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```hcl | ||||||||||||||||||||||
encrypt = "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=" | ||||||||||||||||||||||
encrypt_verify_incoming = false | ||||||||||||||||||||||
encrypt_verify_outgoing = true | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeBlockConfig> | ||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeBlockConfig filename="/etc/consul.d/encryption.json"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```json | ||||||||||||||||||||||
{ | ||||||||||||||||||||||
"encrypt": "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=", | ||||||||||||||||||||||
"encrypt_verify_incoming": false, | ||||||||||||||||||||||
danielehc marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||
"encrypt_verify_outgoing": true | ||||||||||||||||||||||
} | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeBlockConfig> | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
**Step 5**: Update the `encrypt_verify_incoming` setting to `true` and perform a final rolling update on all the agents. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeBlockConfig filename="/etc/consul.d/encryption.hcl"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```hcl | ||||||||||||||||||||||
encrypt = "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=" | ||||||||||||||||||||||
encrypt_verify_incoming = true | ||||||||||||||||||||||
encrypt_verify_outgoing = true | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeBlockConfig> | ||||||||||||||||||||||
|
||||||||||||||||||||||
<CodeBlockConfig filename="/etc/consul.d/encryption.json"> | ||||||||||||||||||||||
|
||||||||||||||||||||||
```json | ||||||||||||||||||||||
{ | ||||||||||||||||||||||
"encrypt": "YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA=", | ||||||||||||||||||||||
"encrypt_verify_incoming": true, | ||||||||||||||||||||||
"encrypt_verify_outgoing": true | ||||||||||||||||||||||
} | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeBlockConfig> | ||||||||||||||||||||||
|
||||||||||||||||||||||
</CodeTabs> | ||||||||||||||||||||||
|
||||||||||||||||||||||
## Rotate the gossip encryption key | ||||||||||||||||||||||
|
||||||||||||||||||||||
It is important to periodically rotate the gossip encryption key used by your Consul datacenter. | ||||||||||||||||||||||
|
||||||||||||||||||||||
The process of rotating the gossip encryption key is centralized and can be performed on a single datacenter node. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
The steps to rotate a gossip encryption key are listed below: | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
1. Generate a new encryption key using the `consul keygen` command. | ||||||||||||||||||||||
1. Install the new encryption key using the `consul keyring -install` command. | ||||||||||||||||||||||
1. Instruct Consul to use the new key with the `consul keyring -install` command. | ||||||||||||||||||||||
1. Verify the new key is installed in your Consul datacenter with the `consul keyring -list` command. | ||||||||||||||||||||||
1. Remove the old key using the `consul keyring -remove` command. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Typo + matching the order of the following instructions |
||||||||||||||||||||||
|
||||||||||||||||||||||
### Generate a new encryption key | ||||||||||||||||||||||
|
||||||||||||||||||||||
Generate a new key using `consul keygen`: | ||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keygen | ||||||||||||||||||||||
FfRV9j6NXU9LlCI4zLZjjpZdj4Nrqsdm7R8YgzSHzHw= | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
### Add new key to the keyring | ||||||||||||||||||||||
|
||||||||||||||||||||||
Add your newly generated key to the keyring. | ||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keyring -install FfRV9j6NXU9LlCI4zLZjjpZdj4Nrqsdm7R8YgzSHzHw= | ||||||||||||||||||||||
==> Installing new gossip encryption key... | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
### Verify that the new key is installed | ||||||||||||||||||||||
|
||||||||||||||||||||||
Once you have added the key to one of the Consul agents, it will be propagated across the whole datacenter. You do not need to repeat the command on other agents. | ||||||||||||||||||||||
|
||||||||||||||||||||||
You can ensure that the key has been propagated to all agents by verifying the number of agents that recognize the key over the number of total agents in the datacenter. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keyring -list | ||||||||||||||||||||||
==> Gathering installed encryption keys... | ||||||||||||||||||||||
|
||||||||||||||||||||||
WAN: | ||||||||||||||||||||||
FfRV9j6NXU9LlCI4zLZjjpZdj4Nrqsdm7R8YgzSHzHw= [1/1] | ||||||||||||||||||||||
YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA= [1/1] | ||||||||||||||||||||||
|
||||||||||||||||||||||
dc1 (LAN): | ||||||||||||||||||||||
YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA= [7/7] | ||||||||||||||||||||||
FfRV9j6NXU9LlCI4zLZjjpZdj4Nrqsdm7R8YgzSHzHw= [7/7] | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
You must check that the two keys are installed in the datacenter, and are recognized by all agents, as well as by all the server agents. The server agents are listed in the `WAN` section. Do not proceed to the next step unless all agents have the new key. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
### Promote the new key to primary | ||||||||||||||||||||||
|
||||||||||||||||||||||
Once all agents have received the key and are able to use it as the primary encryption key, it is possible to promote the new key to primary. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keyring -use FfRV9j6NXU9LlCI4zLZjjpZdj4Nrqsdm7R8YgzSHzHw= | ||||||||||||||||||||||
==> Changing primary gossip encryption key... | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
### Remove the old key from the keyring | ||||||||||||||||||||||
|
||||||||||||||||||||||
To avoid unused keys remaining in the keyring, we recommended you remove the old primary from the keyring once a new key is installed. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keyring -remove YwgWlBvicJN17UOYcutXLpJSZsw5aWpLEEWqgK635zA= | ||||||||||||||||||||||
==> Removing gossip encryption key... | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
Verify that the keyring contains only one key. | ||||||||||||||||||||||
|
||||||||||||||||||||||
```shell-session | ||||||||||||||||||||||
$ consul keyring -list | ||||||||||||||||||||||
==> Gathering installed encryption keys... | ||||||||||||||||||||||
|
||||||||||||||||||||||
WAN: | ||||||||||||||||||||||
FfRV9j6NXU9LlCI4zLZjjpZdj4Nrqsdm7R8YgzSHzHw= [1/1] | ||||||||||||||||||||||
|
||||||||||||||||||||||
dc1 (LAN): | ||||||||||||||||||||||
FfRV9j6NXU9LlCI4zLZjjpZdj4Nrqsdm7R8YgzSHzHw= [7/7] | ||||||||||||||||||||||
``` | ||||||||||||||||||||||
|
||||||||||||||||||||||
## Next steps | ||||||||||||||||||||||
|
||||||||||||||||||||||
Documentation for the commands used in this topic is available at [Consul agent configuration - Encryption Parameters](/consul/docs/agent/config/config-files#encryption-parameters). You can find more information over the gossip protocol used by Consul at [Gossip Protocol](/consul/docs/architecture/gossip). | ||||||||||||||||||||||
|
||||||||||||||||||||||
Comment on lines
+298
to
+299
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Not really "next steps" - I suggest removing this sentence. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see your point but I think is always useful to have a place where some links to the documentation/reference for the commands shown is located. |
||||||||||||||||||||||
After enabling gossip encryption, to continue securing your Consul datacenter, enable mutual TLS encryption. Read more on [Mutual TLS (mTLS) Encryption](/consul/docs/security/encryption/mtls). | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||
|
||||||||||||||||||||||
To learn how to automate gossip key rotation using HashiCorp Vault and consul-template, refer to the [Automatically Rotate Gossip Encryption Keys Secured in Vault](/consul/tutorials/operate-consul/vault-kv-consul-secure-gossip) tutorial. | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.