Skip to content

chore: bump appwrite/browser to 0.3.6 - #14127

Merged
ChiragAgg5k merged 2 commits into
mainfrom
chore/browser-0.3.6
Oct 5, 2026
Merged

ChiragAgg5k merged 2 commits into
mainfrom
chore/browser-0.3.6

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Bumps appwrite/browser from 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 adds ALLOWED_HOSTS (appwrite/docker-browser#21), so the browser service sets ALLOWED_HOSTS=appwrite. That one hostname is exempt; every other private name and address stays blocked. The installer builds its compose file from docker-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, at 203.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 an ALLOWED_HOSTS entry.

Test Plan

Local stack recreated with appwrite/browser:0.3.6.

  • tests/e2e/Services/Sites: OK (65 tests, 1949 assertions), including testSiteScreenshot
  • tests/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/screenshots from inside the stack:

URL Result
http://appwrite/v1/health/version 200 image (allowed via ALLOWED_HOSTS)
http://screenshot.webapp.com/ 200 image (public fixture subnet)
https://example.com/ 200 image
http://redis:6379/ 400 not publicly routable
http://appwrite-mariadb:3306/ 400 not publicly routable
http://127.0.0.1:3000/ 400 not publicly routable
http://169.254.169.254/ 400 not publicly routable
http://10.0.0.1/ 400 not publicly routable

A static site deployed from the console: the screenshots worker captured both themes through http://appwrite ("Screenshot capturing finished" in the build logs).

Light:

Site deployment with light screenshot

Dark:

Site deployment with dark screenshot

GET /v1/avatars/screenshots?url=https://appwrite.io:

Avatars screenshot of appwrite.io

Related

Related: appwrite-labs/cloud#6236

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.
@ghost

ghost commented Oct 5, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The new IP allocation range is compatible with the fixture subnet and keeps dynamically assigned addresses separate from the static fixture address.

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.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 2
File Change
docker-compose.yml Bumps the browser image to 0.3.6 and sets ALLOWED_HOSTS=appwrite.
docker-compose.override.yml Assigns the screenshot fixture 203.0.0.1, configures its subnet and gateway, and restricts dynamic IP allocation to 203.0.0.128/25.

Reviewed the commits since 1e6f1ce · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → chore/browser-0.3.6 (after).

Metric Before After Change
🚀 Requests/sec 207.25 208.51 ⚪ +0.6%
⏱️ Latency P50 83.63 ms 83.14 ms ⚪ -0.6%
⏱️ Latency P95 196.43 ms 191.72 ms ⚪ -2.4%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 83.14 191.72 13,110 208.51 -4.71
Account 154.42 284.74 690 11.43 -6.05
TablesDB 80.99 157.85 7,130 115.43 +5.05
Storage 74.8 169.45 3,450 57.35 +1.23
Functions 115.07 222.6 1,840 31.44 -19.87

Top API waits (after)

API request Max wait (ms)
account.prefs.update 455.75
account.name.update 446.56
functions.create 385.09
functions.variables.create 363.85
tablesdb.rows.update 357.4

@ChiragAgg5k
ChiragAgg5k merged commit a2cca78 into main Oct 5, 2026
49 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the chore/browser-0.3.6 branch October 5, 2026 10:05
abnegate added a commit that referenced this pull request Oct 5, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants