Skip to content

Commit

Permalink
Rename new Vault instance's secrets mount point
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Sep 23, 2023
1 parent 19132f3 commit 7fc49c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WcaOnRails/app_secrets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7fc49c3

Please sign in to comment.