Fix double encoded gossip encryption key in Consul container (#51982)
This commit is contained in:
parent
ff2b7928b6
commit
c6ae88b396
|
|
@ -108,8 +108,6 @@ consul_configure_encryption() {
|
|||
|
||||
if [[ -z ${CONSUL_GOSSIP_ENCRYPTION_KEY} ]]; then
|
||||
CONSUL_GOSSIP_ENCRYPTION_KEY=$("${CONSUL_BASE_DIR}/bin/consul" "keygen")
|
||||
else
|
||||
CONSUL_GOSSIP_ENCRYPTION_KEY=$(base64 <<<"${CONSUL_GOSSIP_ENCRYPTION_KEY}")
|
||||
fi
|
||||
|
||||
# In case the node name was not set, we automatically set
|
||||
|
|
|
|||
|
|
@ -295,8 +295,8 @@ When you start the HashiCorp Consul image, you can adjust the configuration of t
|
|||
* `CONSUL_RAFT_MULTIPLIER`: An integer multiplier used by HashiCorp Consul servers to scale key Raft timing parameters. Default: **1**.
|
||||
* `CONSUL_LOCAL_CONFIG`: Custom user configuration that will be added as a file in the config dir.
|
||||
* `CONSUL_GOSSIP_ENCRYPTION`: Enable Gossip encryption. Default: **no**.
|
||||
* `CONSUL_GOSSIP_ENCRYPTION_KEY`: Gossip private simmetric key.
|
||||
* `CONSUL_GOSSIP_ENCRYPTION_KEY_FILE`: File containing the gossip private simmetric key. If both `CONSUL_GOSSIP_ENCRYPTION_KEY` and `CONSUL_GOSSIP_ENCRYPTION_KEY_FILE` are provided, consul will use the `CONSUL_GOSSIP_ENCRYPTION_KEY_FILE`.
|
||||
* `CONSUL_GOSSIP_ENCRYPTION_KEY`: Base64-encoded gossip private symmetric key. Can be generated by running `consul keygen`.
|
||||
* `CONSUL_GOSSIP_ENCRYPTION_KEY_FILE`: File containing the gossip private symmetric key. If both `CONSUL_GOSSIP_ENCRYPTION_KEY` and `CONSUL_GOSSIP_ENCRYPTION_KEY_FILE` are provided, consul will use the `CONSUL_GOSSIP_ENCRYPTION_KEY_FILE`.
|
||||
* `CONSUL_DISABLE_KEYRING_FILE`: If set, the keyring will not be persisted to a file. Valid vaules: true, false. Default: **false**.
|
||||
* `CONSUL_ENABLE_UI`: Enable web user interface. Valid values: true, false. Default: **true**.
|
||||
* `CONSUL_BOOTSTRAP_EXPECT`: Number of expected nodes in the cluster, including itself. Default: **1**.
|
||||
|
|
|
|||
Loading…
Reference in New Issue