Repository navigation
fix(sites): bind screenshot preview keys to their rule - #15031
Conversation
Ephemeral keys that skip preview authorization now carry the hostname and deployment they were issued for. The router ignores their preview grants on any other rule, and hostname overrides are limited to the issued hostname.
|
Review complete. No issues found — approved ✅. This change binds ephemeral preview keys to a custom-domain hostname and a specific deployment, tightening authorization for the screenshots preview flow. The
Reviewed commit: 5de7d4e |
🟢 Tier S · Ready to merge
Ephemeral screenshot keys now include the hostname and deployment they were issued for. The router applies their preview grants only to the matching rule, and hostname overrides are restricted to the bound hostname; unit and E2E coverage exercise the binding behavior.
📂 Walkthrough · 6
Reviewed |
Security rulesNo new WARNING or ERROR findings from security rules. 6 existing findings tracked in
|
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Ephemeral keys that skip preview authorization now carry the hostname and deployment they were issued for. The router ignores their preview grants on any other rule, and hostname overrides are limited to the issued hostname.
Pairs with appwrite/docker-browser#25 (in
appwrite/browser:0.3.10), which keeps the key off redirects to other origins.Lint, PHPStan and the touched unit tests passed locally before rebasing on main; e2e runs in CI.
Part of appwrite-labs/cloud#6857