dfir-iris / iris-web

Collaborative Incident Response platform
GNU Lesser General Public License v3.0
1.03k stars 161 forks source link

[FR] REST API v2.1.0: GET /api/v2/cases/{identifier}/iocs #537

Open Elise17 opened 2 months ago

Elise17 commented 2 months ago

This issue is about the implementation of the first iocs endpoint:

The tasks are the following:

Create a test :

These is the previous endpoint which should be deprecated by:

In the web interface:

c8y3 commented 1 month ago

Things that need to be completed:

c8y3 commented 1 week ago
c8y3 commented 1 week ago

Architecture hint and reflexion: for the IOC delete in the new API, since the case identifier is not present on the request, the case access permission check can only be done in the business level, after the ioc is retrieved. This hints that, maybe, the permission checks (or at least the case accesses checks?) should all be done at this level... Think about it...

Actually we should decide on which layer we want to do it, then it will have an impact on the business API.

c8y3 commented 5 days ago

In the end, I removed all permission checks out of business and put them in the blueprint layer. This has an impact on the signature of some methods in the business layer. But the end-result seems quite acceptable. I added the information about this choice in the architecture.md file.

c8y3 commented 3 days ago

Here are the things remaining to do to update the documentation: