Open whitegate

Protecting a host with the gate

A web panel that has no sign-in of its own can be put behind whitegate. The reverse proxy asks whitegate about every request before it reaches the panel.

What the owner sets up#

The owner registers the host under a product in By product → Hosts. Only the owner, and people the owner has let into that product, pass.

What the proxy receives#

whitegate answers each check:

StatusWhen
200A valid session of an allowed person. The request continues with the identity in X-Exo-User (display name) and X-Exo-Email
302No session and a page navigation. The browser goes to the whitegate sign-in and comes back afterwards
401No session on any other request, such as a background call
403A session of someone who is not allowed there

A signed-in person who is refused on a page is sent to a reason page that follows the product's door; with Approval, the visit also files a request.

The session cookie belongs to the parent domain, so it is shared by all hosts under it. Return addresses (rd) are accepted only as https:// on that domain and its subdomains.

When your service has its own code#

Do not rely on the headers alone if your service port can be reached around the proxy. Use OpenID Connect instead, see Sign in with OpenID Connect.

Health checks#

Leave /health/* outside the gate so monitors work without a session. whitegate itself answers /health/live and /health/ready.