Commit Graph

14 Commits

Author SHA1 Message Date
Klaas van Schelven
354af7ea0a Fix issues as reported by bandit or mark as nosec
Nothing worrying, but good to have checked this regardless
and important to have a green pipeline.

Fix #175
2025-07-30 12:16:40 +02:00
Klaas van Schelven
995c627fe6 Add API catch-all endpoint for logging
enabled using a setting.
Fix #153
2025-07-16 17:22:38 +02:00
Klaas van Schelven
d35327fe80 File-upload: chunk-size of 2MiB
as per the comment

Fix #147
2025-07-16 15:31:41 +02:00
Klaas van Schelven
b9880fe59b Remove untrue comment about single-chunk API
chunk_upload is and has always been working 'for real'. The only sense in
which the comment has been 'vaguely in the direction of truth' was that
with a chunkSize and maxRequestSize of 32MiB in practice sourcemap uploads
will often have been single-chunk in practice.

See #147
2025-07-16 15:17:35 +02:00
Klaas van Schelven
931f00135b File-upload: update comments about concurrency and chunksPerRequest
i.e. update the comments to reflect what I just learned doing some actual
experiments.

See #147

b.t.w. the now-removed comment was somewhat misleading: "single-chunk"
was (and is) being forced as in "single chunk per request" but not as
in "single chunk per file", and it was only forced by chunksPerRequest=1,
not by concurrency=1.
2025-07-16 14:43:41 +02:00
Klaas van Schelven
05fbf50e89 Sourcemaps upload: max file size 2GiB
As per the comment.

Since we haven't actually gone multi-chunk, this is just preparation

The now-removed comment should be read as 'it could be assumed that
unzipping introduces a factor 5 increase between chunk size and file
size' but that's a whole bunch of assumptions that I'd rather get
rid of (mental overhead, with little gain).

See #147
2025-07-16 12:53:11 +02:00
Klaas van Schelven
e972a21c2a file upload: chunk size and request size to 16MiB
As per the comment

See #147
2025-07-16 12:49:34 +02:00
Klaas van Schelven
4bbfe1a4ff Files: use the appropriate db transactions 2025-04-14 09:55:15 +02:00
Klaas van Schelven
70b8afb842 Factor out assemble_artifact_bundle into an async task
I did not do any research into actual timings (i.e. whether there really is a
need to pull this out of the request/response loop) but it seems somewhat
prudent.  Because Sentry also does this (and does it at this point), the whole
thing of matching Sentry's interface is not being complicated by it (if
anything: the contrary).
2025-04-14 09:37:05 +02:00
Klaas van Schelven
294105170b Remove debugging-line 2025-04-11 14:31:02 +02:00
Klaas van Schelven
895da36adc AuthToken: barebones implementation 2025-04-11 14:30:29 +02:00
Klaas van Schelven
b160a6df06 Files: downloadable from admin
for convenience
2025-04-11 09:15:09 +02:00
Klaas van Schelven
0bd899fdfa File.filename (for display purposes) 2025-04-10 17:00:46 +02:00
Klaas van Schelven
eb266d805c PoC of uploading sourcemap artifact bundles
* debug_id-only
* various TODOs (e.g. auth, async, retention)

See #19
2025-04-10 10:30:30 +02:00