Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Resolve merge conflicts

Tuan Dang9727075b0bfa
diff --cc backend/src/controllers/v2/workspaceController.ts
index 0aafcd525e,1b10ebccdf..95c03bbc49
--- a/backend/src/controllers/v2/workspaceController.ts
+++ b/backend/src/controllers/v2/workspaceController.ts
@@@ -455,19 -134,10 +135,12 @@@ export const pullSecrets = async (req:
}
secrets = await pull({
- userId: req.user._id.toString(),
+ userId,
workspaceId,
- environment
+ environment,
+ channel,
+ ipAddress: req.ip
});
-
- key = await Key.findOne({
- workspace: workspaceId,
- receiver: req.user._id
- })
- .sort({ createdAt: -1 })
- .populate('sender', '+publicKey');
if (channel !== 'cli') {
secrets = reformatPullSecrets({ secrets });
diff --cc backend/src/routes/v1/userAction.ts
index bbd488e064,4caa890c0f..b14ab3471d
--- a/backend/src/routes/v1/userAction.ts
+++ b/backend/src/routes/v1/userAction.ts
@@@ -4,10 -4,11 +4,12 @@@ import { requireAuth, validateRequest
import { body, query } from 'express-validator';
import { userActionController } from '../../controllers/v1';
+// note: [userAction] will be deprecated in /v2 in favor of [action]
router.post(
'/',
- requireAuth,
+ requireAuth({
+ acceptedAuthModes: ['jwt']
+ }),
body('action'),
validateRequest,
userActionController.addUserAction
diff --cc backend/src/types/express/index.d.ts
index 33b10e2bc8,1568003603..22f7459768
--- a/backend/src/types/express/index.d.ts
+++ b/backend/src/types/express/index.d.ts
@@@ -13,9 -13,9 +13,10 @@@ declare global
integrationAuth: any;
bot: any;
secret: any;
+ secretSnapshot: any;
serviceToken: any;
accessToken: any;
+ serviceTokenData: any;
query?: any;
}
}