feat(core): Introduce AWS secrets manager as external secrets store (#8982)

This commit is contained in:
Iván Ovejero
2024-03-28 10:15:58 +01:00
committed by GitHub
parent ae75cf414a
commit 2aab78b058
15 changed files with 380 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ export function getSecretsProxy(additionalData: IWorkflowExecuteAdditionalData):
return new Proxy(
{},
{
get(target2, secretName): IDataObject | undefined {
get(target2, secretName) {
if (typeof secretName !== 'string') {
return;
}
@@ -47,7 +47,7 @@ export function getSecretsProxy(additionalData: IWorkflowExecuteAdditionalData):
}
const retValue = secretsHelpers.getSecret(providerName, secretName);
if (typeof retValue === 'object' && retValue !== null) {
return buildSecretsValueProxy(retValue) as IDataObject;
return buildSecretsValueProxy(retValue as IDataObject);
}
return retValue;
},