Skip to content

Commit

Permalink
fix(vault): generated code not being able to build
Browse files Browse the repository at this point in the history
  • Loading branch information
overbit committed Nov 29, 2023
1 parent 3c7473a commit e6126aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/secrets-manager-hashicorp-vault/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export const dependencies = {
};

export const authModeToken = `
vault.token = configService.get("VAULT_TOKEN");
vault.token = configService.getOrThrow("VAULT_TOKEN");
`;

export const authModeAppRole = `
const result = await vault.approleLogin({
role_id: configService.get("ROLE_ID"),
secret_id: configService.get("SECRET_ID")
role_id: configService.getOrThrow("ROLE_ID"),
secret_id: configService.getOrThrow("SECRET_ID")
})
vault.token = result.auth.client_token ?? "";
Expand Down

0 comments on commit e6126aa

Please sign in to comment.