Repository navigation
chore: bump appwrite/browser to 0.3.6 - #14127
Conversation
0.3.5+ refuses hosts that resolve privately. Self-hosted captures sites via the internal appwrite service, so allow it with ALLOWED_HOSTS. The avatars screenshot fixture moves to a public subnet so it passes the same check a real site does.
🟢 Tier S · Ready to merge
Updates the browser container from 0.3.4 to 0.3.6 and allows the Appwrite hostname for internal site screenshots. The development screenshot fixture uses a static address on a public-range Docker subnet matching its test DNS record, with dynamic allocation restricted to a separate address range. Latest changes: The newest commit restricts dynamic fixture-network addresses to 203.0.0.128/25, avoiding allocation of the fixture's static 203.0.0.1 address.
📂 Walkthrough · 2
Reviewed the commits since |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Merges main a2cca78 (#14009, #14106, #14117, #14115, #14119, #14114, #14101, #14125, #14129, #14127) so cloud#5410 can require a train head that contains main at or after 0ed7232. Conflicts: none. Database 8.0 port: none needed. Main's new code only uses Document getAttribute/setAttribute and Query::equal/lessThan/orderAsc/limit (Tasks/Interval.php), all unchanged in database 8.0; no removed Database::* constants, config collections, or model magic reads. composer.json and composer.lock are untouched by main, so the train's database and migration pins stay as they are. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What does this PR do?
Bumps
appwrite/browserfrom 0.3.4 to 0.3.6.Starting with 0.3.5, the browser refuses any host that resolves to a private address. That includes
appwrite, which the screenshots worker uses to reach sites (_APP_WORKER_SCREENSHOTS_ROUTER=http://appwrite). 0.3.6 addsALLOWED_HOSTS(appwrite/docker-browser#21), so the browser service setsALLOWED_HOSTS=appwrite. That one hostname is exempt; every other private name and address stays blocked. The installer builds its compose file fromdocker-compose.yml, so new installs and upgrades get the setting too.For tests, the avatars screenshot fixture (
screenshot.webapp.com) now runs on a public subnet (203.0.0.0/24, at203.0.0.1, the address the test DNS already gives it). The browser accepts it the way it would a real site, so it doesn't need anALLOWED_HOSTSentry.Test Plan
Local stack recreated with
appwrite/browser:0.3.6.tests/e2e/Services/Sites: OK (65 tests, 1949 assertions), includingtestSiteScreenshottests/e2e/Services/Avatars: OK (59 tests, 1530 assertions)tests/e2e/Services/GraphQL/AvatarsTest.php: OK (13 tests, 55 assertions)Requests sent straight to the browser's
/v1/screenshotsfrom inside the stack:http://appwrite/v1/health/versionALLOWED_HOSTS)http://screenshot.webapp.com/https://example.com/http://redis:6379/http://appwrite-mariadb:3306/http://127.0.0.1:3000/http://169.254.169.254/http://10.0.0.1/A static site deployed from the console: the screenshots worker captured both themes through
http://appwrite("Screenshot capturing finished" in the build logs).Light:
Dark:
GET /v1/avatars/screenshots?url=https://appwrite.io:Related
Related: appwrite-labs/cloud#6236