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]