From f9701ca4d4e57208c1a31bf7b99f537ed3b28d72 Mon Sep 17 00:00:00 2001 From: "Jim Wang @ Intel" Date: Thu, 10 Dec 2020 16:05:50 -0700 Subject: [PATCH] feat(security): Remove Vault dependency on Consul by using file backend (#2886) * feat(security): Remove Vault dependency on Consul by using file backend instead of consul Change the Vault backend storage configuration from Consul to Filesystem so that we can remove the Vault dependency on Consul. The docker-compose file will also need to change to remove the -consul dependency from repo developer-script. The current edgex-consul healthy check on Vault also need to be remove as that check becomes superfluous. Closes: #2882 --- cmd/security-secrets-setup/start_vault.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/cmd/security-secrets-setup/start_vault.sh b/cmd/security-secrets-setup/start_vault.sh index b9df82ff28..640e256bd0 100755 --- a/cmd/security-secrets-setup/start_vault.sh +++ b/cmd/security-secrets-setup/start_vault.sh @@ -27,13 +27,9 @@ listener "tcp" { tls_disable = "1" cluster_address = "edgex-vault:8201" } - backend "consul" { - path = "vault/" - address = "edgex-core-consul:8500" - scheme = "http" - redirect_addr = "http://edgex-vault:8200" - cluster_addr = "http://edgex-vault:8201" - } + backend "file" { + path = "/vault/file" + } default_lease_ttl = "168h" max_lease_ttl = "720h" '