Mention problems with too big audits authored by Ondřej Borýsek's avatar Ondřej Borýsek
...@@ -103,3 +103,45 @@ It is supposedly on the ...@@ -103,3 +103,45 @@ It is supposedly on the
Currently there is no recommendet setting on how to place the app behind (another) reverse proxy and keep the TLS Client auth functionality. Currently there is no recommendet setting on how to place the app behind (another) reverse proxy and keep the TLS Client auth functionality.
### ignore_pluginoutput is being lost ### ignore_pluginoutput is being lost
### Uploads of big audits can fail inside `pwndoc-backend`
Currently PwnDoc doesn't expect big audits. Some actions can silently - in API it looks like:
- `http.client.RemoteDisconnected: Remote end closed connection without response`
- `urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))`
There is a [supposedly solved issue](https://github.com/pwndoc/pwndoc/issues/222) on the main repo, though I can't find the actual fix. I've done [partialy fix](https://github.com/BorysekOndrej/pwndoc/commit/b0b5d4d8eb63743b027a31cdf8a0be6fc0c681e0), though this is only for Finding creation, I haven't done the rest.
<details>
<summary>PwnDoc Backend error log</summary>
```log
/app/node_modules/mongodb/lib/cmap/connection.js:261
callback(new MongoError(document));
^
MongoError: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting.
at MessageStream.messageHandler (/app/node_modules/mongodb/lib/cmap/connection.js:261:20)
at MessageStream.emit (node:events:390:28)
at processIncomingData (/app/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
at MessageStream._write (/app/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
at writeOrBuffer (node:internal/streams/writable:389:12)
at _write (node:internal/streams/writable:330:10)
at MessageStream.Writable.write (node:internal/streams/writable:334:10)
at Socket.ondata (node:internal/streams/readable:754:22)
at Socket.emit (node:events:390:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at TCP.onStreamRead (node:internal/stream_base_commons:199:23) {
ok: 0,
errmsg: 'Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting.',
code: 16819,
codeName: 'Location16819',
[Symbol(mongoErrorContextSymbol)]: {}
}
```
</details>