Identity › Zero-trust access puts a sign-in with your organisation's identity provider in front of sites you publish with the reverse proxy: Microsoft Entra ID, Okta, Keycloak, Google, or any OpenID Connect provider. People reach one application, not the whole network as with a VPN. Each application lists who may use it; everyone else is refused.
What you need
- The site published through Security › Web publishing › Reverse proxy, over HTTPS (a certificate on the virtual host).
- An identity provider where you can register an application.
Step 1: Register Korthveil at your provider
At the provider, create a web application (confidential client) and note:
- the issuer URL (Entra ID:
https://login.microsoftonline.com/<tenant>/v2.0; Keycloak:https://<host>/realms/<realm>); - the client ID and client secret.
Register the redirect URI https://<your site's name>/.korthveil/ztna/callback. The Applications panel shows it after step 3.
Step 2: Add the provider
- Open Identity › Zero-trust access. Under Identity providers, type a name (for example
corp) and click Add provider. - Fill in Issuer URL, Client ID and Client secret.
- Leave Scopes and the claims as they are, unless your provider sends user names or groups under other names.
- Provider's CA certificate: only for a provider on your own certificate authority (an on-premises Keycloak or ADFS). Paste that CA's certificate (PEM), and only it is trusted for this provider. Leave it empty for cloud providers.
Step 3: Protect a site
- Under Applications, click Protect a virtual host and choose the reverse proxy's virtual host and the provider.
- Fill in Allowed groups (as the provider sends them: Entra ID sends group IDs) and/or Allowed users. To let anyone your provider signs in, tick Allow any signed-in user.
- Optional:
- Public paths need no sign-in (for example
/static/). - Session lifetime: default 8 hours.
- Pass identity headers: the application receives
X-Korthveil-User,-Emailand-Groups.
- Public paths need no sign-in (for example
- Commit, then click Test (committed settings) on the provider. It should report its keys.
Using it
- Opening the site sends people to the provider's sign-in. They come back signed in.
- Programs without a session (APIs) get "401 Unauthorized".
- Access is checked on every request. Removing a user or group from the application refuses them at once.
- Active sessions lists who is signed in, and Sign out ends a session. Recent denials lists refusals, with a reference that matches the page the person saw.
Things to know
- If the zero-trust add-in stops, protected sites answer "503": they never open without a sign-in.
- If the provider is unreachable, people already signed in keep working until their session ends. Others see "sign-in unavailable".