... | ... | @@ -170,3 +170,20 @@ For regular tasks, everything takes at most couple seconds. There are two except |
|
|
- report generation (can take up-to couple minutes)
|
|
|
- findings import (takes up-to couple minutes, but can be slightly slowed down to allow for concurent operations)
|
|
|
|
|
|
### Single finding can't be more than 10 MB
|
|
|
|
|
|
Nginx in Pwndoc-Frontend has a limit for max upload size set to 10 MB in `pwndoc/frontend/.docker/nginx.conf`. Upload of findings which have bigger size will be skipped with a error message detailing that it's due to the size.
|
|
|
|
|
|
### Audit content can't be more than 16 MB
|
|
|
|
|
|
Mongo has an internal limit on the size of single document. The following message in `pwndoc-logs/pwndoc.json` means the limit got breached, most likely during upsert of findings.
|
|
|
|
|
|
```log
|
|
|
RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 && <= 17825792. Received 17825795
|
|
|
```
|
|
|
|
|
|
Technically this is true for every model inside folder `pwndoc/backend/src/models`, however it's likely Audit is going to be the only problematic one.
|
|
|
|
|
|
Images are not stored inside audit itself, they have their own document each and are only referenced (I.e. audit can contain arbitrary amount of images, each can be at most 16 MB).
|
|
|
|
|
|
|