Run behind your own HTTPS
This guide puts OpenLakeForge behind a reverse proxy, tunnel or load balancer that you operate and that terminates HTTPS, using spec.access.tls: external on the local provider. OpenLakeForge changes no DNS record and requests no certificate.
What you own and what OpenLakeForge does
Section titled “What you own and what OpenLakeForge does”| You provide | OpenLakeForge does |
|---|---|
A public name, base_domain, and a wildcard record *.<base_domain> plus the bare name pointing at your edge |
Serves plain HTTP on Traefik’s web entrypoint, with no TLS store and no host port 443 |
| A certificate your browsers trust for both names, installed on the edge | Generates every route URL, OIDC redirect URI and the sign-in cookie as https://, the cookie Secure |
A proxy that forwards to Traefik and sets X-Forwarded-Proto: https and X-Forwarded-Host |
Trusts those two headers from trusted_proxies, and from no one else. The sign-in proxy behind Traefik then reads the same headers, so its redirects stay https:// |
Examples of an edge: Caddy or nginx on the host, a Cloudflare Tunnel, a cloud load balancer. A request that reaches Traefik from an address outside the range you name is handled as plain HTTP, whatever X-Forwarded-Proto it carries.
Configure
Section titled “Configure”-
Set the access block in
openlakeforge.yaml.externalis refused on a.localhostname, andtrusted_proxiesis required with it (and refused with any othertls): the CIDR blocks your proxy connects to Traefik from.0.0.0.0/0is refused. Only those peers’X-Forwarded-ProtoandX-Forwarded-Hostare believed.spec:access:base_domain: olf.example.comtls: externaltrusted_proxies: [203.0.113.0/24]List the range as Traefik sees it, not your proxy’s public address. For a proxy on the machine that hosts kind, start from the subnet of Docker’s
kindnetwork (docker network inspect kind), and confirm with the sign-in check below: if the range is wrong, redirects stayhttp://. -
Apply the profile:
Terminal window uv run --project tools/olf olf infra platform apply -f openlakeforge.yaml -
Point your edge at Traefik. On kind, Traefik listens on
127.0.0.1:80of the machine that runs the cluster; forward every host underbase_domainthere and keep theHostheader. -
For sign-in, register
https://auth.<base_domain>/callbackwith the identity provider, as in connect GitHub.
olf infra access trust does not apply: no local CA signs the routes.
Limits
Section titled “Limits”| Caller | Behaviour with external |
|---|---|
Browsers, olf, the perimeter proxy, Polaris, the platform API |
Work as with local-ca; the in-cluster callers reach Dex at its Service |
| OpenMetadata, Superset | Still call https://auth.<base_domain> from inside the cluster. The cluster’s DNS must resolve that name to your edge and the edge’s certificate must be publicly trusted. Tracked on the remaining items of #991 |
OpenLakeForge adds no CoreDNS rewrite for external: Traefik behind your edge serves no TLS for a pod to reach.
Check it worked
Section titled “Check it worked”curl -sI https://<base_domain>/ | head -1It answers 200 through your edge. Open https://<base_domain>/ in a browser and sign in: the session cookie is Secure and the callbacks are https:// URLs.
Synced from openlakeforge @ v0.7.5-beta.1 (8a7bf72), docs/guides/run-behind-your-own-https.md.