Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
fix(vault): follow all redirects to support vault HA (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
bchrobot authored Jun 2, 2020
1 parent 131e201 commit a05aa92
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ const systemManagerBackend = new SystemManagerBackend({
assumeRole: awsConfig.assumeRole,
logger
})
const vaultClient = vault({ apiVersion: 'v1', endpoint: envConfig.vaultEndpoint })
const vaultClient = vault({
apiVersion: 'v1',
endpoint: envConfig.vaultEndpoint,
requestOptions: {
// When running vault in HA mode, you must follow redirects on PUT/POST/DELETE
// See: https://github.com/kr1sp1n/node-vault/issues/23
followAllRedirects: true
}
})
const vaultBackend = new VaultBackend({ client: vaultClient, logger })
const azureKeyVaultBackend = new AzureKeyVaultBackend({
credential: azureConfig.azureKeyVault(),
Expand Down

0 comments on commit a05aa92

Please sign in to comment.