88 Commits
Author SHA1 Message Date
kevinveenbirkenbachandClaude Opus 5.5 b7fd505da4 test(web-app-openpost): keep the malformed-host test URLs out of the URL probe
test_urls_reachable.py probes every literal URL and fails hard on one it cannot parse, and http://a..b/m.jpg in the malformed-media-host tests of test_service.py and test_web.py is unparsable on purpose (PR 2951 run 45676116645, LocationParseError). Both lines carry the repository's per-line nocheck url marker.

🎯 Fix: 97 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 96
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 19:49:37 +00:00
kevinveenbirkenbachandClaude Opus 5.5 29ee8a41d2 fix(web-app-openpost): refuse an image whose lazy decode raises SyntaxError
Pillow's PNG plugin accepts a file in Image.open and raises SyntaxError from the lazy decode in convert() when a chunk after an empty IDAT has an invalid identifier. That escaped to_jpeg, deliver and deliver_due, so the row was never updated and the crossposter crash-looped on it. SyntaxError now joins the errors to_jpeg turns into the permanent RefusedError; test_an_image_that_breaks_while_decoding_fails_for_good feeds such a PNG and expects the row dead-lettered. Addresses CodeRabbit comment 4698819926 on PR 2951.

🎯 Fix: 97 %
💥 Break: 1 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 96
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:27:21 +00:00
kevinveenbirkenbachandClaude Opus 5.5 171fce7fda fix(web-app-openpost): keep crossposter media downloads off private and internal addresses
Media URLs come from posts and were fetched with urllib's default opener: any scheme it supports, environment proxies, redirects that kept the route token, and every address the name resolved to, so a post could make the crossposter read seaweedfs (filer without JWT), prometheus or cloud metadata and republish the bytes. web.py now resolves each host once and connects to the checked address. Media downloads refuse every address that is not globally routable (IPv4-mapped IPv6 unwrapped) plus multicast. API calls keep a loopback, link-local, unspecified, multicast and 0.0.0.0/8 guard, and refuse a redirect to another host. Only http and https URLs with a host and a valid port are fetched, on every redirect hop. Authorization, Proxy-Authorization and Cookie are dropped on a redirect to another origin, and environment proxies are ignored. A refusal is a permanent 400. service.py names stored media media-<index><ext> instead of the remote filename, maps read and OS errors to RequestError, and turns an unreadable image, a decompression bomb or one over 4096x4096 pixels (the 256m memory limit) into a permanent refusal instead of an exception that crash-looped deliver. MEDUSA WEB-SSRF accepted as false positives: web.py:210 (the guarded Request sink) and web.py:27 (the 0.0.0.0/8 refuse-list entry).

