From e6126aa9dc410cf273868b149eb3adca31ce3d9b Mon Sep 17 00:00:00 2001 From: Daniele Iasella <2861984+overbit@users.noreply.github.com> Date: Wed, 29 Nov 2023 16:18:24 +0000 Subject: [PATCH] fix(vault): generated code not being able to build --- plugins/secrets-manager-hashicorp-vault/src/constants.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/secrets-manager-hashicorp-vault/src/constants.ts b/plugins/secrets-manager-hashicorp-vault/src/constants.ts index 0d679539..59e90c42 100644 --- a/plugins/secrets-manager-hashicorp-vault/src/constants.ts +++ b/plugins/secrets-manager-hashicorp-vault/src/constants.ts @@ -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 ?? "";