Prerequisites
- A Porter cluster with forward auth (OAuth2 Proxy) already configured against an OIDC provider.
- Cluster admin access in the Porter dashboard.
Configure the allowlist
1
Open the cluster's config tab
From the Porter dashboard, select Infrastructure in the left sidebar, choose the cluster, then open the Config tab.
2
Enter the allowed domains
In the Email Domains field, enter a comma-separated list of domains that are permitted to authenticate. Do not include the Leave the field blank to keep the currently configured allowlist unchanged. Enter
@ symbol.* to explicitly permit any domain.3
Save the OIDC settings
Select Save OIDC Settings. Porter reconciles the OAuth2 Proxy configuration and rolls out the change.
Behavior
- When one or more domains are configured, OAuth2 Proxy rejects any authenticated session whose email does not match one of the listed domains. The user sees an authentication failure and is not forwarded upstream.
- When the allowlist is empty, all domains are permitted (equivalent to
*). - Domain matching is exact on the portion of the email after
@. Subdomains are not implicitly included — addsub.example.comalongsideexample.comif you need both.
The allowlist relies on the email claim returned by your OIDC provider. If your provider does not return a verified email, or returns a non-corporate email for some accounts, an allowlist alone is not sufficient — restrict access at the provider (for example, with tenant restrictions or group-based access) as well.

