refactor(server)!: sanitize error messages to avoid leaking resource and permission details

This commit is contained in:
timonrieger
2026-04-29 14:45:46 +02:00
parent 65bd0a9320
commit b96421a083
31 changed files with 129 additions and 128 deletions
@@ -724,7 +724,7 @@ describe(WorkflowService.name, () => {
await sut.delete(auth, workflow.id);
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Not found or no workflow.read access');
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Access denied');
});
it('should delete workflow with filters and actions', async () => {
@@ -743,7 +743,7 @@ describe(WorkflowService.name, () => {
await sut.delete(auth, workflow.id);
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Not found or no workflow.read access');
await expect(sut.get(auth, workflow.id)).rejects.toThrow('Access denied');
});
it('should throw error when deleting non-existent workflow', async () => {