mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 12:26:38 +00:00
inject secrets from secret imports into integrations
This commit is contained in:
@@ -229,7 +229,6 @@ export const secretQueueFactory = ({
|
|||||||
|
|
||||||
const getIntegrationSecrets = async (dto: TGetSecrets & { folderId: string }, key: string) => {
|
const getIntegrationSecrets = async (dto: TGetSecrets & { folderId: string }, key: string) => {
|
||||||
const secrets = await secretDAL.findByFolderId(dto.folderId);
|
const secrets = await secretDAL.findByFolderId(dto.folderId);
|
||||||
if (!secrets.length) return {};
|
|
||||||
|
|
||||||
// get imported secrets
|
// get imported secrets
|
||||||
const secretImport = await secretImportDAL.find({ folderId: dto.folderId });
|
const secretImport = await secretImportDAL.find({ folderId: dto.folderId });
|
||||||
@@ -238,6 +237,9 @@ export const secretQueueFactory = ({
|
|||||||
secretDAL,
|
secretDAL,
|
||||||
folderDAL
|
folderDAL
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!secrets.length && !importedSecrets.length) return {};
|
||||||
|
|
||||||
const content: Record<string, { value: string; comment?: string; skipMultilineEncoding?: boolean }> = {};
|
const content: Record<string, { value: string; comment?: string; skipMultilineEncoding?: boolean }> = {};
|
||||||
|
|
||||||
importedSecrets.forEach(({ secrets: secs }) => {
|
importedSecrets.forEach(({ secrets: secs }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user