🎯 Fix: 92 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 88
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:38:29 +00:00
evangelostsak 506c2bbe57 test(web-app-openpost): find the crossposter's statements through the cached project walk 2026-11-25 01:20:37 +01:00
evangelostsak 9e1d96073a test(web-app-openpost): bind every crossposter statement to exactly its placeholders 2026-11-25 00:58:11 +01:00
evangelostsak d13a75325b test(web-app-openpost): spell the joiners of the family emoji as named escapes 2026-11-25 00:58:10 +01:00
evangelostsak 790e8333e7 test(web-app-openpost): drop the nested fake provider test package 2026-11-24 01:59:26 +01:00
evangelostsak 599da7c3ec test(web-app-openpost): drop the nested crossposter test package 2026-11-24 01:59:26 +01:00
evangelostsak 4a270e0eff test(web-app-openpost): move the provider test test_store.py to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak 0850fa8f1a test(web-app-openpost): move the provider test test_linkedin.py to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak a42b220306 test(web-app-openpost): move the provider test test___main__.py to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak 02ca92a630 test(web-app-openpost): move the crossposter test sources/fixtures/peertube/videos.json to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak 9902e573c2 test(web-app-openpost): move the crossposter test sources/fixtures/peertube/video_detail.json to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak 8e209567d5 test(web-app-openpost): move the crossposter test sources/fixtures/peertube/__init__.py to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak 7257163401 test(web-app-openpost): move the crossposter test sources/fixtures/mastodon/statuses.json to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak b44f79a1a4 test(web-app-openpost): move the crossposter test sources/fixtures/mastodon/account.json to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak afc686a996 test(web-app-openpost): move the crossposter test sources/fixtures/mastodon/__init__.py to the mirrored path of files/python 2026-11-24 01:59:26 +01:00
evangelostsak f38ec123dc test(web-app-openpost): move the crossposter test sources/fixtures/pixelfed_statuses.json to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak e1c0489a2c test(web-app-openpost): move the crossposter test sources/fixtures/__init__.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 7dec146527 test(web-app-openpost): move the crossposter test sources/test_pixelfed.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak b5fd1c9cf6 test(web-app-openpost): move the crossposter test sources/test_peertube.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak ed040359ff test(web-app-openpost): move the crossposter test sources/test_mastodon.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak a6a30bc274 test(web-app-openpost): move the crossposter test sources/__init__.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 45b94f3ea2 test(web-app-openpost): move the crossposter test test_web.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 9f90c13707 test(web-app-openpost): move the crossposter test test_store.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 250d304133 test(web-app-openpost): move the crossposter test test_service.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 55ce8f8e49 test(web-app-openpost): move the crossposter test test_retry.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak db8af80e66 test(web-app-openpost): move the crossposter test test_openpost.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 237f7eb34f test(web-app-openpost): move the crossposter test test_notify.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 31fff608cc test(web-app-openpost): move the crossposter test test_config.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak a4da83d4db test(web-app-openpost): move the crossposter test test_adapt.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 89fe14246c test(web-app-openpost): move the crossposter test test___main__.py to the mirrored path of files/python 2026-11-24 01:59:25 +01:00
evangelostsak 4dad3ad957 test(web-app-openpost): import the fake provider package from files/python 2026-11-24 01:59:25 +01:00
evangelostsak c951fc7cd4 test(web-app-openpost): import the crossposter package from files/python 2026-11-24 01:59:25 +01:00
evangelostsak 47b27c2925 test(web-app-openpost): keep only the rule name on the crossposter entry point test's nocheck marker 2026-11-21 23:01:01 +01:00
evangelostsak c2688c4608 test(web-app-openpost): drop the unread PROJECT_ROOT from the test package 2026-11-17 18:05:09 +01:00
evangelostsak 27b92e541c test(web-app-openpost): render the Echo routes location through html.conf.j2 and the vhost extras 2026-11-17 18:05:09 +01:00
evangelostsak 0a57de5420 test(web-app-openpost): add the templates test package 2026-11-17 18:05:09 +01:00
evangelostsak 8caa3321af test(web-app-openpost): drop the copied-vhost render test 2026-11-17 18:05:09 +01:00
evangelostsak 7887e70909 test(web-app-openpost): cover the Echo route location of the OpenPost vhost 2026-11-16 10:10:37 +01:00
evangelostsak e8da7dc89c style(openpost): format the fake provider store tests 2026-10-30 02:50:59 +01:00
evangelostsak b3e1f90249 style(openpost): format the fake LinkedIn tests 2026-10-30 02:50:59 +01:00
evangelostsak f6e398c86e style(openpost): format the fake provider entry point tests 2026-10-30 02:50:59 +01:00
evangelostsak e3352638b6 test(openpost): cover the fake provider entry point 2026-10-30 02:21:16 +01:00
evangelostsak 2d1d32a669 test(openpost): cover the fake LinkedIn endpoints 2026-10-30 02:21:15 +01:00
evangelostsak d7f67f19af test(openpost): cover the fake provider store 2026-10-30 02:21:15 +01:00
evangelostsak 0dc5fd2d78 test(openpost): add the fake provider test package 2026-10-30 02:21:15 +01:00
evangelostsak 44d86bbf13 test(openpost): put the fake provider package on the test path 2026-10-30 02:21:15 +01:00
evangelostsak f894bc226f test(web-app-openpost): cover the status refresh 2026-10-25 01:16:44 +02:00
evangelostsak 094ea53f3d test(web-app-openpost): cover publication reuse, refreshed media and unready source media 2026-10-25 01:16:44 +02:00