mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 06:34:57 +00:00
feat: Add dynamic secrets for Azure Entra ID
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
||||
TCreateDynamicSecretDTO,
|
||||
TDeleteDynamicSecretDTO,
|
||||
TDetailsDynamicSecretDTO,
|
||||
TDynamicSecretsFetchDataDTO,
|
||||
TListDynamicSecretsDTO,
|
||||
TUpdateDynamicSecretDTO
|
||||
} from "./dynamic-secret-types";
|
||||
@@ -332,11 +333,20 @@ export const dynamicSecretServiceFactory = ({
|
||||
return dynamicSecretCfg;
|
||||
};
|
||||
|
||||
const fetchData = async ({ provider, dataFetchType }: TDynamicSecretsFetchDataDTO) => {
|
||||
const selectedProvider = dynamicSecretProviders[provider.type];
|
||||
if (selectedProvider.fetchData) {
|
||||
const data = selectedProvider.fetchData(provider.inputs, dataFetchType);
|
||||
return data;
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
create,
|
||||
updateByName,
|
||||
deleteByName,
|
||||
getDetails,
|
||||
list
|
||||
list,
|
||||
fetchData
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user