From 7fc49c3878125b3f707deed189016eb26161dac9 Mon Sep 17 00:00:00 2001 From: Gregor Billing Date: Sat, 23 Sep 2023 23:01:21 +0200 Subject: [PATCH] Rename new Vault instance's secrets mount point --- WcaOnRails/app_secrets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WcaOnRails/app_secrets.rb b/WcaOnRails/app_secrets.rb index 1b56381464..17555833c7 100644 --- a/WcaOnRails/app_secrets.rb +++ b/WcaOnRails/app_secrets.rb @@ -31,7 +31,7 @@ def vault_file(secret_name, file_path) Vault.with_retries(Vault::HTTPConnectionError, Vault::HTTPError) do |attempt, e| puts "Received exception #{e} from Vault - attempt #{attempt}" if e.present? - secret = Vault.logical.read("secret/data/#{EnvConfig.VAULT_APPLICATION}/#{secret_name}") + secret = Vault.logical.read("kv/data/#{EnvConfig.VAULT_APPLICATION}/#{secret_name}") raise "Tried to read #{secret_name}, but doesn't exist" unless secret.present? secret.data[:data]