From b657bfe5bbc9d5dc9b6445b3ff1ade61f815ab37 Mon Sep 17 00:00:00 2001 From: Dimitrios Vasilas Date: Fri, 18 Oct 2024 13:13:45 +0300 Subject: [PATCH] test --- lib/auth/Vault.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/auth/Vault.ts b/lib/auth/Vault.ts index ef80e9a85..6cd99c438 100644 --- a/lib/auth/Vault.ts +++ b/lib/auth/Vault.ts @@ -11,7 +11,7 @@ import AuthInfo from './AuthInfo'; * items used to calculate signature on chunks if streaming auth */ function vaultSignatureCb( - err: Error | null, + err: Error | any | null, authInfo: { message: { body: any } }, log: Logger, callback: (err: Error | null, data?: any, results?: any, params?: any) => void, @@ -24,6 +24,9 @@ function vaultSignatureCb( if (err) { log.debug('received error message from auth provider', { errorMessage: err }); + if (err.code === 'InvalidAccessKeyId') { + return callback(errors.InvalidAccessKeyId); + } return callback(err); } log.debug('received info from Vault', { authInfo });