fix(security): rate limiting, CORS restriction, tableName allowlist, non-root Docker, migration entrypoint, aria-live
This commit is contained in:
@@ -38,6 +38,11 @@ describe('GET /api/audit-logs', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('returns 422 for invalid tableName (not in allowlist)', async () => {
|
||||
const res = await request(app).get('/api/audit-logs?tableName=users');
|
||||
expect(res.status).toBe(422);
|
||||
});
|
||||
|
||||
it('returns 422 for invalid recordId', async () => {
|
||||
const res = await request(app).get('/api/audit-logs?recordId=not-a-uuid');
|
||||
expect(res.status).toBe(422);
|
||||
|
||||
Reference in New Issue
Block a user