About request header authentication
Request header authentication identifies users from header values such as X-Remote-User. An authenticating proxy with mutual TLS (mTLS) validates users and sets the identity header for Red Hat OpenShift Container Platform.
The request header identity provider is typically used in combination with an authenticating proxy, which sets the request header value. This identity provider cannot be combined with other identity providers that use direct password logins, such as htpasswd, Keystone, LDAP or basic authentication.
|
|
You can also use the request header identity provider for advanced configurations such as the community-supported SAML application. This solution is not supported by Red Hat. |
For users to authenticate using this identity provider, they must access https://<namespace_route>/oauth/authorize and subpaths of that endpoint through an authenticating proxy. To accomplish this, configure the OAuth server to redirect unauthenticated requests for OAuth tokens to the proxy endpoint that proxies to https://<namespace_route>/oauth/authorize.
To redirect unauthenticated requests from clients expecting browser-based login flows:
-
Set the
provider.loginURLparameter to the authenticating proxy URL that authenticates interactive clients and then proxies the request tohttps://<namespace_route>/oauth/authorize.
To redirect unauthenticated requests from clients expecting WWW-Authenticate challenges:
-
Set the
provider.challengeURLparameter to the authenticating proxy URL that authenticates clients expectingWWW-Authenticatechallenges and then proxy the request tohttps://<namespace_route>/oauth/authorize.
The provider.challengeURL and provider.loginURL parameters can include the following tokens in the query portion of the URL:
-
${url}is replaced with the current URL, escaped to be safe in a query parameter.For example:
https://www.example.com/sso-login?then=${url} -
${query}is replaced with the current query string, unescaped.For example:
https://www.example.com/auth-proxy/oauth/authorize?${query}
|
|
As of Red Hat OpenShift Container Platform 4.1, your proxy must support mTLS. |
Security Support Provider Interface connection support on Microsoft Windows
|
|
Using Security Support Provider Interface connection support on Microsoft Windows is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see Technology Preview Features Support Scope. |
The Security Support Provider Interface (SSPI) enables the OpenShift CLI (oc) to support SSO
flows on Microsoft Windows. If you use the request header identity provider with a GSSAPI-enabled proxy to connect an Active Directory server to Red Hat OpenShift Container Platform, users can automatically authenticate to Red Hat OpenShift Container Platform by using the oc command line interface from a domain-joined Microsoft Windows computer.