mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 05:26:43 +00:00
add secretGroup to integrationController.ts
This commit is contained in:
@@ -27,7 +27,8 @@ export const createIntegration = async (req: Request, res: Response) => {
|
||||
owner,
|
||||
path,
|
||||
region,
|
||||
secretPath
|
||||
secretPath,
|
||||
secretGroup
|
||||
} = req.body;
|
||||
|
||||
const folders = await Folder.findOne({
|
||||
@@ -61,6 +62,7 @@ export const createIntegration = async (req: Request, res: Response) => {
|
||||
path,
|
||||
region,
|
||||
secretPath,
|
||||
secretGroup,
|
||||
integration: req.integrationAuth.integration,
|
||||
integrationAuth: new Types.ObjectId(integrationAuthId)
|
||||
}).save();
|
||||
|
||||
@@ -2109,6 +2109,7 @@ const syncSecretsCodefresh = async ({
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
/* Sync/push [secrets] to Northflank
|
||||
* @param {Object} obj
|
||||
* @param {IIntegration} obj.integration - integration details
|
||||
|
||||
@@ -168,6 +168,7 @@ const integrationSchema = new Schema<IIntegration>(
|
||||
default: "/",
|
||||
},
|
||||
secretGroup: {
|
||||
// northflank-specific service
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
|
||||
@@ -37,6 +37,7 @@ router.post(
|
||||
body("owner").trim(),
|
||||
body("path").trim(),
|
||||
body("region").trim(),
|
||||
body("secretGroup").isString().trim(),
|
||||
validateRequest,
|
||||
integrationController.createIntegration
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user