Upgrading to DefectDojo Version 3.5.400
Lower default limits on zip uploads
DefectDojo checks a zip report before it reads it: how many files it holds, how large each is once uncompressed, their combined uncompressed size, and how far each one is compressed. Two defaults are lower in this release:
| Setting | Before | Now |
|---|---|---|
DD_MAX_ZIP_MEMBER_SIZE (one file inside the zip, uncompressed) | 512 MB | 128 MB |
DD_MAX_ZIP_TOTAL_SIZE (all files inside the zip, uncompressed) | 1 GB | 128 MB |
DD_MAX_ZIP_MEMBERS (1000) and DD_MAX_ZIP_RATIO (100) are unchanged.
A zip over a limit is refused with a message naming the limit, as before.
What you need to do
Usually nothing. If you import zip reports that are larger than 128 MB once uncompressed, set the two environment variables to the sizes you need, in bytes. For example, to keep the previous limits:
DD_MAX_ZIP_MEMBER_SIZE=536870912
DD_MAX_ZIP_TOTAL_SIZE=1073741824For more information, check the Release Notes.