Choosing an approach
Bringing your own edge is about policy control, not basic survivability —
reach for it when you have a specific application-layer concern, not as a
default.
What Bijection already protects
Bijection-hosted runtime traffic comes through the public edge to the installation’s cell. The baseline covers the default<name>.bijection.cloud and
<name>.bijection.run hosts and runtime custom domains.
- Network-layer DDoS mitigation. AWS applies AWS Shield Standard to every load balancer. It mitigates common network- and transport-layer (L3/L4) floods, such as SYN floods and reflection attacks, before they reach your installation.
- HTTPS only. The load balancer accepts connections on port 443 alone and requires TLS 1.2 or higher. Plain HTTP is not served. Certificates are issued and renewed for you, a custom domain’s through the validation record you keep in its DNS.
- Exact host routing. The load balancer forwards only your installation’s own
two hosts and its custom domains, matched on the
Hostheader. A request for any other host gets a404and never reaches a backend. - Dedicated Enterprise ingress. Each Enterprise installation has a dedicated cell. Administrators with a Hosting grant can limit public ingress by source IP or close it and use PrivateLink.
- Bounded work. An installation runs a fixed number of functions at a time, and a call that waits too long for a slot is rejected rather than queued without bound (concurrency limits). Every function also has execution-time, size and read/write limits.
- Confined outbound requests. Tasks the host sends to
targets, the discovery and key requests for your
authentication providers, and
log export batches reach public internet
addresses only. Loopback, private-network, link-local and cloud-metadata
addresses are refused, including when a name resolves to one or a redirect
leads to one, and the request fails with
Request to <url> forbidden. A URL that an attacker gets into a task’s arguments cannot reach the installation’s internal network. Function code has no network of its own: it performs no I/O, and a task is sent only to the URL its target declares: see where outbound requests can go.
What a custom domain changes
Since the baseline already covers your default hosts, a custom domain is not what gives you that protection: it is served by the same load balancer, with its own certificate. What it changes is ownership:- Domain reputation is yours. Your default hosts are names under
bijection.cloudandbijection.run, which every Bijection installation shares. A custom domain is one you own, so its reputation and standing with ISPs, corporate networks, browsers, and other intermediaries is yours to manage rather than shared. - You can put your own edge in front. Because you control the domain’s DNS, you can later route it through your own proxy, so your own WAF rules, rate limiting, and bot management apply, without changing the URL your clients use. See the sections below.
Native clients and custom domains
Native and mobile clients usually bake the installation URL into a build that’s already on users’ devices — unlike a web app, you can’t change it just by redeploying. Plan for this before you ship:- Build in a way to change the host. Make the Bijection URL something your app can update remotely (for example, fetched from a configuration endpoint at startup) rather than a hardcoded constant, so you can point existing installs at a new host without shipping an app-store release.
- Or adopt a custom domain before you ship. If you serve your installation from a custom domain from the start, you control the host for the life of the app.
Application-layer controls you add yourself
The baseline doesn’t include application-layer protections — the tools you’d reach for against abuse like floods of expensive HTTP requests, scraping, or credential stuffing. Bijection has no web application firewall, per-IP or per-user rate limiting, bot detection or challenge pages in front of your installation. Within your app, decide who may call what: give each exposed function anallow list of roles, leave backend-only
functions without allow so no client can enter them, add
guards that refuse acts in scope, and
declare argument types. Review bijection.lock to
see everything the app exposes.
For edge controls, route your traffic through your own proxy, such as a
Cloudflare zone or a Vercel project (see below), and add:
- Custom WAF and firewall rules — blocking by country, ASN, IP, path, header, or request shape.
- Per-route or per-IP rate limiting.
- Bot management and challenge pages.
- Caching, analytics, and log export for traffic to your domain.
Putting your own proxy in front
A proxy you run in front of your installation applies your WAF rules, rate limiting, and bot management before traffic reaches Bijection. Treat this as an advanced setup: it adds a hop with its own timeouts and limits, such as how long a WebSocket connection may stay open, and Bijection has not tested any particular proxy in front of an installation. Your installation’s load balancer routes on theHost header alone
(X-Forwarded-Host is ignored) and presents the certificate for the server
name the TLS connection asks for. A proxy therefore takes one of two shapes:
- Forward to the installation’s own host. The proxy sends each request to
https://<name>.bijection.run(orhttps://<name>.bijection.cloud), with that host as both theHostheader and the TLS server name, as forwarding to a URL normally does. Nothing needs to be registered in Bijection. Vercel works this way. - Proxy a custom domain. Add the domain to
your installation, set the two records it shows, and turn on your proxy for the
routing record, for example as a proxied record (the orange cloud) in your
own Cloudflare zone. The proxy must keep your domain as the
Hostheader and the TLS server name on its way to Bijection. Leave the certificate validation record unproxied (DNS only): the certificate is validated, and renewed, through it.
*.bijection.cloud or an API custom domain), the
proxy must pass WebSocket connections, which the realtime client uses for
queries, watches and mutations.
Bijection checks that a custom domain serves your installation by sending it
requests: /instance_name and a WebSocket connection for an API domain, the
root path / for a routes domain. Let these requests through your rules;
if they are blocked, Installation Settings can report that the domain does not
serve this installation.
Putting Vercel in front
A Vercel project can front your domain and apply Vercel’s DDoS mitigation and firewall. Vercel proxies traffic using rewrites, which forward matching requests to an external origin.This works for route reactions (
*.bijection.run)
only. Vercel rewrites proxy HTTP requests, not WebSocket connections, and
the realtime Bijection API (queries and mutations over *.bijection.cloud)
uses WebSockets — so it cannot be served through a Vercel rewrite. Vercel is not
a general custom-domain protection strategy for Bijection; it’s an option for the
routes surface specifically.-
Add your domain (e.g.
api.example.com) to your Vercel project. -
Add a rewrite to
vercel.jsonthat forwards to your installation’s routes URL: - Configure Vercel Firewall rules and rate limiting as desired.
<name>.bijection.run URL.
Reach out to contact@bijection.com if you have questions about hardening a custom
domain.