mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 08:29:55 +00:00
Add v1 audit log backend models and wiring to push secrets
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import secret from './secret';
|
||||
import workspace from './workspace';
|
||||
import log from './log';
|
||||
|
||||
export {
|
||||
secret,
|
||||
workspace
|
||||
workspace,
|
||||
log
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
import express from 'express';
|
||||
const router = express.Router();
|
||||
|
||||
export default router;
|
||||
@@ -23,5 +23,19 @@ router.get(
|
||||
workspaceController.getWorkspaceSecretSnapshots
|
||||
);
|
||||
|
||||
router.get(
|
||||
'/:workspaceId/logs',
|
||||
requireAuth,
|
||||
requireWorkspaceAuth({
|
||||
acceptedRoles: [ADMIN, MEMBER],
|
||||
acceptedStatuses: [GRANTED]
|
||||
}),
|
||||
param('workspaceId').exists().trim(),
|
||||
query('offset').exists().isInt(),
|
||||
query('limit').exists().isInt(),
|
||||
query('filters').exists(),
|
||||
validateRequest,
|
||||
workspaceController.getWorkspaceLogs
|
||||
);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user