Repository navigation
fix(proxy): reserve the functions fallback domain for rules - #15025
Conversation
Rules may no longer claim the functions fallback base domain or hosts nested under it, matching the functions domain. The router now refuses reserved base domains before looking up a rule, so an existing rule cannot serve one.
The router answers a reserved host with an HTML error page, which json_encode could not serialise, so the assertion compared against an empty string.
|
Review complete. 🟡 1 medium 📍 Findings outside the diff (1) — 🟡 1 medium — defects on lines GitHub can't attach comments to🟡 Medium — Register The new This change introduces an additional reserved base domain for function subdomains, defaulting to
Reviewed commit: f7c9885 |
🟢 Tier S · Ready to merge
The PR reserves the functions fallback base domain and its nested hosts from proxy rules, and adds fallback-domain configuration plus router checks to enforce that behavior. It also adds Proxy E2E coverage for rule validation and reserved-host requests. Latest changes: The latest commit only runs the deep-fallback-host rejection when a matching rule exists, allowing unconfigured hosts to continue to the existing error path and CTA.
📂 Walkthrough · 5
✅ Fixed since the last review · 1
Reviewed the commits since |
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)
|
Rules can no longer be created for nested hosts under the functions fallback domain, but a rule saved before that limit would still be served. The router now refuses those hosts before using a rule.
Hosts without a rule keep the existing not-found error with its setup link.
Rules may no longer claim the functions fallback base domain or hosts nested under it, matching the functions domain. The router now refuses reserved base domains before looking up a rule, so an existing rule cannot serve one.
The router answers a reserved host with an HTML error page, which json_encode could not serialise, so the assertion compared against an empty string.
Lint, PHPStan and the touched unit tests passed locally before rebasing on main; e2e runs in CI.
Related: appwrite-labs/cloud#6674