Altinn / altinn-file-scan

Microservice for handling file scan
MIT License
0 stars 0 forks source link

Light weight file scan validation status #30

Closed RonnyB71 closed 1 year ago

RonnyB71 commented 1 year ago

Description

After uploading files to an instance an asynchronous process is triggered to scan the files for virus/malware. Waiting for this scan does NOT prevent an instance from being completed unless the scan process actually has had time to complete before the instance is submitted.

For instances submitted without a file scan being completed, a light weight API should be provided to check the status of the file scan process.

Additional Information

Url: /{org}/{app}/instances/{instanceOwnerPartyId:int}/{instanceGuid:guid}/filescanresult

Example result:

{
    "fileScanResult": "Infected",
    "data" : 
    [
        {
            "id": "3f9c4c4d-e805-4e4e-9fbf-a508f63c6801",
            "fileScanResult": "Clean"
        },
        {
            "id": "3620d4f5-6d43-401e-b49f-604f1b797c6f",
            "fileScanResult": "Pending"
        },
        {
            "id": "caab07d2-69e3-4945-8a22-fbccd7919d54",
            "fileScanResult": "Infected"
        }
    ]
}

Tasks

No response

Acceptance Criterias